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 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/hdr_metadata_mac.h" #include "ui/gfx/hdr_metadata.h" #include <simd/simd.h> namespace gfx { base::ScopedCFTypeRef<CFDataRef> GenerateContentLightLevelInfo( ...
Zhao-PengFei35/chromium_src_4
ui/gfx/hdr_metadata_mac.mm
Objective-C++
unknown
3,337
// 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/hdr_static_metadata.h" namespace gfx { HDRStaticMetadata::HDRStaticMetadata() = default; HDRStaticMetadata::HDRStaticMetadata(double max, double max_avg, dou...
Zhao-PengFei35/chromium_src_4
ui/gfx/hdr_static_metadata.cc
C++
unknown
567
// 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_HDR_STATIC_METADATA_H_ #define UI_GFX_HDR_STATIC_METADATA_H_ #include "ui/gfx/color_space_export.h" namespace gfx { // This structure is used to define the HD...
Zhao-PengFei35/chromium_src_4
ui/gfx/hdr_static_metadata.h
C++
unknown
1,539
// 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/icc_profile.h" #include <list> #include <set> #include "base/command_line.h" #include "base/containers/lru_cache.h" #include "base/lazy_instance.h" #include ...
Zhao-PengFei35/chromium_src_4
ui/gfx/icc_profile.cc
C++
unknown
7,848
// 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_ICC_PROFILE_H_ #define UI_GFX_ICC_PROFILE_H_ #include <stdint.h> #include <set> #include <vector> #include "base/gtest_prod_util.h" #include "base/memory/ref_c...
Zhao-PengFei35/chromium_src_4
ui/gfx/icc_profile.h
C++
unknown
3,643
// 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/icc_profile.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/color_space.h" #include "ui/gfx/skia_color_space_util.h" #include "ui/gfx/test/i...
Zhao-PengFei35/chromium_src_4
ui/gfx/icc_profile_unittest.cc
C++
unknown
5,183
// 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/icon_util.h" #include "base/check_op.h" #include "base/files/file_util.h" #include "base/files/important_file_writer.h" #include "base/memory/ref_counted_memo...
Zhao-PengFei35/chromium_src_4
ui/gfx/icon_util.cc
C++
unknown
28,487
// 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_ICON_UTIL_H_ #define UI_GFX_ICON_UTIL_H_ #include <windows.h> #include <stddef.h> #include <stdint.h> #include <memory> #include <vector> #include "base/win/sc...
Zhao-PengFei35/chromium_src_4
ui/gfx/icon_util.h
C++
unknown
10,947
// 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/icon_util.h" #include <stddef.h> #include <memory> #include <vector> #include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "bas...
Zhao-PengFei35/chromium_src_4
ui/gfx/icon_util_unittest.cc
C++
unknown
17,953
// 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_ICON_UTIL_UNITTESTS_RESOURCE_H_ #define UI_GFX_ICON_UTIL_UNITTESTS_RESOURCE_H_ #define IDR_MAINFRAME 101 #endif // UI_GFX_ICON_UTIL_UNITTESTS_RE...
Zhao-PengFei35/chromium_src_4
ui/gfx/icon_util_unittests_resource.h
C
unknown
329
// 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/image/buffer_w_stream.h" #include <utility> namespace gfx { BufferWStream::BufferWStream() = default; BufferWStream::~BufferWStream() = default; std::vect...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/buffer_w_stream.cc
C++
unknown
687
// 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_IMAGE_BUFFER_W_STREAM_H_ #define UI_GFX_IMAGE_BUFFER_W_STREAM_H_ #include <stdint.h> #include <vector> #include "third_party/skia/include/core/SkStream.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/buffer_w_stream.h
C++
unknown
1,000
// 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/image/buffer_w_stream.h" #include <stdint.h> #include <algorithm> #include <vector> #include "base/ranges/algorithm.h" #include "testing/gtest/include/gtest/...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/buffer_w_stream_unittest.cc
C++
unknown
1,791
// 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/image/canvas_image_source.h" #include "base/check_op.h" #include "cc/paint/paint_op_buffer.h" #include "cc/paint/record_paint_canvas.h" #include "ui/gfx/canva...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/canvas_image_source.cc
C++
unknown
2,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. #ifndef UI_GFX_IMAGE_CANVAS_IMAGE_SOURCE_H_ #define UI_GFX_IMAGE_CANVAS_IMAGE_SOURCE_H_ #include <utility> #include "ui/gfx/geometry/size.h" #include "ui/gfx/gfx_export.h" #i...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/canvas_image_source.h
C++
unknown
1,992
// 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/image/image.h" #include <algorithm> #include <map> #include <ostream> #include <utility> #include <vector> #include "base/check_op.h" #include "base/memory/p...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image.cc
C++
unknown
14,580
// 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. // An Image wraps an image any flavor, be it platform-native GdkBitmap/NSImage, // or a SkBitmap. This also provides easy conversion to other image types // through operator ov...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image.h
C++
unknown
6,551
// 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/gfx/image/image_family.h" #include <cmath> #include "base/check_op.h" #include "skia/ext/image_operations.h" #include "ui/gfx/geometry/size.h" #include "ui/gfx/i...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_family.cc
C++
unknown
5,613
// 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_GFX_IMAGE_IMAGE_FAMILY_H_ #define UI_GFX_IMAGE_IMAGE_FAMILY_H_ #include <iterator> #include <map> #include <utility> #include "ui/gfx/gfx_export.h" #include "ui/gf...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_family.h
C++
unknown
6,705
// 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 "testing/gtest/include/gtest/gtest.h" #include "third_party/skia/include/core/SkBitmap.h" #include "third_party/skia/include/core/SkImageInfo.h" #include "ui/gfx/geome...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_family_unittest.cc
C++
unknown
9,662
// 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/image/image_platform.h" #include <memory> #include <set> #include <utility> #include "base/logging.h" #include "ui/gfx/codec/png_codec.h" #include "ui/gfx/im...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_generic.cc
C++
unknown
3,786
// 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. // This holds internal declarations for the machinery of gfx::Image. These are // only for the internal use of gfx::Image; do not use them elsewhere. #ifndef UI_GFX_IMAGE_IMAG...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_internal.h
C++
unknown
4,218
// 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/image/image_platform.h" #include <stddef.h> #import <UIKit/UIKit.h> #include <cmath> #include <limits> #include "base/logging.h" #include "base/mac/scoped_c...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_ios.mm
Objective-C++
unknown
6,182
// 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/image/image.h" #import <QuartzCore/QuartzCore.h> #import <UIKit/UIKit.h> #include <stddef.h> #include "base/mac/scoped_cftyperef.h" #include "testing/gtest/i...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_ios_unittest.mm
Objective-C++
unknown
3,925
// 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/image/image_platform.h" #import <AppKit/AppKit.h> #include <stddef.h> #include "base/debug/dump_without_crashing.h" #include "base/logging.h" #include "base/...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_mac.mm
Objective-C++
unknown
5,634
// 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 <Cocoa/Cocoa.h> #include <stddef.h> #include "base/mac/scoped_nsobject.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/image/image.h" #include "ui/...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_mac_unittest.mm
Objective-C++
unknown
6,772
// 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 declares platform-specific helper functions in gfx::internal for // use by image.cc. // // The functions are implemented in image_generic.cc (all platforms other t...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_platform.h
C++
unknown
1,996
// 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/image/image_png_rep.h" #include "base/logging.h" #include "third_party/skia/include/core/SkBitmap.h" #include "ui/gfx/codec/png_codec.h" #include "ui/gfx/geom...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_png_rep.cc
C++
unknown
1,136
// 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_IMAGE_IMAGE_PNG_REP_H_ #define UI_GFX_IMAGE_IMAGE_PNG_REP_H_ #include "base/memory/ref_counted_memory.h" #include "ui/gfx/gfx_export.h" namespace gfx { class S...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_png_rep.h
C++
unknown
1,043
// 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/image/image_skia.h" #include <stddef.h> #include <cmath> #include <limits> #include <memory> #include "base/check.h" #include "base/check_op.h" #include "ba...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia.cc
C++
unknown
18,446
// 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_IMAGE_IMAGE_SKIA_H_ #define UI_GFX_IMAGE_IMAGE_SKIA_H_ #include <memory> #include <vector> #include "base/gtest_prod_util.h" #include "base/memory/scoped_refpt...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia.h
C++
unknown
8,558
// 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/image/image_skia_operations.h" #include <stddef.h> #include <memory> #include "base/command_line.h" #include "base/logging.h" #include "base/memory/ptr_util....
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_operations.cc
C++
unknown
28,467
// 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_IMAGE_IMAGE_SKIA_OPERATIONS_H_ #define UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_ #include "skia/ext/image_operations.h" #include "third_party/skia/include/core/SkDr...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_operations.h
C++
unknown
7,028
// 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/image/image_skia_operations.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/geometry/size.h" #include "ui/gfx/image/image_skia.h" #include ...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_operations_unittest.cc
C++
unknown
787
// 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_IMAGE_IMAGE_SKIA_REP_H_ #define UI_GFX_IMAGE_IMAGE_SKIA_REP_H_ #include "build/blink_buildflags.h" #include "build/build_config.h" #if BUILDFLAG(IS_IOS) && !BU...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_rep.h
C
unknown
511
// 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/image/image_skia_rep_default.h" #include "base/check_op.h" #include "base/notreached.h" #include "cc/paint/display_item_list.h" #include "cc/paint/record_pain...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_rep_default.cc
C++
unknown
3,618
// 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_IMAGE_IMAGE_SKIA_REP_DEFAULT_H_ #define UI_GFX_IMAGE_IMAGE_SKIA_REP_DEFAULT_H_ #include "build/build_config.h" #include "cc/paint/paint_image.h" #include "cc/pa...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_rep_default.h
C++
unknown
3,939
// 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/image/image_skia_rep_ios.h" #include "base/check_op.h" #include "ui/gfx/color_palette.h" namespace gfx { ImageSkiaRep::ImageSkiaRep() : scale_(0.0f) {} Ima...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_rep_ios.cc
C++
unknown
1,409
// 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_IMAGE_IMAGE_SKIA_REP_IOS_H_ #define UI_GFX_IMAGE_IMAGE_SKIA_REP_IOS_H_ #include "build/build_config.h" #include "third_party/skia/include/core/SkBitmap.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_rep_ios.h
C++
unknown
2,259
// 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/image/image_skia_source.h" namespace gfx { ImageSkiaSource::~ImageSkiaSource() {} bool ImageSkiaSource::HasRepresentationAtAllScales() const { return false;...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_source.cc
C++
unknown
344
// 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_IMAGE_IMAGE_SKIA_SOURCE_H_ #define UI_GFX_IMAGE_IMAGE_SKIA_SOURCE_H_ #include "ui/gfx/gfx_export.h" namespace gfx { class ImageSkiaRep; class GFX_EXPORT Ima...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_source.h
C++
unknown
956
// 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/image/image_skia.h" #include <stddef.h> #include "base/check_op.h" #include "base/command_line.h" #include "base/memory/ptr_util.h" #include "base/memory/raw...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_unittest.cc
C++
unknown
21,415
// 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_IMAGE_IMAGE_SKIA_UTIL_IOS_H_ #define UI_GFX_IMAGE_IMAGE_SKIA_UTIL_IOS_H_ #include "ui/gfx/gfx_export.h" #ifdef __OBJC__ @class UIImage; #else class UIImage; #e...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_util_ios.h
Objective-C
unknown
1,323
// 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/image/image_skia_util_ios.h" #import <UIKit/UIKit.h> #include "base/mac/scoped_cftyperef.h" #include "skia/ext/skia_utils_ios.h" #include "third_party/skia/i...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_util_ios.mm
Objective-C++
unknown
1,855
// 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_IMAGE_IMAGE_SKIA_UTIL_MAC_H_ #define UI_GFX_IMAGE_IMAGE_SKIA_UTIL_MAC_H_ #include <ApplicationServices/ApplicationServices.h> #include "ui/gfx/gfx_export.h" u...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_util_mac.h
Objective-C
unknown
1,149
// 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/image/image_skia_util_mac.h" #import <AppKit/AppKit.h> #include <stddef.h> #include <cmath> #include <limits> #include <memory> #include "base/mac/mac_util....
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_skia_util_mac.mm
Objective-C++
unknown
3,464
// 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 <stddef.h> #include <utility> #include "build/build_config.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/skia/include/core/SkCanvas.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_unittest.cc
C++
unknown
25,767
// 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. // Because the unit tests for gfx::Image are spread across multiple // implementation files, this header contains the reusable components. #include "ui/gfx/image/image_unittes...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_unittest_util.cc
C++
unknown
7,807
// 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. // Because the unit tests for gfx::Image are spread across multiple // implementation files, this header contains the reusable components. #ifndef UI_GFX_IMAGE_IMAGE_UNITTEST_...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_unittest_util.h
C++
unknown
3,947
// 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/image/image_unittest_util.h" #import <CoreGraphics/CoreGraphics.h> #include "base/bit_cast.h" #include "base/mac/scoped_cftyperef.h" #include "build/build_co...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_unittest_util_apple.mm
Objective-C++
unknown
2,077
// 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/image/image_util.h" #include <stdint.h> #include <algorithm> #include <memory> #include "build/build_config.h" #include "skia/ext/image_operations.h" #inclu...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_util.cc
C++
unknown
5,424
// 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_IMAGE_IMAGE_UTIL_H_ #define UI_GFX_IMAGE_IMAGE_UTIL_H_ #include <stddef.h> #include <vector> #include "ui/gfx/gfx_export.h" namespace gfx { class Image; clas...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_util.h
C++
unknown
3,523
// 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. #import <UIKit/UIKit.h> #include "ui/gfx/image/image.h" #include "ui/gfx/image/image_util.h" #include "ui/gfx/image/resize_image_dimensions.h" namespace { // Copied from GTM...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_util_ios.mm
Objective-C++
unknown
4,009
// 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/image/image_util.h" #import <Cocoa/Cocoa.h> #include "base/mac/scoped_nsobject.h" #include "ui/gfx/image/image.h" namespace gfx { bool JPEG1xEncodedDataFro...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_util_mac.mm
Objective-C++
unknown
1,252
// 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/image/image_util.h" #include <memory> #include <vector> #include "testing/gtest/include/gtest/gtest.h" #include "third_party/skia/include/core/SkBitmap.h" #i...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/image_util_unittest.cc
C++
unknown
5,207
include_rules = [ "+mojo/public", "+skia/public/mojom", "+ui/gfx/image", ]
Zhao-PengFei35/chromium_src_4
ui/gfx/image/mojom/DEPS
Python
unknown
81
// 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/image/mojom/image_skia_mojom_traits.h" #include <string.h> #include "base/check_op.h" namespace mojo { // static SkBitmap StructTraits<gfx::mojom::ImageSki...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/mojom/image_skia_mojom_traits.cc
C++
unknown
2,211
// 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_IMAGE_MOJOM_IMAGE_SKIA_MOJOM_TRAITS_H_ #define UI_GFX_IMAGE_MOJOM_IMAGE_SKIA_MOJOM_TRAITS_H_ #include <stdint.h> #include <vector> #include "skia/public/mojom...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/mojom/image_skia_mojom_traits.h
C++
unknown
1,334
// 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 <utility> #include <vector> #include "base/test/task_environment.h" #include "mojo/public/cpp/bindings/receiver_set.h" #include "mojo/public/cpp/bindings/remote.h" #i...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/mojom/image_traits_unittest.cc
C++
unknown
5,374
// 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_IMAGE_RESIZE_IMAGE_DIMENSIONS_H_ #define UI_GFX_IMAGE_RESIZE_IMAGE_DIMENSIONS_H_ namespace gfx { // Dimensions to use when downsizing an image for search-by-im...
Zhao-PengFei35/chromium_src_4
ui/gfx/image/resize_image_dimensions.h
C++
unknown
535
// 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/interpolated_transform.h" #include <cmath> #include "base/check.h" #include "base/numerics/safe_conversions.h" #include "ui/gfx/animation/tween.h" #include "...
Zhao-PengFei35/chromium_src_4
ui/gfx/interpolated_transform.cc
C++
unknown
12,132
// 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_INTERPOLATED_TRANSFORM_H_ #define UI_GFX_INTERPOLATED_TRANSFORM_H_ #include <memory> #include "ui/gfx/geometry/decomposed_transform.h" #include "ui/gfx/geometr...
Zhao-PengFei35/chromium_src_4
ui/gfx/interpolated_transform.h
C++
unknown
10,620
// 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/interpolated_transform.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/geometry/rect.h" #include "ui/gfx/geometry/test/geometry_util.h" TE...
Zhao-PengFei35/chromium_src_4
ui/gfx/interpolated_transform_unittest.cc
C++
unknown
8,451
// 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_IOS_NSSTRING_CRSTRINGDRAWING_H_ #define UI_GFX_IOS_NSSTRING_CRSTRINGDRAWING_H_ #import <UIKit/UIKit.h> @interface NSString (CrStringDrawing) // Calculates and...
Zhao-PengFei35/chromium_src_4
ui/gfx/ios/NSString+CrStringDrawing.h
Objective-C
unknown
2,762
// 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/ios/NSString+CrStringDrawing.h" #include <ostream> #include <stddef.h> #include "base/check.h" #include "ui/gfx/ios/uikit_util.h" @implementation NSString (...
Zhao-PengFei35/chromium_src_4
ui/gfx/ios/NSString+CrStringDrawing.mm
Objective-C++
unknown
2,374
// 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/ios/NSString+CrStringDrawing.h" #include "base/mac/scoped_nsobject.h" #include "base/strings/stringprintf.h" #include "base/strings/sys_string_conversions.h" #i...
Zhao-PengFei35/chromium_src_4
ui/gfx/ios/NSString+CrStringDrawing_unittest.mm
Objective-C++
unknown
6,961
// 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_IOS_UIKIT_UTIL_H_ #define UI_GFX_IOS_UIKIT_UTIL_H_ #import <UIKit/UIKit.h> // UI Util containing functions that require UIKit. namespace ui { // Returns the ...
Zhao-PengFei35/chromium_src_4
ui/gfx/ios/uikit_util.h
Objective-C
unknown
709
// 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/ios/uikit_util.h" #import <UIKit/UIKit.h> #include <cmath> namespace ui { CGFloat AlignValueToUpperPixel(CGFloat value) { CGFloat scale = [[UIScreen main...
Zhao-PengFei35/chromium_src_4
ui/gfx/ios/uikit_util.mm
Objective-C++
unknown
561
// 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/ios/uikit_util.h" #import <Foundation/Foundation.h> #include <stddef.h> #include "testing/platform_test.h" namespace { typedef PlatformTest UIKitUtilTest; ...
Zhao-PengFei35/chromium_src_4
ui/gfx/ios/uikit_util_unittest.mm
Objective-C++
unknown
2,125
// 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_IPC_BUFFER_TYPES_GFX_IPC_EXPORT_H_ #define UI_GFX_IPC_BUFFER_TYPES_GFX_IPC_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(GFX_IPC_BUFFER...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/buffer_types/gfx_ipc_export.h
C
unknown
860
// 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/ipc/buffer_types/gfx_param_traits.h" #include <stddef.h> #include <stdint.h> #include <string> #include "base/numerics/safe_conversions.h" #include "base/st...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/buffer_types/gfx_param_traits.cc
C++
unknown
1,756
// 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_IPC_BUFFER_TYPES_GFX_PARAM_TRAITS_H_ #define UI_GFX_IPC_BUFFER_TYPES_GFX_PARAM_TRAITS_H_ #include <string> #include "ipc/ipc_message_utils.h" #include "ipc/par...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/buffer_types/gfx_param_traits.h
C++
unknown
926
// 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. // Singly or multiply-included shared traits file depending upon circumstances. // This allows the use of IPC serialization macros in more than one IPC message // file. #ifndef...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/buffer_types/gfx_param_traits_macros.h
C
unknown
941
// 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_IPC_COLOR_GFX_IPC_COLOR_EXPORT_H_ #define UI_GFX_IPC_COLOR_GFX_IPC_COLOR_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(GFX_IPC_COLOR_IM...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/color/gfx_ipc_color_export.h
C
unknown
801
// 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/ipc/color/gfx_param_traits.h" #include "ipc/ipc_message_utils.h" #include "ipc/param_traits_macros.h" #include "ui/gfx/color_space.h" #include "ui/gfx/display...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/color/gfx_param_traits.cc
C++
unknown
3,221
// 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_IPC_COLOR_GFX_PARAM_TRAITS_H_ #define UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_H_ #include "ipc/ipc_message_utils.h" #include "ipc/param_traits_macros.h" #include "ipc...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/color/gfx_param_traits.h
C++
unknown
1,350
// 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_IPC_COLOR_GFX_PARAM_TRAITS_MACROS_H_ #define UI_GFX_IPC_COLOR_GFX_PARAM_TRAITS_MACROS_H_ #include "ipc/ipc_message_utils.h" #include "ipc/param_traits_macros.h"...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/color/gfx_param_traits_macros.h
C
unknown
1,512
// 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_IPC_GEOMETRY_GFX_IPC_GEOMETRY_EXPORT_H_ #define UI_GFX_IPC_GEOMETRY_GFX_IPC_GEOMETRY_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(GFX_...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/geometry/gfx_ipc_geometry_export.h
C
unknown
843
// 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/ipc/geometry/gfx_param_traits.h" #include <stddef.h> #include <stdint.h> #include <string> #include "base/strings/stringprintf.h" #include "ui/gfx/geometry/...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/geometry/gfx_param_traits.cc
C++
unknown
7,029
// 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_IPC_GEOMETRY_GFX_PARAM_TRAITS_H_ #define UI_GFX_IPC_GEOMETRY_GFX_PARAM_TRAITS_H_ #include <string> #include "ipc/ipc_message_utils.h" #include "ipc/param_trait...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/geometry/gfx_param_traits.h
C++
unknown
3,762
// 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_IPC_GFX_IPC_EXPORT_H_ #define UI_GFX_IPC_GFX_IPC_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(GFX_IPC_IMPLEMENTATION) #define GFX_IPC_...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/gfx_ipc_export.h
C
unknown
717
// 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/ipc/gfx_param_traits.h" #include <stddef.h> #include <stdint.h> #include <string> #include "base/format_macros.h" #include "base/strings/stringprintf.h" #in...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/gfx_param_traits.cc
C++
unknown
5,474
// 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_IPC_GFX_PARAM_TRAITS_H_ #define UI_GFX_IPC_GFX_PARAM_TRAITS_H_ #include <string> #include "build/build_config.h" #include "ipc/ipc_message_utils.h" #include "i...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/gfx_param_traits.h
C++
unknown
2,446
// 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. // Singly or multiply-included shared traits file depending upon circumstances. // This allows the use of IPC serialization macros in more than one IPC message // file. #ifndef...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/gfx_param_traits_macros.h
C
unknown
1,574
// 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_IPC_SKIA_GFX_SKIA_IPC_EXPORT_H_ #define UI_GFX_IPC_SKIA_GFX_SKIA_IPC_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(GFX_SKIA_IPC_IMPLEME...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/skia/gfx_skia_ipc_export.h
C
unknown
787
// 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/ipc/skia/gfx_skia_param_traits.h" #include <string> #include "base/pickle.h" #include "ipc/ipc_message_utils.h" #include "third_party/skia/include/core/SkBit...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/skia/gfx_skia_param_traits.cc
C++
unknown
3,696
// 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_IPC_SKIA_GFX_SKIA_PARAM_TRAITS_H_ #define UI_GFX_IPC_SKIA_GFX_SKIA_PARAM_TRAITS_H_ #include <string> #include "ipc/ipc_message_utils.h" #include "ipc/ipc_param...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/skia/gfx_skia_param_traits.h
C++
unknown
1,687
// 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_IPC_SKIA_GFX_SKIA_PARAM_TRAITS_MACROS_H_ #define UI_GFX_IPC_SKIA_GFX_SKIA_PARAM_TRAITS_MACROS_H_ #include <stdint.h> #include "ipc/ipc_message_macros.h" #inclu...
Zhao-PengFei35/chromium_src_4
ui/gfx/ipc/skia/gfx_skia_param_traits_macros.h
C
unknown
682
// 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/linux/client_native_pixmap_dmabuf.h" #include <fcntl.h> #include <linux/version.h> #include <stddef.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/client_native_pixmap_dmabuf.cc
C++
unknown
9,858
// 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_LINUX_CLIENT_NATIVE_PIXMAP_DMABUF_H_ #define UI_GFX_LINUX_CLIENT_NATIVE_PIXMAP_DMABUF_H_ #include <stdint.h> #include <array> #include <memory> #include "base...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/client_native_pixmap_dmabuf.h
C++
unknown
2,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. #include "ui/gfx/linux/client_native_pixmap_factory_dmabuf.h" #include <utility> #include "base/logging.h" #include "base/memory/ptr_util.h" #include "base/trace_event/trace_...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/client_native_pixmap_factory_dmabuf.cc
C++
unknown
4,905
// 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_CLIENT_NATIVE_PIXMAP_FACTORY_DMABUF_H_ #define UI_GFX_LINUX_CLIENT_NATIVE_PIXMAP_FACTORY_DMABUF_H_ #include "ui/gfx/client_native_pixmap_factory.h" #inclu...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/client_native_pixmap_factory_dmabuf.h
C++
unknown
527
// 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/drm_util_linux.h" #include <drm_fourcc.h> #include "base/notreached.h" namespace ui { int GetFourCCFormatFromBufferFormat(gfx::BufferFormat format) {...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/drm_util_linux.cc
C++
unknown
3,110
// 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_DRM_UTIL_LINUX_H_ #define UI_GFX_LINUX_DRM_UTIL_LINUX_H_ #include <cstdint> #include "ui/gfx/buffer_types.h" namespace ui { int GetFourCCFormatFromBuff...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/drm_util_linux.h
C++
unknown
582
// 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/fontconfig_util.h" #include <fontconfig/fontconfig.h> #include "base/memory/raw_ptr.h" #include "base/no_destructor.h" #include "build/chromeos_buildfl...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/fontconfig_util.cc
C++
unknown
8,608
// 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_FONTCONFIG_UTIL_H_ #define UI_GFX_LINUX_FONTCONFIG_UTIL_H_ #include <fontconfig/fontconfig.h> #include "base/files/file_path.h" #include "ui/gfx/font_ren...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/fontconfig_util.h
C++
unknown
1,644
// 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/fontconfig_util.h" #include <fontconfig/fontconfig.h> #include "testing/gtest/include/gtest/gtest.h" namespace gfx { TEST(FontConfigUtilTest, FcPatte...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/fontconfig_util_unittest.cc
C++
unknown
5,179
// 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_BUFFER_H_ #define UI_GFX_LINUX_GBM_BUFFER_H_ #include <inttypes.h> #include "third_party/skia/include/core/SkRefCnt.h" #include "ui/gfx/buffer_types....
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/gbm_buffer.h
C++
unknown
1,492
// 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_GBM_DEFINES_H_ #define UI_GFX_LINUX_GBM_DEFINES_H_ #include <gbm.h> // Minigbm has some defines that are used by ozone/gbm. However, when we build // Ozo...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/gbm_defines.h
C
unknown
903
// 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_DEVICE_H_ #define UI_GFX_LINUX_GBM_DEVICE_H_ #include <gbm.h> #include <memory> #include "base/files/file.h" #include "ui/gfx/geometry/size.h" #inclu...
Zhao-PengFei35/chromium_src_4
ui/gfx/linux/gbm_device.h
C++
unknown
1,125