code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/direct_composition_surface_win.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/gl/direct_composition_surface_win.cc | C++ | unknown | 12,558 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_DIRECT_COMPOSITION_SURFACE_WIN_H_
#define UI_GL_DIRECT_COMPOSITION_SURFACE_WIN_H_
#include <windows.h>
#include <d3d11.h>
#include <dcomp.h>
#include <wrl/client... | Zhao-PengFei35/chromium_src_4 | ui/gl/direct_composition_surface_win.h | C++ | unknown | 6,633 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/direct_composition_surface_win.h"
#include <wrl/client.h>
#include <wrl/implements.h>
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_... | Zhao-PengFei35/chromium_src_4 | ui/gl/direct_composition_surface_win_unittest.cc | C++ | unknown | 58,451 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/dual_gpu_state.h"
#include "base/containers/flat_set.h"
#include "base/trace_event/trace_event.h"
namespace gl {
class GLContext;
DualGPUState::DualGPUState... | Zhao-PengFei35/chromium_src_4 | ui/gl/dual_gpu_state.cc | C++ | unknown | 828 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_DUAL_GPU_STATE_H_
#define UI_GL_DUAL_GPU_STATE_H_
#include "base/containers/flat_set.h"
#include "ui/gl/gl_export.h"
namespace gl {
class GLContext;
class GL_... | Zhao-PengFei35/chromium_src_4 | ui/gl/dual_gpu_state.h | C++ | unknown | 944 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/dual_gpu_state_mac.h"
#include <OpenGL/CGLRenderers.h>
#include <OpenGL/CGLTypes.h>
#include "base/cancelable_callback.h"
#include "base/functional/bind.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gl/dual_gpu_state_mac.cc | C++ | unknown | 2,330 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_DUAL_GPU_STATE_MAC_H_
#define UI_GL_DUAL_GPU_STATE_MAC_H_
#include <OpenGL/CGLRenderers.h>
#include <OpenGL/CGLTypes.h>
#include "base/cancelable_callback.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gl/dual_gpu_state_mac.h | C++ | unknown | 1,374 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_display.h"
#include "ui/gl... | Zhao-PengFei35/chromium_src_4 | ui/gl/egl_api_unittest.cc | C++ | unknown | 5,464 |
// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/egl_mock.h"
namespace gl {
MockEGLInterface::MockEGLInterface() {}
MockEGLInterface::~MockEGLInterface() {}
MockEGLInterface* MockEGLInterface::interface_;
... | Zhao-PengFei35/chromium_src_4 | ui/gl/egl_mock.cc | C++ | unknown | 447 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file implements mock EGL Interface for unit testing. The interface
// corresponds to the set of functionally distinct EGL functions defined in
// generate_bindings.py.
... | Zhao-PengFei35/chromium_src_4 | ui/gl/egl_mock.h | C++ | unknown | 1,397 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/egl_surface_io_surface.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "ui/gfx/buffer_format_util.h"
#include "ui/gl/gl_bindings.h"
// Enum... | Zhao-PengFei35/chromium_src_4 | ui/gl/egl_surface_io_surface.cc | C++ | unknown | 7,190 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_EGL_SURFACE_IO_SURFACE_H_
#define UI_GL_EGL_SURFACE_IO_SURFACE_H_
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <IOSurface/IOSurfaceRef.h>
#include <memo... | Zhao-PengFei35/chromium_src_4 | ui/gl/egl_surface_io_surface.h | C++ | unknown | 1,794 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_EGL_TIMESTAMPS_H_
#define UI_GL_EGL_TIMESTAMPS_H_
#include "base/time/time.h"
#include "ui/gl/gl_export.h"
namespace gl {
// Interface to query EGL timestamps.... | Zhao-PengFei35/chromium_src_4 | ui/gl/egl_timestamps.h | C++ | unknown | 1,073 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/egl_util.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_ANDROID)
#include <EGL/egl.h>
#else
#include "third_party/khronos/EGL/egl.h"
#endif
// This need... | Zhao-PengFei35/chromium_src_4 | ui/gl/egl_util.cc | C++ | unknown | 1,564 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_EGL_UTIL_H_
#define UI_GL_EGL_UTIL_H_
#include <stdint.h>
#include "ui/gl/gl_export.h"
namespace ui {
GL_EXPORT const char* GetEGLErrorString(uint32_t error);... | Zhao-PengFei35/chromium_src_4 | ui/gl/egl_util.h | C++ | unknown | 462 |
#!/usr/bin/env python3
# Copyright 2012 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""code generator for GL/GLES extension wrangler."""
import optparse
import os
import collections
import re
import platform
import sys
from subprocess impo... | Zhao-PengFei35/chromium_src_4 | ui/gl/generate_bindings.py | Python | unknown | 173,815 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_angle_util_vulkan.h"
#include "third_party/angle/include/EGL/egl.h"
#include "third_party/angle/include/EGL/eglext.h"
#include "ui/gl/gl_bindings.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_angle_util_vulkan.cc | C++ | unknown | 5,588 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_ANGLE_UTIL_VULKAN_H_
#define UI_GL_GL_ANGLE_UTIL_VULKAN_H_
#include <vulkan/vulkan_core.h>
#include "ui/gfx/extension_set.h"
#include "ui/gl/gl_export.h"
na... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_angle_util_vulkan.h | C++ | unknown | 1,013 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_angle_util_win.h"
#include <objbase.h>
#include "base/trace_event/trace_event.h"
#include "third_party/angle/include/EGL/egl.h"
#include "third_party/angle... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_angle_util_win.cc | C++ | unknown | 1,961 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_ANGLE_UTIL_WIN_H_
#define UI_GL_GL_ANGLE_UTIL_WIN_H_
#include <d3d11.h>
#include <d3d9.h>
#include <wrl/client.h>
#include "ui/gl/gl_export.h"
namespace gl ... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_angle_util_win.h | C++ | unknown | 549 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdint.h>
#include <memory>
#include "base/command_line.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_gl_api_im... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_api_unittest.cc | C++ | unknown | 6,129 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "build/build_config.h"
#if defined(USE_EGL)
#include <EGL/egl.h>
#endif
#include "ui/gl/gl_bindings.h"
#if defined(USE_GLX)
#include "ui/gfx/x/connection.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_bindings.cc | C++ | unknown | 1,911 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_BINDINGS_H_
#define UI_GL_GL_BINDINGS_H_
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
// Includes the platform independent and platform d... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_bindings.h | C++ | unknown | 20,674 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_context.h"
#include <string>
#include "base/cancelable_callback.h"
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/lazy_ins... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_context.cc | C++ | unknown | 15,825 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_CONTEXT_H_
#define UI_GL_GL_CONTEXT_H_
#include <map>
#include <memory>
#include <string>
#include "base/atomicops.h"
#include "base/cancelable_callback.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_context.h | C++ | unknown | 14,527 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_context_egl.h"
#include <memory>
#include "base/command_line.h"
#include "base/logging.h"
#include "base/ranges/algorithm.h"
#include "base/trace_event/tra... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_context_egl.cc | C++ | unknown | 20,404 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_CONTEXT_EGL_H_
#define UI_GL_GL_CONTEXT_EGL_H_
#include "base/memory/raw_ptr.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_export.h"
typedef void* EGLC... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_context_egl.h | C++ | unknown | 1,588 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_context_stub.h"
#include "build/build_config.h"
#include "ui/gl/gl_gl_api_implementation.h"
#include "ui/gl/gl_stub_api.h"
namespace gl {
GLContextStub::G... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_context_stub.cc | C++ | unknown | 2,528 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_CONTEXT_STUB_H_
#define UI_GL_GL_CONTEXT_STUB_H_
#include "build/build_config.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_export.h"
namespace gl {
c... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_context_stub.h | C++ | unknown | 1,610 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_display.h"
#include <string>
#include <type_traits>
#include <vector>
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/d... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_display.cc | C++ | unknown | 33,328 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_DISPLAY_H_
#define UI_GL_GL_DISPLAY_H_
#include <stdint.h>
#include <memory>
#include <vector>
#include "ui/gl/gl_export.h"
#if defined(USE_EGL)
#include <... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_display.h | C++ | unknown | 5,512 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_display.h"
#include "ui/gl/gl_bindings.h"
#import <Metal/Metal.h>
// From ANGLE's egl/eglext_angle.h.
#ifndef EGL_ANGLE_metal_shared_event_sync
#define EG... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_display_egl.mm | Objective-C++ | unknown | 4,651 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_display_egl_util.h"
#include "base/no_destructor.h"
#include "base/scoped_environment_variable_override.h"
#include "third_party/abseil-cpp/absl/types/optio... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_display_egl_util.cc | C++ | unknown | 1,691 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_DISPLAY_EGL_UTIL_H_
#define UI_GL_GL_DISPLAY_EGL_UTIL_H_
#include <vector>
#include "base/scoped_environment_variable_override.h"
#include "third_party/absei... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_display_egl_util.h | C++ | unknown | 1,977 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_display_manager.h"
namespace gl {
#if defined(USE_EGL)
template class EXPORT_TEMPLATE_DEFINE(GL_EXPORT) GLDisplayManager<GLDisplayEGL>;
#endif
#if defined(... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_display_manager.cc | C++ | unknown | 436 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_DISPLAY_MANAGER_H_
#define UI_GL_GL_DISPLAY_MANAGER_H_
#include <map>
#include <memory>
#include <vector>
#include "base/check.h"
#include "base/export_templ... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_display_manager.h | C++ | unknown | 5,751 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_display_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gl {
class GLDisplayManagerEGLTest : public testing::Test {
public:
GLDispl... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_display_manager_unittest.cc | C++ | unknown | 6,578 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_egl_api_implementation.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_impl... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_egl_api_implementation.cc | C++ | unknown | 3,965 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_EGL_API_IMPLEMENTATION_H_
#define UI_GL_GL_EGL_API_IMPLEMENTATION_H_
#include <map>
#include <string>
#include <vector>
#include "base/memory/raw_ptr.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_egl_api_implementation.h | C++ | unknown | 2,887 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_enums.h"
#include <sstream>
#include "ui/gl/gl_bindings.h"
namespace gl {
std::string GLEnums::GetStringEnum(uint32_t value) {
const EnumToString* entr... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_enums.cc | C++ | unknown | 946 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_ENUMS_H_
#define UI_GL_GL_ENUMS_H_
#include <stddef.h>
#include <stdint.h>
#include <string>
#include "ui/gl/gl_export.h"
namespace gl {
class GL_EXPORT G... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_enums.h | C++ | unknown | 739 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_EXPORT_H_
#define UI_GL_GL_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(GL_IMPLEMENTATION)
#define GL_EXPORT __declspec(dllexport)
#... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_export.h | C | unknown | 647 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_features.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "build/build_config.h"
#include "ui/gl/gl_switches.h"
#if BUILDFLAG(IS_M... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_features.cc | C++ | unknown | 5,883 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_FEATURES_H_
#define UI_GL_GL_FEATURES_H_
#include "base/feature_list.h"
#include "build/build_config.h"
#include "build/chromecast_buildflags.h"
#include "bui... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_features.h | C++ | unknown | 1,242 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_fence.h"
#include "base/compiler_specific.h"
#include "build/build_config.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence.cc | C++ | unknown | 4,195 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_FENCE_H_
#define UI_GL_GL_FENCE_H_
#include <memory>
#include "ui/gfx/gpu_fence.h"
#include "ui/gl/gl_export.h"
namespace gl {
class GL_EXPORT GLFence {
p... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence.h | C++ | unknown | 1,519 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_fence_android_native_fence_sync.h"
#include <sync/sync.h>
#include "base/files/scoped_file.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_android_native_fence_sync.cc | C++ | unknown | 4,561 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_FENCE_ANDROID_NATIVE_FENCE_SYNC_H_
#define UI_GL_GL_FENCE_ANDROID_NATIVE_FENCE_SYNC_H_
#include "base/files/scoped_file.h"
#include "build/build_config.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_android_native_fence_sync.h | C++ | unknown | 1,346 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_fence_apple.h"
#include "ui/gl/gl_bindings.h"
namespace gl {
GLFenceAPPLE::GLFenceAPPLE() {
glGenFencesAPPLE(1, &fence_);
glSetFenceAPPLE(fence_);
D... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_apple.cc | C++ | unknown | 863 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_FENCE_APPLE_H_
#define UI_GL_GL_FENCE_APPLE_H_
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_export.h"
#include "ui/gl/gl_fence.h"
namespace gl {
class ... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_apple.h | C++ | unknown | 765 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_fence_arb.h"
#include "base/strings/stringprintf.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
namespace gl {
namespace {
std::string G... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_arb.cc | C++ | unknown | 2,503 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_FENCE_ARB_H_
#define UI_GL_GL_FENCE_ARB_H_
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_export.h"
#include "ui/gl/gl_fence.h"
namespace gl {
class GL_E... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_arb.h | C++ | unknown | 779 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_fence_egl.h"
#include "base/memory/ptr_util.h"
#include "ui/gl/egl_util.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_bindings_autogen_gl.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_egl.cc | C++ | unknown | 3,384 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_FENCE_EGL_H_
#define UI_GL_GL_FENCE_EGL_H_
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_export.h"
#include "ui/gl/gl_fence.h"
namespace gl {
class GL_E... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_egl.h | C++ | unknown | 1,511 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_fence_nv.h"
#include "ui/gl/gl_bindings.h"
namespace gl {
GLFenceNV::GLFenceNV() {
// What if either of these GL calls fails? TestFenceNV will return tr... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_nv.cc | C++ | unknown | 1,438 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_FENCE_NV_H_
#define UI_GL_GL_FENCE_NV_H_
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_export.h"
#include "ui/gl/gl_fence.h"
namespace gl {
class GL_EXP... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_nv.h | C++ | unknown | 799 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_fence_win.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "ui/gl/gl_angle_util_win.h"
#include <d3d11_4.h>
namespace gl {
bool GLFence... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_win.cc | C++ | unknown | 5,770 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_FENCE_WIN_H_
#define UI_GL_GL_FENCE_WIN_H_
#include "ui/gl/gl_fence.h"
#include <d3d11_3.h>
#include <wrl/client.h>
namespace gl {
class GL_EXPORT GLFenceW... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_win.h | C++ | unknown | 1,174 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <d3d11_3.h>
#include "media/base/win/d3d11_mocks.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_fence_win.h"
using ::testing::_;
using ::testin... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_fence_win_unittest.cc | C++ | unknown | 4,979 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_gl_api_implementation.h"
#include <vector>
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/strings/string_split.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_gl_api_implementation.cc | C++ | unknown | 19,614 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_GL_API_IMPLEMENTATION_H_
#define UI_GL_GL_GL_API_IMPLEMENTATION_H_
#include <memory>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "ui/gl/gl_bi... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_gl_api_implementation.h | C++ | unknown | 7,277 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_helper.h"
#include <string>
#include "base/check_op.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_version_info.h"
#include "ui/gl/scoped_binders.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_helper.cc | C++ | unknown | 3,156 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_HELPER_H_
#define UI_GL_GL_HELPER_H_
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_export.h"
namespace gl {
class GL_EXPORT GLHelper {
public:
// Com... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_helper.h | C++ | unknown | 1,420 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_image.h"
#include <GL/gl.h>
#include "base/notreached.h"
namespace gl {
// NOTE: It is not possible to use static_cast in the below "safe downcast"
// fu... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_image.cc | C++ | unknown | 1,318 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_IMAGE_H_
#define UI_GL_GL_IMAGE_H_
#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gl/gl... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_image.h | C++ | unknown | 2,699 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/gpu/vaapi/gl_image_gl_texture.h"
#include "build/build_config.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/test/gl_image_test_template.h"
// TODO(crbug.c... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_image_gl_texture_unittest.cc | C++ | unknown | 4,525 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_implementation.h"
#include <stddef.h>
#include <cstdlib>
#include <sstream>
#include <string>
#include "base/at_exit.h"
#include "base/command_line.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_implementation.cc | C++ | unknown | 23,066 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_IMPLEMENTATION_H_
#define UI_GL_GL_IMPLEMENTATION_H_
#include <memory>
#include <string>
#include <vector>
#include "base/files/file_path.h"
#include "base/n... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_implementation.h | C++ | unknown | 8,882 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_IMPLEMENTATION_WRAPPER_H_
#define UI_GL_GL_IMPLEMENTATION_WRAPPER_H_
#include <memory>
#include "base/command_line.h"
#include "base/memory/raw_ptr.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_implementation_wrapper.h | C++ | unknown | 1,833 |
// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_mock.h"
namespace gl {
namespace {
// This is called mainly to prevent the compiler combining the code of mock
// functions with identical contents, so th... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_mock.cc | C++ | unknown | 1,139 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file implements mock GL Interface for unit testing. The interface
// corresponds to the set of functionally distinct GL functions defined in
// generate_bindings.py, wh... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_mock.h | C++ | unknown | 9,024 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_share_group.h"
#include "base/check.h"
#include "build/build_config.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_implementation.h"
namespace gl {
G... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_share_group.cc | C++ | unknown | 1,107 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SHARE_GROUP_H_
#define UI_GL_GL_SHARE_GROUP_H_
#include <set>
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "build/build_con... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_share_group.h | C++ | unknown | 1,671 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_state_restorer.h"
namespace gl {
GLStateRestorer::GLStateRestorer() {
}
GLStateRestorer::~GLStateRestorer() {
}
} // namespace gl
| Zhao-PengFei35/chromium_src_4 | ui/gl/gl_state_restorer.cc | C++ | unknown | 298 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_STATE_RESTORER_H_
#define UI_GL_GL_STATE_RESTORER_H_
#include "ui/gl/gl_export.h"
namespace gpu {
namespace gles2 {
class GLES2Decoder;
} // namespace gle... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_state_restorer.h | C++ | unknown | 1,389 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_stub_api.h"
namespace gl {
GLStubApi::GLStubApi() {}
GLStubApi::~GLStubApi() = default;
GLenum GLStubApi::glCheckFramebufferStatusEXTFn(GLenum target) {
... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_stub_api.cc | C++ | unknown | 7,521 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_STUB_API_H_
#define UI_GL_GL_STUB_API_H_
#include <string>
#include "ui/gl/gl_export.h"
#include "ui/gl/gl_stub_api_base.h"
namespace gl {
class GL_EXPORT ... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_stub_api.h | C++ | unknown | 3,860 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file implements a stub GL Interface for unit testing. The interface
// corresponds to the set of functionally distinct GL functions defined in
// generate_bindings.py, ... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_stub_api_base.h | C++ | unknown | 775 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface.h"
#include <utility>
#include "base/check.h"
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/notreached.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface.cc | C++ | unknown | 13,473 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_H_
#define UI_GL_GL_SURFACE_H_
#include <vector>
#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/memory/wea... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface.h | C++ | unknown | 15,983 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_egl.h"
#include <stddef.h>
#include <stdint.h>
#include <map>
#include <memory>
#include <sstream>
#include <utility>
#include <vector>
#include "... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl.cc | C++ | unknown | 43,682 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_EGL_H_
#define UI_GL_GL_SURFACE_EGL_H_
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#e... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl.h | C++ | unknown | 8,201 |
// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_egl_ohos.h"
#include "base/ohos/sys_info_utils.h"
#include "base/threading/platform_thread.h"
#include "base/trace_event/... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl_ohos.cc | C++ | unknown | 5,778 |
// Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_EGL_OHOS_H_
#define UI_GL_GL_SURFACE_EGL_OHOS_H_
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_export.h"
#include "ui/... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl_ohos.h | C++ | unknown | 1,558 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_egl_surface_control.h"
#include <utility>
#include "base/android/android_hardware_buffer_compat.h"
#include "base/android/build_info.h"
#include "b... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl_surface_control.cc | C++ | unknown | 25,344 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_EGL_SURFACE_CONTROL_H_
#define UI_GL_GL_SURFACE_EGL_SURFACE_CONTROL_H_
#include <android/native_window.h>
#include <memory>
#include <queue>
#include... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl_surface_control.h | C++ | unknown | 8,552 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_egl.h"
#include "base/memory/raw_ptr.h"
#include "build/build_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/inclu... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl_unittest.cc | C++ | unknown | 4,140 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_egl_x11.h"
#include "base/containers/contains.h"
#include "ui/base/x/x11_util.h"
#include "ui/base/x/x11_xrandr_interval_only_vsync_provider.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl_x11.cc | C++ | unknown | 3,749 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_EGL_X11_H_
#define UI_GL_GL_SURFACE_EGL_X11_H_
#include <stdint.h>
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/event.h"
#include "ui/gl/gl_ex... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl_x11.h | C++ | unknown | 1,664 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_egl_x11_gles2.h"
#include "ui/base/x/x11_util.h"
#include "ui/gfx/x/xproto.h"
#include "ui/gfx/x/xproto_util.h"
#include "ui/gl/egl_util.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl_x11_gles2.cc | C++ | unknown | 6,457 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_EGL_X11_GLES2_H_
#define UI_GL_GL_SURFACE_EGL_X11_GLES2_H_
#include <stdint.h>
#include "ui/gfx/x/event.h"
#include "ui/gl/gl_export.h"
#include "ui/... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_egl_x11_gles2.h | C++ | unknown | 1,566 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_format.h"
#include "base/notreached.h"
namespace gl {
GLSurfaceFormat::GLSurfaceFormat() {
}
GLSurfaceFormat::GLSurfaceFormat(const GLSurfaceForma... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_format.cc | C++ | unknown | 1,802 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_FORMAT_H_
#define UI_GL_GL_SURFACE_FORMAT_H_
#include "ui/gl/gl_export.h"
namespace gl {
// Expresses surface format properties that may vary depend... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_format.h | C++ | unknown | 2,677 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_surface_format.h"
namespace gl {
TEST(GLSurfaceFormatTest, BasicTest) {
{
// Check default format prop... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_format_unittest.cc | C++ | unknown | 916 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_overlay.h"
#include "ui/gfx/gpu_fence.h"
#include "ui/gfx/native_widget_types.h"
namespace gl {
GLSurfaceOverlay::GLSurfaceOverlay(
scoped_ref... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_overlay.cc | C++ | unknown | 1,064 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_OVERLAY_H_
#define UI_GL_GL_SURFACE_OVERLAY_H_
#include "base/memory/scoped_refptr.h"
#include "ui/gfx/gpu_fence.h"
#include "ui/gfx/native_pixmap.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_overlay.h | C++ | unknown | 1,412 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_presentation_helper.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/task/single_thread_task_runner... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_presentation_helper.cc | C++ | unknown | 14,237 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_PRESENTATION_HELPER_H_
#define UI_GL_GL_SURFACE_PRESENTATION_HELPER_H_
#include "base/containers/circular_deque.h"
#include "base/memory/raw_ptr.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_presentation_helper.h | C++ | unknown | 4,281 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gl/gl_surface_stub.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
namespac... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_stub.cc | C++ | unknown | 1,627 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_SURFACE_STUB_H_
#define UI_GL_GL_SURFACE_STUB_H_
#include "ui/gfx/frame_data.h"
#include "ui/gl/gl_export.h"
#include "ui/gl/gl_surface.h"
namespace gl {
//... | Zhao-PengFei35/chromium_src_4 | ui/gl/gl_surface_stub.h | C++ | unknown | 1,458 |