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 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_switches.h" #include "build/build_config.h" #include "ui/gl/gl_display_manager.h" #if BUILDFLAG(IS_ANDROID) #include "base/android/build_info.h" #endif #i...
Zhao-PengFei35/chromium_src_4
ui/gl/gl_switches.cc
C++
unknown
13,078
// 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_SWITCHES_H_ #define UI_GL_GL_SWITCHES_H_ // Defines all the command-line switches used by ui/gl. #include "base/feature_list.h" #include "base/metrics/field_...
Zhao-PengFei35/chromium_src_4
ui/gl/gl_switches.h
C++
unknown
5,126
// 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 contains some useful utilities for the ui/gl classes. #include "ui/gl/gl_utils.h" #include "base/command_line.h" #include "base/debug/alias.h" #include "base/log...
Zhao-PengFei35/chromium_src_4
ui/gl/gl_utils.cc
C++
unknown
8,167
// 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 contains some useful utilities for the ui/gl classes. #ifndef UI_GL_GL_UTILS_H_ #define UI_GL_GL_UTILS_H_ #include "base/command_line.h" #include "base/memory/ra...
Zhao-PengFei35/chromium_src_4
ui/gl/gl_utils.h
C++
unknown
5,315
// 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_version_info.h" #include <map> #include <vector> #include "base/check_op.h" #include "base/notreached.h" #include "base/strings/strcat.h" #include "base/st...
Zhao-PengFei35/chromium_src_4
ui/gl/gl_version_info.cc
C++
unknown
12,797
// 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_VERSION_INFO_H_ #define UI_GL_GL_VERSION_INFO_H_ #include <set> #include <string> #include "build/build_config.h" #include "ui/gfx/extension_set.h" #include "...
Zhao-PengFei35/chromium_src_4
ui/gl/gl_version_info.h
C++
unknown
3,077
// 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_version_info.h" #include <memory> #include "testing/gtest/include/gtest/gtest.h" namespace gl { TEST(GLVersionInfoTest, ParseGLVersionStringTest) { con...
Zhao-PengFei35/chromium_src_4
ui/gl/gl_version_info_unittest.cc
C++
unknown
7,059
// 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_WORKAROUNDS_H_ #define UI_GL_GL_WORKAROUNDS_H_ namespace gl { struct GLWorkarounds { // glClearColor does not always work on Intel 6xxx Mac drivers. See ...
Zhao-PengFei35/chromium_src_4
ui/gl/gl_workarounds.h
C++
unknown
622
// 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_GPU_PREFERENCE_H_ #define UI_GL_GPU_PREFERENCE_H_ namespace gl { // On dual-GPU systems, expresses a preference for using the low power // or high performance G...
Zhao-PengFei35/chromium_src_4
ui/gl/gpu_preference.h
C++
unknown
1,033
// 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/gpu_switching_manager.h" #include "base/observer_list.h" namespace ui { // static GpuSwitchingManager* GpuSwitchingManager::GetInstance() { return base::Si...
Zhao-PengFei35/chromium_src_4
ui/gl/gpu_switching_manager.cc
C++
unknown
1,365
// 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_GPU_SWITCHING_MANAGER_H_ #define UI_GL_GPU_SWITCHING_MANAGER_H_ #include "base/memory/singleton.h" #include "base/observer_list.h" #include "build/build_config.h...
Zhao-PengFei35/chromium_src_4
ui/gl/gpu_switching_manager.h
C++
unknown
2,261
// 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_GPU_SWITCHING_OBSERVER_H_ #define UI_GL_GPU_SWITCHING_OBSERVER_H_ #include "ui/gl/gl_export.h" #include "ui/gl/gpu_preference.h" namespace ui { class GL_EXPORT...
Zhao-PengFei35/chromium_src_4
ui/gl/gpu_switching_observer.h
C++
unknown
911
// 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/gpu_timing.h" #include <utility> #include "base/containers/circular_deque.h" #include "base/memory/ptr_util.h" #include "base/time/time.h" #include "ui/gl/gl_...
Zhao-PengFei35/chromium_src_4
ui/gl/gpu_timing.cc
C++
unknown
21,879
// 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_GPU_TIMING_H_ #define UI_GL_GPU_TIMING_H_ #include <stdint.h> #include <memory> #include <queue> #include "base/functional/callback.h" #include "base/memory/ra...
Zhao-PengFei35/chromium_src_4
ui/gl/gpu_timing.h
C++
unknown
5,427
// 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/gpu_timing_fake.h" #include "base/time/time.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gl/gl_mock.h" namespace gl { using ::testing::_; u...
Zhao-PengFei35/chromium_src_4
ui/gl/gpu_timing_fake.cc
C++
unknown
9,390
// 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_GPU_TIMING_FAKE_H_ #define UI_GL_GPU_TIMING_FAKE_H_ #include <stdint.h> #include <map> #include <set> #include "ui/gl/gl_bindings.h" namespace gl { class Mock...
Zhao-PengFei35/chromium_src_4
ui/gl/gpu_timing_fake.h
C++
unknown
2,692
// 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/gpu_timing.h" #include <stdint.h> #include <memory> #include "base/functional/bind.h" #include "base/memory/raw_ptr.h" #include "base/time/time.h" #include "...
Zhao-PengFei35/chromium_src_4
ui/gl/gpu_timing_unittest.cc
C++
unknown
7,670
// 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/hdr_metadata_helper_win.h" #include "ui/gl/gpu_switching_manager.h" namespace { // Magic constants to convert to fixed point. // https://docs.microsoft.com/en...
Zhao-PengFei35/chromium_src_4
ui/gl/hdr_metadata_helper_win.cc
C++
unknown
4,949
// 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_HDR_METADATA_HELPER_WIN_H_ #define UI_GL_HDR_METADATA_HELPER_WIN_H_ #include <d3d11_1.h> #include <dxgi1_6.h> #include <wrl/client.h> #include "third_party/abse...
Zhao-PengFei35/chromium_src_4
ui/gl/hdr_metadata_helper_win.h
C++
unknown
1,771
// 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/hdr_metadata_helper_win.h" #include "media/base/win/d3d11_mocks.h" #include "testing/gtest/include/gtest/gtest.h" using ::testing::_; using ::testing::DoAll; ...
Zhao-PengFei35/chromium_src_4
ui/gl/hdr_metadata_helper_win_unittest.cc
C++
unknown
5,920
include_rules = [ "+ui/base/ui_base_features.h", "+ui/ozone/gl", "+ui/ozone/public", ]
Zhao-PengFei35/chromium_src_4
ui/gl/init/DEPS
Python
unknown
93
// 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/init/create_gr_gl_interface.h" #include "base/metrics/histogram_macros.h" #include "base/no_destructor.h" #include "base/time/time.h" #include "base/trace_even...
Zhao-PengFei35/chromium_src_4
ui/gl/init/create_gr_gl_interface.cc
C++
unknown
28,797
// 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_INIT_CREATE_GR_GL_INTERFACE_H_ #define UI_GL_INIT_CREATE_GR_GL_INTERFACE_H_ #include "third_party/skia/include/gpu/gl/GrGLInterface.h" #include "ui/gl/init/gl_i...
Zhao-PengFei35/chromium_src_4
ui/gl/init/create_gr_gl_interface.h
C++
unknown
792
// 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/init/gl_display_egl_util_ozone.h" #include "base/no_destructor.h" #include "ui/ozone/public/ozone_platform.h" #include "ui/ozone/public/platform_gl_egl_utility...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_display_egl_util_ozone.cc
C++
unknown
1,516
// 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_INIT_GL_DISPLAY_EGL_UTIL_OZONE_H_ #define UI_GL_INIT_GL_DISPLAY_EGL_UTIL_OZONE_H_ #include <vector> #include "base/no_destructor.h" #include "ui/gl/gl_display_e...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_display_egl_util_ozone.h
C++
unknown
1,306
// Copyright 2023 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/init/gl_display_initializer.h" #include "base/command_line.h" #include "base/containers/contains.h" #include "ui/gl/gl_bindings.h" #include "ui/gl/gl_implement...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_display_initializer.cc
C++
unknown
10,648
// Copyright 2023 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_INIT_GL_DISPLAY_INITIALIZER_H_ #define UI_GL_INIT_GL_DISPLAY_INITIALIZER_H_ #include <vector> #include "ui/gl/gl_display.h" #include "ui/gl/init/gl_init_export....
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_display_initializer.h
C++
unknown
1,106
// 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/init/gl_factory.h" #include <string> #include <vector> #include "base/command_line.h" #include "base/logging.h" #include "base/metrics/histogram_macros.h" #in...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_factory.cc
C++
unknown
9,187
// 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_INIT_GL_FACTORY_H_ #define UI_GL_INIT_GL_FACTORY_H_ #include <memory> #include <string> #include <vector> #include "base/memory/scoped_refptr.h" #include "build...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_factory.h
C++
unknown
5,108
// 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/init/gl_factory.h" #include "base/check_op.h" #include "base/notreached.h" #include "base/trace_event/trace_event.h" #include "ui/gl/android/scoped_a_native_wi...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_factory_android.cc
C++
unknown
6,516
// Copyright 2023 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/init/gl_factory.h" #import <UIKit/UIKit.h> #include "base/trace_event/trace_event.h" #include "ui/gl/gl_context_egl.h" #include "ui/gl/gl_context_stub.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_factory_ios.mm
Objective-C++
unknown
3,665
// 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/init/gl_factory.h" #include "base/check_op.h" #include "base/mac/mac_util.h" #include "base/notreached.h" #include "base/trace_event/trace_event.h" #include "u...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_factory_mac.cc
C++
unknown
3,848
// 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/init/gl_factory.h" #include "base/check.h" #include "base/notreached.h" #include "base/trace_event/trace_event.h" #include "ui/gl/g...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_factory_ohos.cc
C++
unknown
5,225
// 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/init/gl_factory.h" #include "base/check.h" #include "base/notreached.h" #include "base/trace_event/trace_event.h" #include "ui/gl/gl_context.h" #include "ui/gl...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_factory_ozone.cc
C++
unknown
4,425
// 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/init/gl_factory.h" #include "base/check_op.h" #include "base/notreached.h" #include "base/trace_event/trace_event.h" #include "ui/gl/gl_context.h" #include "ui...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_factory_win.cc
C++
unknown
4,463
// 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_INIT_GL_INIT_EXPORT_H_ #define UI_GL_INIT_GL_INIT_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(GL_INIT_IMPLEMENTATION) #define GL_INIT_...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_init_export.h
C
unknown
717
// 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_INIT_GL_INITIALIZER_H_ #define UI_GL_INIT_GL_INITIALIZER_H_ #include "ui/gl/buildflags.h" #include "ui/gl/gl_display.h" #include "ui/gl/gl_implementation.h" nam...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_initializer.h
C++
unknown
1,452
// 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/init/gl_initializer.h" #include "base/base_paths.h" #include "base/command_line.h" #include "base/files/file_path.h" #include "base/logging.h" #include "base/n...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_initializer_android.cc
C++
unknown
3,506
// 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/init/gl_initializer.h" #include <EGL/egl.h> namespace gl { namespace init { bool InitializeStaticANGLEEGL() { #pragma push_macro("eglGetProcAddress") #undef ...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_initializer_angle.cc
C++
unknown
482
// Copyright 2023 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/init/gl_initializer.h" #include "base/logging.h" #include "ui/gl/gl_bindings.h" #include "ui/gl/gl_context.h" #include "ui/gl/gl_display.h" #include "ui/gl/gl_...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_initializer_ios.cc
C++
unknown
2,093
// 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/init/gl_initializer.h" #include "base/base_paths.h" #include "base/files/file_path.h" #include "base/logging.h" #include "base/mac/bundle_locations.h" #include...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_initializer_mac.cc
C++
unknown
5,229
// 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/init/gl_initializer.h" #include "base/base_paths.h" #include "base/command_line.h" #include "base/files/file_path.h" #include "ba...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_initializer_ohos.cc
C++
unknown
3,567
// 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/init/gl_initializer.h" #include "base/check_op.h" #include "base/notreached.h" #include "ui/gl/gl_bindings.h" #include "ui/gl/gl_gl_api_implementation.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_initializer_ozone.cc
C++
unknown
2,144
// 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/init/gl_initializer.h" #include <dwmapi.h> #include "base/at_exit.h" #include "base/base_paths.h" #include "base/files/file_path.h" #include "base/functional/...
Zhao-PengFei35/chromium_src_4
ui/gl/init/gl_initializer_win.cc
C++
unknown
5,680
// 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_INIT_OZONE_UTIL_H_ #define UI_GL_INIT_OZONE_UTIL_H_ #include "ui/gl/gl_implementation.h" #include "ui/ozone/public/gl_ozone.h" #include "ui/ozone/public/ozone_pl...
Zhao-PengFei35/chromium_src_4
ui/gl/init/ozone_util.h
C++
unknown
1,366
// Copyright 2023 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/mojom/gl_implementation_mojom_traits.h" #include "base/notreached.h" namespace mojo { // static gl::mojom::GLImplementation EnumTraits<gl::mojom::GLImplementa...
Zhao-PengFei35/chromium_src_4
ui/gl/mojom/gl_implementation_mojom_traits.cc
C++
unknown
4,915
// Copyright 2023 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_MOJOM_GL_IMPLEMENTATION_MOJOM_TRAITS_H_ #define UI_GL_MOJOM_GL_IMPLEMENTATION_MOJOM_TRAITS_H_ #include "base/component_export.h" #include "ui/gl/gl_implementatio...
Zhao-PengFei35/chromium_src_4
ui/gl/mojom/gl_implementation_mojom_traits.h
C++
unknown
1,578
// 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_MOJOM_GPU_PREFERENCE_MOJOM_TRAITS_H_ #define UI_GL_MOJOM_GPU_PREFERENCE_MOJOM_TRAITS_H_ #include "base/notreached.h" #include "ui/gl/gpu_preference.h" #include "...
Zhao-PengFei35/chromium_src_4
ui/gl/mojom/gpu_preference_mojom_traits.h
C++
unknown
1,717
// Copyright 2023 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/native_pixmap_egl_x11_binding_helper.h" #include <memory> #include "ui/gfx/x/connection.h" #include "ui/gl/gl_bindings.h" namespace gl { inline EGLDisplay F...
Zhao-PengFei35/chromium_src_4
ui/gl/native_pixmap_egl_x11_binding_helper.cc
C++
unknown
2,485
// Copyright 2023 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_NATIVE_PIXMAP_EGL_X11_BINDING_HELPER_H_ #define UI_GL_NATIVE_PIXMAP_EGL_X11_BINDING_HELPER_H_ #include <stdint.h> #include "ui/gfx/geometry/size.h" #include "ui...
Zhao-PengFei35/chromium_src_4
ui/gl/native_pixmap_egl_x11_binding_helper.h
C++
unknown
1,240
// 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 "nweb_native_window_tracker.h" NWebNativeWindowTracker& NWebNativeWindowTracker::Instance() { static NWebNativeWindowTracker tracker; ...
Zhao-PengFei35/chromium_src_4
ui/gl/nweb_native_window_tracker.cc
C++
unknown
908
// 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 NWEB_NATIVE_WINDOW_TRACKER_H #define NWEB_NATIVE_WINDOW_TRACKER_H #define NWEB_EXPORT __attribute__((visibility("default"))) #include <mut...
Zhao-PengFei35/chromium_src_4
ui/gl/nweb_native_window_tracker.h
C++
unknown
740
/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Zhao-PengFei35/chromium_src_4
ui/gl/ohos/frame_available_listener_impl.cc
C++
unknown
1,046
/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Zhao-PengFei35/chromium_src_4
ui/gl/ohos/frame_available_listener_impl.h
C++
unknown
1,178
// Copyright (c) 2023 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/ohos/native_buffer_utils.h" #include "ui/gl/gl_context.h" #include "ui/gl/gl_fence_android_native_fence_sync.h" #include "ui/gl/gl_...
Zhao-PengFei35/chromium_src_4
ui/gl/ohos/native_buffer_utils.cc
C++
unknown
3,308
// Copyright (c) 2024 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_OHOS_NATIVE_BUFFER_UTILS_H_ #define UI_GL_OHOS_NATIVE_BUFFER_UTILS_H_ #include "base/files/scoped_file.h" #include "gpu/gpu_gles2_exp...
Zhao-PengFei35/chromium_src_4
ui/gl/ohos/native_buffer_utils.h
C++
unknown
1,080
// Copyright (c) 2023 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/ohos/ohos_native_image.h" #include <utility> #include "base/check.h" #include "base/command_line.h" #include "base/debug/crash_log...
Zhao-PengFei35/chromium_src_4
ui/gl/ohos/ohos_native_image.cc
C++
unknown
5,350
// Copyright (c) 2023 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_OHOS_NATIVE_IMAGE_H_ #define UI_GL_OHOS_NATIVE_IMAGE_H_ #include <memory> #include "base/functional/callback.h" #include "base/memor...
Zhao-PengFei35/chromium_src_4
ui/gl/ohos/ohos_native_image.h
C++
unknown
2,026
/* * Copyright (c) 2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Zhao-PengFei35/chromium_src_4
ui/gl/ohos/ohos_native_image_unittests.cc
C++
unknown
6,778
// 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/presenter.h" #include "ui/gfx/gpu_fence.h" #if BUILDFLAG(IS_WIN) #include "ui/gl/dc_layer_overlay_params.h" #else namespace gl { struct DCLayerOverlayParams {...
Zhao-PengFei35/chromium_src_4
ui/gl/presenter.cc
C++
unknown
1,364
// 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_PRESENTER_H_ #define UI_GL_PRESENTER_H_ #include "base/functional/callback.h" #include "base/memory/ref_counted.h" #include "build/build_config.h" #include "mojo...
Zhao-PengFei35/chromium_src_4
ui/gl/presenter.h
C++
unknown
6,088
// 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_PROGRESS_REPORTER_H_ #define UI_GL_PROGRESS_REPORTER_H_ #include "base/memory/raw_ptr.h" namespace gl { // ProgressReporter is used by ContextGroup and GrGLInt...
Zhao-PengFei35/chromium_src_4
ui/gl/progress_reporter.h
C++
unknown
1,007
// 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/scoped_binders.h" #include "ui/gl/gl_bindings.h" #include "ui/gl/gl_context.h" #include "ui/gl/gl_state_restorer.h" namespace gl { ScopedFramebufferBinder::Sc...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_binders.cc
C++
unknown
7,288
// 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_SCOPED_BINDERS_H_ #define UI_GL_SCOPED_BINDERS_H_ #include "base/memory/raw_ptr.h" #include "base/memory/raw_ptr_exclusion.h" #include "ui/gl/gl_export.h" names...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_binders.h
C++
unknown
5,371
// 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/scoped_cgl.h" #include <ostream> #include "base/check_op.h" namespace gl { ScopedCGLSetCurrentContext::ScopedCGLSetCurrentContext(CGLContextObj context) { ...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_cgl.cc
C++
unknown
1,090
// 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_SCOPED_CGL_H_ #define UI_GL_SCOPED_CGL_H_ #include <OpenGL/OpenGL.h> #include "base/mac/scoped_typeref.h" #include "ui/gl/gl_export.h" namespace base { templa...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_cgl.h
C++
unknown
1,750
// 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/scoped_egl_image.h" #include "base/logging.h" #include "ui/gl/egl_util.h" #include "ui/gl/gl_bindings.h" #include "ui/gl/gl_surface_egl.h" namespace gl { Sco...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_egl_image.cc
C++
unknown
1,390
// 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_SCOPED_EGL_IMAGE_H_ #define UI_GL_SCOPED_EGL_IMAGE_H_ #include <EGL/egl.h> #include <EGL/eglext.h> #include "base/scoped_generic.h" #include "ui/gl/gl_export.h"...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_egl_image.h
C++
unknown
1,299
// 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/scoped_make_current.h" #include "base/check.h" #include "ui/gl/gl_context.h" #include "ui/gl/gl_surface.h" namespace ui { ScopedMakeCurrent::ScopedMakeCurren...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_make_current.cc
C++
unknown
906
// 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_SCOPED_MAKE_CURRENT_H_ #define UI_GL_SCOPED_MAKE_CURRENT_H_ #include "base/memory/scoped_refptr.h" #include "ui/gl/gl_export.h" namespace gl { class GLContext; ...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_make_current.h
C++
unknown
1,364
// 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/scoped_restore_texture.h" namespace gl { ScopedRestoreTexture::ScopedRestoreTexture(gl::GLApi* api, GLenum target) : api_(api), target_(target) { DCHECK...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_restore_texture.cc
C++
unknown
938
// 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_SCOPED_RESTORE_TEXTURE_H_ #define UI_GL_SCOPED_RESTORE_TEXTURE_H_ #include "base/memory/raw_ptr.h" #include "ui/gl/gl_bindings.h" #include "ui/gl/gl_export.h" n...
Zhao-PengFei35/chromium_src_4
ui/gl/scoped_restore_texture.h
C++
unknown
887
// 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/shader_tracking.h" #include "base/check.h" #include "base/no_destructor.h" #include "build/build_config.h" #include "ui/gl/gl_switches.h" namespace gl { // s...
Zhao-PengFei35/chromium_src_4
ui/gl/shader_tracking.cc
C++
unknown
1,165
// 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_SHADER_TRACKING_H_ #define UI_GL_SHADER_TRACKING_H_ #include <string> #include "base/no_destructor.h" #include "base/synchronization/lock.h" #include "build/bui...
Zhao-PengFei35/chromium_src_4
ui/gl/shader_tracking.h
C++
unknown
963
// 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/shared_gl_fence_egl.h" #include "base/logging.h" #include "ui/gl/gl_bindings.h" #include "ui/gl/gl_fence_egl.h" namespace gl { SharedGLFenceEGL::SharedGLFenc...
Zhao-PengFei35/chromium_src_4
ui/gl/shared_gl_fence_egl.cc
C++
unknown
1,124
// 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_SHARED_GL_FENCE_EGL_H_ #define UI_GL_SHARED_GL_FENCE_EGL_H_ #include "base/memory/raw_ptr.h" #include "base/memory/ref_counted.h" #include "base/synchronization/...
Zhao-PengFei35/chromium_src_4
ui/gl/shared_gl_fence_egl.h
C++
unknown
1,745
// 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/swap_chain_presenter.h" #include <d3d11_1.h> #include <d3d11_4.h> #include "base/debug/alias.h" #include "base/debug/crash_logging.h" #include "base/debug/dum...
Zhao-PengFei35/chromium_src_4
ui/gl/swap_chain_presenter.cc
C++
unknown
75,993
// 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_SWAP_CHAIN_PRESENTER_H_ #define UI_GL_SWAP_CHAIN_PRESENTER_H_ #include <d3d11.h> #include <dcomp.h> #include <windows.h> #include <wrl/client.h> #include "base/...
Zhao-PengFei35/chromium_src_4
ui/gl/swap_chain_presenter.h
C++
unknown
12,117
// Copyright 2013 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/sync_control_vsync_provider.h" #include <math.h> #include "base/logging.h" #include "base/time/time.h" #include "base/trace_event/trace_event.h" #include "bui...
Zhao-PengFei35/chromium_src_4
ui/gl/sync_control_vsync_provider.cc
C++
unknown
6,743
// Copyright 2013 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_SYNC_CONTROL_VSYNC_PROVIDER_H_ #define UI_GL_SYNC_CONTROL_VSYNC_PROVIDER_H_ #include <stdint.h> #include "base/containers/queue.h" #include "base/time/time.h" #...
Zhao-PengFei35/chromium_src_4
ui/gl/sync_control_vsync_provider.h
C++
unknown
2,168
include_rules = [ "+ui/base", "+ui/ozone/public", "+mojo/core/embedder", "+services/service_manager/public", "+services/viz/public", "+ui/platform_window/common/platform_window_defaults.h", ]
Zhao-PengFei35/chromium_src_4
ui/gl/test/DEPS
Python
unknown
204
// 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 "base/command_line.h" #include "base/containers/contains.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gl/gl_display.h" #include "ui/gl/gl_switches.h"...
Zhao-PengFei35/chromium_src_4
ui/gl/test/egl_initialization_displays_unittest.cc
C++
unknown
7,111
// 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 defines tests that implementations of GLImage should pass in order // to be conformant. #include "ui/gl/test/gl_image_test_template.h" #include "base/strings/stri...
Zhao-PengFei35/chromium_src_4
ui/gl/test/gl_image_test_template.cc
C++
unknown
5,616
// 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. // This file defines tests that implementations of GLImage should pass in order // to be conformant. #ifndef UI_GL_TEST_GL_IMAGE_TEST_TEMPLATE_H_ #define UI_GL_TEST_GL_IMAGE_T...
Zhao-PengFei35/chromium_src_4
ui/gl/test/gl_image_test_template.h
C++
unknown
5,698
// 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/test/gl_surface_test_support.h" #include <vector> #include "base/check_op.h" #include "base/command_line.h" #include "build/build_config.h" #include "ui/gl/gl...
Zhao-PengFei35/chromium_src_4
ui/gl/test/gl_surface_test_support.cc
C++
unknown
4,461
// 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_TEST_GL_SURFACE_TEST_SUPPORT_H_ #define UI_GL_TEST_GL_SURFACE_TEST_SUPPORT_H_ #include "ui/gl/gl_display.h" #include "ui/gl/gl_implementation.h" namespace gl { ...
Zhao-PengFei35/chromium_src_4
ui/gl/test/gl_surface_test_support.h
C++
unknown
867
// 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/test/gl_test_helper.h" #include <memory> #include <string> #include "testing/gtest/include/gtest/gtest.h" #if BUILDFLAG(IS_WIN) #include <wingdi.h> #include...
Zhao-PengFei35/chromium_src_4
ui/gl/test/gl_test_helper.cc
C++
unknown
5,767
// 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_TEST_GL_TEST_HELPER_H_ #define UI_GL_TEST_GL_TEST_HELPER_H_ #include <stdint.h> #include "third_party/skia/include/core/SkColor.h" #include "ui/gfx/geometry/poi...
Zhao-PengFei35/chromium_src_4
ui/gl/test/gl_test_helper.h
C++
unknown
2,305
// 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/test/gl_test_support.h" #include <vector> #include "base/check_op.h" #include "base/notreached.h" #include "build/build_config.h" #include "ui/gfx/buffer_form...
Zhao-PengFei35/chromium_src_4
ui/gl/test/gl_test_support.cc
C++
unknown
10,656
// 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_TEST_GL_TEST_SUPPORT_H_ #define UI_GL_TEST_GL_TEST_SUPPORT_H_ #include <stdint.h> #include "third_party/abseil-cpp/absl/types/optional.h" #include "ui/gfx/buffe...
Zhao-PengFei35/chromium_src_4
ui/gl/test/gl_test_support.h
C++
unknown
1,309
// 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/functional/bind.h" #include "base/test/launcher/unit_test_launcher.h" #include "base/test/task_environment.h" #include "base/test/test_suite.h...
Zhao-PengFei35/chromium_src_4
ui/gl/test/run_all_unittests.cc
C++
unknown
3,193
// 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/trace_util.h" #include "base/format_macros.h" #include "base/strings/stringprintf.h" namespace gl { base::trace_event::MemoryAllocatorDumpGuid GetGLTextureCl...
Zhao-PengFei35/chromium_src_4
ui/gl/trace_util.cc
C++
unknown
1,512
// 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_TRACE_UTIL_H_ #define UI_GL_TRACE_UTIL_H_ #include <stdint.h> #include "base/trace_event/memory_allocator_dump.h" #include "ui/gl/gl_export.h" namespace gl { ...
Zhao-PengFei35/chromium_src_4
ui/gl/trace_util.h
C++
unknown
989
// 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_VSYNC_OBSERVER_H_ #define UI_GL_VSYNC_OBSERVER_H_ #include "base/time/time.h" namespace gl { class GL_EXPORT VSyncObserver { public: // Called on vsync threa...
Zhao-PengFei35/chromium_src_4
ui/gl/vsync_observer.h
C++
unknown
529
// 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/vsync_provider_win.h" #include <dwmapi.h> #include "base/time/time.h" #include "base/trace_event/trace_event.h" #include "ui/gfx/native_widget_types.h" names...
Zhao-PengFei35/chromium_src_4
ui/gl/vsync_provider_win.cc
C++
unknown
4,782
// 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_VSYNC_PROVIDER_WIN_H_ #define UI_GL_VSYNC_PROVIDER_WIN_H_ #include "ui/gfx/native_widget_types.h" #include "ui/gfx/vsync_provider.h" #include "ui/gl/gl_export.h"...
Zhao-PengFei35/chromium_src_4
ui/gl/vsync_provider_win.h
C++
unknown
1,103
// 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/vsync_thread_win.h" #include "base/functional/bind.h" #include "base/logging.h" #include "base/memory/singleton.h" #include "base/power_monitor/power_monitor.h...
Zhao-PengFei35/chromium_src_4
ui/gl/vsync_thread_win.cc
C++
unknown
5,231
// 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_VSYNC_THREAD_WIN_H_ #define UI_GL_VSYNC_THREAD_WIN_H_ #include <d3d11.h> #include <windows.h> #include <wrl/client.h> #include "base/containers/flat_set.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/gl/vsync_thread_win.h
C++
unknown
2,355
include_rules = [ "+cc/paint/paint_canvas.h", "+chrome/browser/themes/theme_properties.h", "+printing", "+third_party/skia", "+ui/aura", "+ui/base", "+ui/color", "+ui/display", "+ui/events", "+ui/gfx", "+ui/linux", "+ui/native_theme", "+ui/shell_dialogs", "+ui/strings", "+ui/views", # T...
Zhao-PengFei35/chromium_src_4
ui/gtk/DEPS
Python
unknown
366
// 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/gtk/gtk_color_mixers.h" #include "base/strings/strcat.h" #include "third_party/skia/include/core/SkColor.h" #include "ui/color/color_id.h" #include "ui/color/colo...
Zhao-PengFei35/chromium_src_4
ui/gtk/gtk_color_mixers.cc
C++
unknown
11,753