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 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/gfx/linux/gbm_util.h" #include "base/notreached.h" #include "ui/gfx/linux/gbm_defines.h" namespace ui { uint32_t BufferUsageToGbmFlags(gfx::BufferUsage usage) {...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/gbm_util.cc
C++
unknown
1,913
// 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_GFX_LINUX_GBM_UTIL_H_ #define UI_GFX_LINUX_GBM_UTIL_H_ #include <cstdint> #include "ui/gfx/buffer_types.h" namespace ui { // Get GBM buffer object usage flags fo...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/gbm_util.h
C++
unknown
595
// 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/gfx/linux/gbm_wrapper.h" #include <gbm.h> #include <memory> #include <utility> #include "base/logging.h" #include "base/memory/raw_ptr.h" #include "base/memory/r...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/gbm_wrapper.cc
C++
unknown
15,263
// 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_GFX_LINUX_GBM_WRAPPER_H_ #define UI_GFX_LINUX_GBM_WRAPPER_H_ #include <memory> #include "ui/gfx/linux/gbm_device.h" namespace ui { std::unique_ptr<ui::GbmDevice>...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/gbm_wrapper.h
C++
unknown
406
// 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/gfx/linux/gpu_memory_buffer_support_x11.h" #include <fcntl.h> #include <xcb/xcb.h> #include <memory> #include "base/containers/contains.h" #include "base/debug/...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/gpu_memory_buffer_support_x11.cc
C++
unknown
6,535
// 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_GFX_LINUX_GPU_MEMORY_BUFFER_SUPPORT_X11_H_ #define UI_GFX_LINUX_GPU_MEMORY_BUFFER_SUPPORT_X11_H_ #include <memory> #include <vector> #include "base/component_expor...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/gpu_memory_buffer_support_x11.h
C++
unknown
1,844
// 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/gfx/linux/native_pixmap_dmabuf.h" #include <utility> #include "base/posix/eintr_wrapper.h" namespace gfx { NativePixmapDmaBuf::NativePixmapDmaBuf(const gfx::Si...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/native_pixmap_dmabuf.cc
C++
unknown
2,737
// 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_GFX_LINUX_NATIVE_PIXMAP_DMABUF_H_ #define UI_GFX_LINUX_NATIVE_PIXMAP_DMABUF_H_ #include <stdint.h> #include <memory> #include "base/files/scoped_file.h" #include ...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/native_pixmap_dmabuf.h
C++
unknown
2,427
// 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/gfx/linux/native_pixmap_dmabuf.h" #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <utility> #include "testing/gtest/include/gtest/gtest...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/native_pixmap_dmabuf_unittest.cc
C++
unknown
2,730
// 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/gfx/linux/scoped_gbm_device.h" namespace ui { void GbmDeviceDeleter::operator()(gbm_device* device) { if (device) gbm_device_destroy(device); } } // name...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/scoped_gbm_device.cc
C++
unknown
329
// 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_GFX_LINUX_SCOPED_GBM_DEVICE_H_ #define UI_GFX_LINUX_SCOPED_GBM_DEVICE_H_ #include <gbm.h> #include <memory> namespace ui { struct GbmDeviceDeleter { void opera...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/scoped_gbm_device.h
C++
unknown
488
// 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/gfx/linux/test/mock_gbm_device.h" #include <xf86drm.h> #include <memory> #include <utility> #include "base/check_op.h" #include "base/containers/contains.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/test/mock_gbm_device.cc
C++
unknown
5,945
// 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_GFX_LINUX_TEST_MOCK_GBM_DEVICE_H_ #define UI_GFX_LINUX_TEST_MOCK_GBM_DEVICE_H_ #include <drm_fourcc.h> #include <vector> #include "ui/gfx/linux/gbm_device.h" names...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/test/mock_gbm_device.h
C++
unknown
1,723
// 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_GFX_MAC_COORDINATE_CONVERSION_H_ #define UI_GFX_MAC_COORDINATE_CONVERSION_H_ #import <Foundation/Foundation.h> #include "ui/gfx/gfx_export.h" namespace gfx { cla...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/coordinate_conversion.h
Objective-C
unknown
1,268
// 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. #import "ui/gfx/mac/coordinate_conversion.h" #import <Cocoa/Cocoa.h> #include "ui/gfx/geometry/point.h" #include "ui/gfx/geometry/rect.h" namespace gfx { namespace { // Th...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/coordinate_conversion.mm
Objective-C++
unknown
1,227
// 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. #import "ui/gfx/mac/coordinate_conversion.h" #import <Cocoa/Cocoa.h> #include <memory> #import "base/mac/scoped_objc_class_swizzler.h" #import "testing/gtest_mac.h" #import ...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/coordinate_conversion_unittest.mm
Objective-C++
unknown
4,606
// 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/gfx/mac/display_icc_profiles.h" #include "base/no_destructor.h" #include "base/notreached.h" #include "ui/gfx/icc_profile.h" namespace gfx { DisplayICCProfiles*...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/display_icc_profiles.cc
C++
unknown
2,934
// 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_GFX_MAC_DISPLAY_ICC_PROFILES_H_ #define UI_GFX_MAC_DISPLAY_ICC_PROFILES_H_ #include <CoreGraphics/CoreGraphics.h> #include "base/containers/flat_map.h" #include "b...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/display_icc_profiles.h
C++
unknown
2,284
// 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/gfx/mac/io_surface.h" #include <Availability.h> #include <CoreGraphics/CoreGraphics.h> #include <stddef.h> #include <stdint.h> #include "base/bits.h" #include "b...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/io_surface.cc
C++
unknown
13,734
// 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_GFX_MAC_IO_SURFACE_H_ #define UI_GFX_MAC_IO_SURFACE_H_ #include <IOKit/IOReturn.h> #include <IOSurface/IOSurfaceRef.h> #include <mach/mach.h> #include "base/mac/sc...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/io_surface.h
C++
unknown
3,306
// 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/gfx/mac/io_surface.h" #include "testing/gtest/include/gtest/gtest.h" namespace gfx { namespace { TEST(IOSurface, OddSizeMultiPlanar) { base::ScopedCFTypeRef<I...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/io_surface_unittest.cc
C++
unknown
671
// 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_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_ #define UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_ #include "ui/gfx/gfx_export.h" @class NSWindow; namespace gfx { class Size; // ...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/nswindow_frame_controls.h
Objective-C
unknown
1,253
// 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. #import "ui/gfx/mac/nswindow_frame_controls.h" #import <AppKit/AppKit.h> #include "ui/gfx/geometry/size.h" namespace { // The value used to represent an unbounded width or ...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/nswindow_frame_controls.mm
Objective-C++
unknown
2,353
// Copyright 2011 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_GFX_MAC_SCOPED_COCOA_DISABLE_SCREEN_UPDATES_H_ #define UI_GFX_MAC_SCOPED_COCOA_DISABLE_SCREEN_UPDATES_H_ #include "ui/gfx/gfx_export.h" namespace gfx { // A stack...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/scoped_cocoa_disable_screen_updates.h
C++
unknown
1,051
// 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/gfx/mac/scoped_cocoa_disable_screen_updates.h" #import <Cocoa/Cocoa.h> namespace gfx { ScopedCocoaDisableScreenUpdates::ScopedCocoaDisableScreenUpdates() { [N...
Zhao-PengFei35/chromium_src_4
ui/gfx/mac/scoped_cocoa_disable_screen_updates.mm
Objective-C++
unknown
486
include_rules = [ "+mojo/public", ] specific_include_rules = { "delegated_ink_metadata_mojom_traits\.h" : [ "+skia/public/mojom/skcolor_mojom_traits.h", ], "display_color_spaces_mojom_traits.cc" : [ "+skia/public/mojom/skcolorspace_primaries_mojom_traits.h", ], }
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/DEPS
Python
unknown
283
// 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_GFX_MOJOM_ACCELERATED_WIDGET_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_ACCELERATED_WIDGET_MOJOM_TRAITS_H_ #include "base/notreached.h" #include "build/build_config.h" #i...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/accelerated_widget_mojom_traits.h
C++
unknown
1,388
// 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/gfx/mojom/buffer_types_mojom_traits.h" #include "build/build_config.h" #if BUILDFLAG(IS_ANDROID) #include "base/android/scoped_hardware_buffer_handle.h" #include...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/buffer_types_mojom_traits.cc
C++
unknown
6,351
// 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_GFX_MOJOM_BUFFER_TYPES_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_BUFFER_TYPES_MOJOM_TRAITS_H_ #include "base/component_export.h" #include "base/notreached.h" #include "...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/buffer_types_mojom_traits.h
C++
unknown
11,004
// 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/gfx/mojom/ca_layer_params_mojom_traits.h" #include "build/build_config.h" #include "mojo/public/cpp/system/platform_handle.h" #include "ui/gfx/geometry/mojom/geom...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/ca_layer_params_mojom_traits.cc
C++
unknown
1,895
// 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_GFX_MOJOM_CA_LAYER_PARAMS_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_CA_LAYER_PARAMS_MOJOM_TRAITS_H_ #include "ui/gfx/ca_layer_params.h" #include "ui/gfx/mojom/ca_layer_p...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/ca_layer_params_mojom_traits.h
C++
unknown
1,080
// 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/gfx/mojom/ca_layer_result_mojom_traits.h" #include "build/build_config.h" namespace mojo { #if BUILDFLAG(IS_APPLE) // static gfx::mojom::CALayerResult EnumTraits...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/ca_layer_result_mojom_traits.cc
C++
unknown
8,264
// 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_GFX_MOJOM_CA_LAYER_RESULT_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_CA_LAYER_RESULT_MOJOM_TRAITS_H_ #include "build/build_config.h" #include "ui/gfx/ca_layer_result.h" ...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/ca_layer_result_mojom_traits.h
C++
unknown
816
// 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/gfx/mojom/color_space_mojom_traits.h" namespace mojo { // static bool StructTraits<gfx::mojom::ColorSpaceDataView, gfx::ColorSpace>::Read( gfx::mojom::Color...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/color_space_mojom_traits.cc
C++
unknown
909
// 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_GFX_MOJOM_COLOR_SPACE_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_COLOR_SPACE_MOJOM_TRAITS_H_ #include "base/component_export.h" #include "base/containers/span.h" #include...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/color_space_mojom_traits.h
C++
unknown
16,951
// 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/gfx/mojom/delegated_ink_metadata_mojom_traits.h" #include "base/time/time.h" namespace mojo { // static bool StructTraits<gfx::mojom::DelegatedInkMetadataDataVie...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/delegated_ink_metadata_mojom_traits.cc
C++
unknown
1,218
// 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_GFX_MOJOM_DELEGATED_INK_METADATA_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_DELEGATED_INK_METADATA_MOJOM_TRAITS_H_ #include <memory> #include "mojo/public/cpp/base/time_...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/delegated_ink_metadata_mojom_traits.h
C++
unknown
2,069
// 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/gfx/mojom/delegated_ink_point_mojom_traits.h" namespace mojo { // static bool StructTraits< gfx::mojom::DelegatedInkPointDataView, gfx::DelegatedInkPoint...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/delegated_ink_point_mojom_traits.cc
C++
unknown
580
// 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_GFX_MOJOM_DELEGATED_INK_POINT_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_DELEGATED_INK_POINT_MOJOM_TRAITS_H_ #include "mojo/public/cpp/base/time_mojom_traits.h" #include ...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/delegated_ink_point_mojom_traits.h
C++
unknown
1,117
// 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/gfx/mojom/display_color_spaces_mojom_traits.h" #include "skia/public/mojom/skcolorspace_primaries_mojom_traits.h" namespace mojo { // static gfx::mojom::Content...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/display_color_spaces_mojom_traits.cc
C++
unknown
2,649
// 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_GFX_MOJOM_DISPLAY_COLOR_SPACES_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_DISPLAY_COLOR_SPACES_MOJOM_TRAITS_H_ #include "base/containers/span.h" #include "third_party/ski...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/display_color_spaces_mojom_traits.h
C++
unknown
1,920
// 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_GFX_MOJOM_FONT_RENDER_PARAMS_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_FONT_RENDER_PARAMS_MOJOM_TRAITS_H_ #include "base/notreached.h" #include "ui/gfx/font_render_param...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/font_render_params_mojom_traits.h
C++
unknown
3,529
// 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_GFX_MOJOM_FRAME_DATA_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_FRAME_DATA_MOJOM_TRAITS_H_ #include "mojo/public/cpp/bindings/struct_traits.h" #include "ui/gfx/frame_data...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/frame_data_mojom_traits.h
C++
unknown
748
// 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/gfx/mojom/gpu_extra_info_mojom_traits.h" #include "build/build_config.h" #include "ui/gfx/mojom/buffer_types_mojom_traits.h" namespace mojo { // static bool Str...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/gpu_extra_info_mojom_traits.cc
C++
unknown
1,111
// 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_GFX_MOJOM_GPU_EXTRA_INFO_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_GPU_EXTRA_INFO_MOJOM_TRAITS_H_ #include "base/component_export.h" #include "build/build_config.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/gpu_extra_info_mojom_traits.h
C++
unknown
2,130
// 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/gfx/mojom/gpu_fence_handle_mojom_traits.h" #include "build/build_config.h" #include "mojo/public/cpp/system/platform_handle.h" namespace mojo { #if BUILDFLAG(IS...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/gpu_fence_handle_mojom_traits.cc
C++
unknown
1,648
// 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_GFX_MOJOM_GPU_FENCE_HANDLE_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_GPU_FENCE_HANDLE_MOJOM_TRAITS_H_ #include "base/component_export.h" #include "build/build_config.h" ...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/gpu_fence_handle_mojom_traits.h
C++
unknown
1,071
// 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/gfx/mojom/hdr_metadata_mojom_traits.h" namespace mojo { bool StructTraits<gfx::mojom::ColorVolumeMetadataDataView, gfx::ColorVolumeMetadata>:: ...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/hdr_metadata_mojom_traits.cc
C++
unknown
1,022
// 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_GFX_MOJOM_HDR_METADATA_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_HDR_METADATA_MOJOM_TRAITS_H_ #include "ui/gfx/hdr_metadata.h" #include "ui/gfx/mojom/hdr_metadata.mojom....
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/hdr_metadata_mojom_traits.h
C++
unknown
2,327
// 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/gfx/mojom/hdr_static_metadata_mojom_traits.h" namespace mojo { bool StructTraits< gfx::mojom::HDRStaticMetadataDataView, gfx::HDRStaticMetadata>::Read(gf...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/hdr_static_metadata_mojom_traits.cc
C++
unknown
561
// 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_GFX_MOJOM_HDR_STATIC_METADATA_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_HDR_STATIC_METADATA_MOJOM_TRAITS_H_ #include "base/component_export.h" #include "ui/gfx/hdr_stati...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/hdr_static_metadata_mojom_traits.h
C++
unknown
1,022
// 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/gfx/mojom/linear_gradient_mojom_traits.h" namespace mojo { // static bool StructTraits<gfx::mojom::LinearGradientDataView, gfx::LinearGradient>:: Read(gfx::m...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/linear_gradient_mojom_traits.cc
C++
unknown
782
// 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_GFX_MOJOM_LINEAR_GRADIENT_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_LINEAR_GRADIENT_MOJOM_TRAITS_H_ #include "ui/gfx/geometry/linear_gradient.h" #include "ui/gfx/mojom/l...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/linear_gradient_mojom_traits.h
C++
unknown
1,441
// 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/gfx/mojom/mask_filter_info_mojom_traits.h" namespace mojo { // static bool StructTraits<gfx::mojom::MaskFilterInfoDataView, gfx::MaskFilterInfo>:: Read(gfx::...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/mask_filter_info_mojom_traits.cc
C++
unknown
788
// 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_GFX_MOJOM_MASK_FILTER_INFO_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_MASK_FILTER_INFO_MOJOM_TRAITS_H_ #include "ui/gfx/geometry/linear_gradient.h" #include "ui/gfx/geome...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/mask_filter_info_mojom_traits.h
C++
unknown
1,083
// 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 <utility> #include "base/memory/platform_shared_memory_handle.h" #include "base/memory/unsafe_shared_memory_region.h" #include "base/test/task_environment.h" #include...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/mojom_traits_unittest.cc
C++
unknown
12,694
// 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/gfx/mojom/native_handle_types_mojom_traits.h" #include "build/build_config.h" namespace mojo { #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/native_handle_types_mojom_traits.cc
C++
unknown
3,005
// 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_GFX_MOJOM_NATIVE_HANDLE_TYPES_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_NATIVE_HANDLE_TYPES_MOJOM_TRAITS_H_ #include "base/component_export.h" #include "base/numerics/sa...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/native_handle_types_mojom_traits.h
C++
unknown
3,626
// 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_GFX_MOJOM_OVERLAY_PRIORITY_HINT_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_OVERLAY_PRIORITY_HINT_MOJOM_TRAITS_H_ #include "base/notreached.h" #include "ui/gfx/mojom/overl...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/overlay_priority_hint_mojom_traits.h
C++
unknown
2,177
// 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_GFX_MOJOM_OVERLAY_TRANSFORM_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_OVERLAY_TRANSFORM_MOJOM_TRAITS_H_ #include "base/notreached.h" #include "ui/gfx/mojom/overlay_trans...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/overlay_transform_mojom_traits.h
C++
unknown
3,023
// 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_GFX_MOJOM_PRESENTATION_FEEDBACK_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_PRESENTATION_FEEDBACK_MOJOM_TRAITS_H_ #include "base/time/time.h" #include "build/build_config....
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/presentation_feedback_mojom_traits.h
C++
unknown
2,462
// 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_GFX_MOJOM_RRECT_F_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_RRECT_F_MOJOM_TRAITS_H_ #include "base/notreached.h" #include "ui/gfx/geometry/mojom/geometry_mojom_traits.h"...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/rrect_f_mojom_traits.h
C++
unknown
3,937
// 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_GFX_MOJOM_SELECTION_BOUND_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_SELECTION_BOUND_MOJOM_TRAITS_H_ #include "base/notreached.h" #include "ui/gfx/geometry/mojom/geometry...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/selection_bound_mojom_traits.h
C++
unknown
3,044
// 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_GFX_MOJOM_SWAP_RESULT_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_SWAP_RESULT_MOJOM_TRAITS_H_ #include "base/notreached.h" #include "mojo/public/cpp/bindings/enum_traits.h...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/swap_result_mojom_traits.h
C++
unknown
1,714
// 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_GFX_MOJOM_SWAP_TIMINGS_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_SWAP_TIMINGS_MOJOM_TRAITS_H_ #include "base/time/time.h" #include "mojo/public/cpp/base/time_mojom_trait...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/swap_timings_mojom_traits.h
C++
unknown
995
// 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_GFX_MOJOM_TRANSFORM_MOJOM_TRAITS_H_ #define UI_GFX_MOJOM_TRANSFORM_MOJOM_TRAITS_H_ #include "mojo/public/cpp/bindings/array_traits.h" #include "ui/gfx/geometry/tran...
Zhao-PengFei35/chromium_src_4
ui/gfx/mojom/transform_mojom_traits.h
C++
unknown
1,113
// 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_GFX_NATIVE_PIXMAP_H_ #define UI_GFX_NATIVE_PIXMAP_H_ #include "base/memory/ref_counted.h" #include "ui/gfx/buffer_types.h" #include "ui/gfx/geometry/size.h" #includ...
Zhao-PengFei35/chromium_src_4
ui/gfx/native_pixmap.h
C++
unknown
3,091
// 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/gfx/native_pixmap_handle.h" #include <utility> #include "base/logging.h" #include "build/build_config.h" #include "ui/gfx/buffer_format_util.h" #include "ui/gfx/...
Zhao-PengFei35/chromium_src_4
ui/gfx/native_pixmap_handle.cc
C++
unknown
7,327
// 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_GFX_NATIVE_PIXMAP_HANDLE_H_ #define UI_GFX_NATIVE_PIXMAP_HANDLE_H_ #include <stddef.h> #include <stdint.h> #include <vector> #include "build/build_config.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/gfx/native_pixmap_handle.h
C++
unknown
4,867
// 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_GFX_NATIVE_WIDGET_TYPES_H_ #define UI_GFX_NATIVE_WIDGET_TYPES_H_ #include <stdint.h> #include "build/build_config.h" #include "build/chromeos_buildflags.h" #includ...
Zhao-PengFei35/chromium_src_4
ui/gfx/native_widget_types.h
Objective-C
unknown
8,354
// 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/gfx/native_widget_types.h" #include <AppKit/AppKit.h> #include "base/strings/sys_string_conversions.h" namespace gfx { std::string NativeView::ToString() const...
Zhao-PengFei35/chromium_src_4
ui/gfx/native_widget_types.mm
Objective-C++
unknown
508
// 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/gfx/nine_image_painter.h" #include <stddef.h> #include <limits> #include "base/numerics/safe_conversions.h" #include "cc/paint/paint_flags.h" #include "third_pa...
Zhao-PengFei35/chromium_src_4
ui/gfx/nine_image_painter.cc
C++
unknown
6,999
// 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_GFX_NINE_IMAGE_PAINTER_H_ #define UI_GFX_NINE_IMAGE_PAINTER_H_ #include <stdint.h> #include <vector> #include "base/gtest_prod_util.h" #include "ui/gfx/gfx_export...
Zhao-PengFei35/chromium_src_4
ui/gfx/nine_image_painter.h
C++
unknown
1,499
// 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/gfx/nine_image_painter.h" #include "base/base64.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/canvas.h" #include "ui/gfx/codec/png_codec.h" #...
Zhao-PengFei35/chromium_src_4
ui/gfx/nine_image_painter_unittest.cc
C++
unknown
7,445
// 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/gfx/overlay_plane_data.h" namespace gfx { OverlayPlaneData::OverlayPlaneData() = default; OverlayPlaneData::OverlayPlaneData( int z_order, OverlayTransf...
Zhao-PengFei35/chromium_src_4
ui/gfx/overlay_plane_data.cc
C++
unknown
1,342
// 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_GFX_OVERLAY_PLANE_DATA_H_ #define UI_GFX_OVERLAY_PLANE_DATA_H_ #include "third_party/abseil-cpp/absl/types/optional.h" #include "third_party/skia/include/core/SkCol...
Zhao-PengFei35/chromium_src_4
ui/gfx/overlay_plane_data.h
C++
unknown
3,174
// 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_GFX_OVERLAY_PRIORITY_HINT_H_ #define UI_GFX_OVERLAY_PRIORITY_HINT_H_ #include <stdint.h> namespace gfx { // Provides a hint to a system compositor how it should p...
Zhao-PengFei35/chromium_src_4
ui/gfx/overlay_priority_hint.h
C++
unknown
859
// 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_GFX_OVERLAY_TRANSFORM_H_ #define UI_GFX_OVERLAY_TRANSFORM_H_ #include <stdint.h> namespace gfx { // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.gfx // Describes ...
Zhao-PengFei35/chromium_src_4
ui/gfx/overlay_transform.h
C++
unknown
811
// 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/gfx/overlay_transform_utils.h" #include "base/notreached.h" #include "ui/gfx/geometry/rect_conversions.h" namespace gfx { Transform OverlayTransformToTransform(...
Zhao-PengFei35/chromium_src_4
ui/gfx/overlay_transform_utils.cc
C++
unknown
2,024
// 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_GFX_OVERLAY_TRANSFORM_UTILS_H_ #define UI_GFX_OVERLAY_TRANSFORM_UTILS_H_ #include "ui/gfx/geometry/size_f.h" #include "ui/gfx/geometry/transform.h" #include "ui/gfx...
Zhao-PengFei35/chromium_src_4
ui/gfx/overlay_transform_utils.h
C++
unknown
683
// 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/gfx/overlay_transform_utils.h" #include "cc/base/math_util.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/geometry/rect.h" namespace gfx { na...
Zhao-PengFei35/chromium_src_4
ui/gfx/overlay_transform_utils_unittest.cc
C++
unknown
1,875
// 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/gfx/paint_throbber.h" #include <algorithm> #include "base/numerics/safe_conversions.h" #include "base/time/time.h" #include "cc/paint/paint_flags.h" #include "th...
Zhao-PengFei35/chromium_src_4
ui/gfx/paint_throbber.cc
C++
unknown
10,999
// 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_GFX_PAINT_THROBBER_H_ #define UI_GFX_PAINT_THROBBER_H_ #include <stdint.h> #include "base/time/time.h" #include "third_party/abseil-cpp/absl/types/optional.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/gfx/paint_throbber.h
C++
unknown
3,341
// 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/gfx/paint_vector_icon.h" #include <algorithm> #include <map> #include <tuple> #include "base/i18n/rtl.h" #include "base/lazy_instance.h" #include "base/memory/ra...
Zhao-PengFei35/chromium_src_4
ui/gfx/paint_vector_icon.cc
C++
unknown
18,571
// 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_GFX_PAINT_VECTOR_ICON_H_ #define UI_GFX_PAINT_VECTOR_ICON_H_ #include "base/memory/raw_ref.h" #include "third_party/skia/include/core/SkColor.h" #include "ui/gfx/co...
Zhao-PengFei35/chromium_src_4
ui/gfx/paint_vector_icon.h
C++
unknown
3,430
// 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/gfx/paint_vector_icon.h" #include <gtest/gtest.h> #include <vector> #include "base/i18n/rtl.h" #include "cc/paint/paint_record.h" #include "cc/paint/paint_recor...
Zhao-PengFei35/chromium_src_4
ui/gfx/paint_vector_icon_unittest.cc
C++
unknown
12,202
// Copyright 2011 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/gfx/path_win.h" #include <memory> #include "base/win/scoped_gdi_object.h" #include "third_party/skia/include/core/SkPath.h" #include "third_party/skia/include/co...
Zhao-PengFei35/chromium_src_4
ui/gfx/path_win.cc
C++
unknown
1,071
// 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_GFX_PATH_WIN_H_ #define UI_GFX_PATH_WIN_H_ #include <windows.h> #include "ui/gfx/gfx_export.h" class SkPath; class SkRegion; namespace gfx { // Creates a new HR...
Zhao-PengFei35/chromium_src_4
ui/gfx/path_win.h
C++
unknown
726
// 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/gfx/path_win.h" #include <stddef.h> #include <vector> #include "base/check_op.h" #include "base/containers/span.h" #include "base/ranges/algorithm.h" #include "...
Zhao-PengFei35/chromium_src_4
ui/gfx/path_win_unittest.cc
C++
unknown
3,768
// 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_GFX_PLATFORM_FONT_H_ #define UI_GFX_PLATFORM_FONT_H_ #include <string> #include "base/memory/ref_counted.h" #include "build/build_config.h" #include "third_party/a...
Zhao-PengFei35/chromium_src_4
ui/gfx/platform_font.h
C++
unknown
4,429
// 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_GFX_PLATFORM_FONT_IOS_H_ #define UI_GFX_PLATFORM_FONT_IOS_H_ #include "build/blink_buildflags.h" #include "ui/gfx/platform_font.h" namespace gfx { class PlatformF...
Zhao-PengFei35/chromium_src_4
ui/gfx/platform_font_ios.h
C++
unknown
2,484
// 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/gfx/platform_font_ios.h" #import <UIKit/UIKit.h> #include <cmath> #import "base/mac/foundation_util.h" #include "base/notreached.h" #include "base/strings/sys_s...
Zhao-PengFei35/chromium_src_4
ui/gfx/platform_font_ios.mm
Objective-C++
unknown
5,532
// 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_GFX_PLATFORM_FONT_MAC_H_ #define UI_GFX_PLATFORM_FONT_MAC_H_ #include <CoreText/CoreText.h> #include "base/mac/scoped_nsobject.h" #include "third_party/abseil-cpp/...
Zhao-PengFei35/chromium_src_4
ui/gfx/platform_font_mac.h
C++
unknown
4,455
// 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/gfx/platform_font_mac.h" #include <cmath> #include <set> #include <Cocoa/Cocoa.h> #include <CoreText/CoreText.h> #import "base/mac/foundation_util.h" #include "...
Zhao-PengFei35/chromium_src_4
ui/gfx/platform_font_mac.mm
Objective-C++
unknown
21,351
// 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/gfx/platform_font_mac.h" #include <Cocoa/Cocoa.h> #include <CoreText/CoreText.h> #include <stddef.h> #import "base/mac/foundation_util.h" #include "base/mac/scop...
Zhao-PengFei35/chromium_src_4
ui/gfx/platform_font_mac_unittest.mm
Objective-C++
unknown
10,605
// 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/gfx/platform_font_skia.h" #include <algorithm> #include <string> #include "base/lazy_instance.h" #include "base/logging.h" #include "base/strings/string_piece.h"...
Zhao-PengFei35/chromium_src_4
ui/gfx/platform_font_skia.cc
C++
unknown
16,993
// 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_GFX_PLATFORM_FONT_SKIA_H_ #define UI_GFX_PLATFORM_FONT_SKIA_H_ #include <memory> #include <string> #include "build/build_config.h" #include "third_party/skia/inclu...
Zhao-PengFei35/chromium_src_4
ui/gfx/platform_font_skia.h
C++
unknown
4,278
// 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/gfx/platform_font_skia.h" #include <string> #include "base/check_op.h" #include "base/memory/raw_ptr.h" #include "base/memory/ref_counted.h" #include "base/notre...
Zhao-PengFei35/chromium_src_4
ui/gfx/platform_font_skia_unittest.cc
C++
unknown
5,616
// 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_GFX_PRESENTATION_FEEDBACK_H_ #define UI_GFX_PRESENTATION_FEEDBACK_H_ #include <stdint.h> #include "base/time/time.h" #include "build/build_config.h" #include "ui/g...
Zhao-PengFei35/chromium_src_4
ui/gfx/presentation_feedback.h
C++
unknown
4,481
// 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_GFX_RANGE_GFX_RANGE_EXPORT_H_ #define UI_GFX_RANGE_GFX_RANGE_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(GFX_RANGE_IMPLEMENTATION) #defin...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/gfx_range_export.h
C
unknown
745