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 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_GEOMETRY_MOJOM_GEOMETRY_MOJOM_TRAITS_H_
#define UI_GFX_GEOMETRY_MOJOM_GEOMETRY_MOJOM_TRAITS_H_
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/ins... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/mojom/geometry_mojom_traits.h | C++ | unknown | 7,413 |
// 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/test/task_environment.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gt... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/mojom/geometry_mojom_traits_unittest.cc | C++ | unknown | 8,663 |
// 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_GEOMETRY_OUTSETS_H_
#define UI_GFX_GEOMETRY_OUTSETS_H_
#include "base/numerics/clamped_math.h"
#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geo... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/outsets.h | C++ | unknown | 1,380 |
// 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_GEOMETRY_OUTSETS_F_H_
#define UI_GFX_GEOMETRY_OUTSETS_F_H_
#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geometry/insets_f.h"
#include "ui/gfx/g... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/outsets_f.h | C++ | unknown | 1,315 |
// 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/geometry/point.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "ui/gfx/geometry/point_conversions.h"
#include "ui/gfx/geome... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point.cc | C++ | unknown | 2,618 |
// 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_GEOMETRY_POINT_H_
#define UI_GFX_GEOMETRY_POINT_H_
#include <iosfwd>
#include <string>
#include <tuple>
#include "base/numerics/clamped_math.h"
#include "build... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point.h | C++ | unknown | 4,664 |
// 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/geometry/point3_f.h"
#include "base/strings/stringprintf.h"
namespace gfx {
std::string Point3F::ToString() const {
return base::StringPrintf("%g,%g,%g", ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point3_f.cc | C++ | unknown | 1,133 |
// 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_GEOMETRY_POINT3_F_H_
#define UI_GFX_GEOMETRY_POINT3_F_H_
#include <iosfwd>
#include <string>
#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geom... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point3_f.h | C++ | unknown | 3,814 |
// 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/geometry/point3_f.h"
#include <stddef.h>
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
TEST(Point3FTest, VectorArithmetic) {
gfx::Point3... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point3_f_unittest.cc | C++ | unknown | 2,636 |
// 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/geometry/point_conversions.h"
#include "base/numerics/safe_conversions.h"
namespace gfx {
Point ToFlooredPoint(const PointF& point) {
return Point(base::C... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point_conversions.cc | C++ | unknown | 635 |
// 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_GEOMETRY_POINT_CONVERSIONS_H_
#define UI_GFX_GEOMETRY_POINT_CONVERSIONS_H_
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point_f.h"
namespace gf... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point_conversions.h | C++ | unknown | 782 |
// 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/geometry/point_f.h"
#include <cmath>
#include "base/check.h"
#include "base/strings/stringprintf.h"
#include "base/trace_event/typed_macros.h"
#include "buil... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point_f.cc | C++ | unknown | 1,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.
#ifndef UI_GFX_GEOMETRY_POINT_F_H_
#define UI_GFX_GEOMETRY_POINT_F_H_
#include <iosfwd>
#include <string>
#include <tuple>
#include "build/build_config.h"
#include "ui/gfx/ge... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point_f.h | C++ | unknown | 4,463 |
// 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/geometry/point_f.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/point_conversions.h"
namespac... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point_f_unittest.cc | C++ | unknown | 4,087 |
// 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/geometry/point.h"
#include <stddef.h>
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
TEST(PointTest, IsOrigin) {
EXPECT_FALSE(Point(1, 0).... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/point_unittest.cc | C++ | unknown | 3,570 |
// 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/geometry/quad_f.h"
#include <limits>
#include "base/strings/stringprintf.h"
#include "ui/gfx/geometry/triangle_f.h"
namespace gfx {
namespace {
PointF Rig... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/quad_f.cc | C++ | unknown | 7,243 |
// 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_GEOMETRY_QUAD_F_H_
#define UI_GFX_GEOMETRY_QUAD_F_H_
#include <stddef.h>
#include <algorithm>
#include <cmath>
#include <iosfwd>
#include <string>
#include "b... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/quad_f.h | C++ | unknown | 5,602 |
// 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 <stddef.h>
#include "base/cxx17_backports.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/quad_f.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/quad_f_unittest.cc | C++ | unknown | 29,043 |
// 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/geometry/quaternion.h"
#include <algorithm>
#include <cmath>
#include "base/numerics/math_constants.h"
#include "base/strings/stringprintf.h"
#include "ui/gf... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/quaternion.cc | C++ | unknown | 3,932 |
// 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_GEOMETRY_QUATERNION_H_
#define UI_GFX_GEOMETRY_QUATERNION_H_
#include <iosfwd>
#include <string>
#include "ui/gfx/geometry/geometry_export.h"
namespace gfx {
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/quaternion.h | C++ | unknown | 3,809 |
// 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/geometry/quaternion.h"
#include <cmath>
#include "base/numerics/math_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/ve... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/quaternion_unittest.cc | C++ | unknown | 7,804 |
// 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/geometry/rect.h"
#include <algorithm>
#include "base/check.h"
#include "base/numerics/clamped_math.h"
#include "base/strings/stringprintf.h"
#include "build/... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rect.cc | C++ | unknown | 11,012 |
// 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.
// Defines a simple integer rectangle class. The containment semantics
// are array-like; that is, the coordinate (x, y) is considered to be
// contained by the rectangle, but... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rect.h | C++ | unknown | 14,228 |
// 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/geometry/rect_conversions.h"
#include <algorithm>
#include <cmath>
#include "base/check.h"
#include "base/numerics/safe_conversions.h"
namespace gfx {
name... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rect_conversions.cc | C++ | unknown | 3,935 |
// 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_GEOMETRY_RECT_CONVERSIONS_H_
#define UI_GFX_GEOMETRY_RECT_CONVERSIONS_H_
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
namespace gfx {
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rect_conversions.h | C++ | unknown | 2,852 |
// 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/geometry/rect_conversions.h"
#include <limits>
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
constexpr int kMaxInt = std::numeric_limits<i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rect_conversions_unittest.cc | C++ | unknown | 7,006 |
// 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/geometry/rect_f.h"
#include <algorithm>
#include <limits>
#include "base/check.h"
#include "base/check_op.h"
#include "base/numerics/safe_conversions.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rect_f.cc | C++ | unknown | 11,047 |
// 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_GEOMETRY_RECT_F_H_
#define UI_GFX_GEOMETRY_RECT_F_H_
#include <iosfwd>
#include <string>
#include "build/build_config.h"
#include "ui/gfx/geometry/insets_f.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rect_f.h | C++ | unknown | 11,925 |
// 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/geometry/rect_f.h"
#include <cmath>
#include "ui/gfx/geometry/insets_f.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/test/geometry_util.h"... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rect_f_unittest.cc | C++ | unknown | 20,546 |
// 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/geometry/rect.h"
#include <stddef.h>
#include <limits>
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geome... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rect_unittest.cc | C++ | unknown | 31,565 |
// 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/geometry/resize_utils.h"
#include <algorithm>
#include <ostream>
#include "base/check_op.h"
#include "base/numerics/safe_conversions.h"
#include "ui/gfx/geom... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/resize_utils.cc | C++ | unknown | 5,856 |
// 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_GEOMETRY_RESIZE_UTILS_H_
#define UI_GFX_GEOMETRY_RESIZE_UTILS_H_
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/gfx/geometry/geometry_expo... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/resize_utils.h | C++ | unknown | 2,129 |
// 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/geometry/resize_utils.h"
#include <string>
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "testing/gtest/inclu... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/resize_utils_unittest.cc | C++ | unknown | 8,625 |
// 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/geometry/rounded_corners_f.h"
#include "base/strings/stringprintf.h"
namespace gfx {
std::string RoundedCornersF::ToString() const {
// Print members in t... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rounded_corners_f.cc | C++ | unknown | 514 |
// 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_GEOMETRY_ROUNDED_CORNERS_F_H_
#define UI_GFX_GEOMETRY_ROUNDED_CORNERS_F_H_
#include <iosfwd>
#include <limits>
#include <string>
#include "ui/gfx/geometry/geom... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rounded_corners_f.h | C++ | unknown | 3,283 |
// 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/geometry/rounded_corners_f.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
TEST(RoundedCornersFTest, DefaultConstructor) {
const RoundedC... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rounded_corners_f_unittest.cc | C++ | unknown | 4,710 |
// 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/geometry/rrect_f.h"
#include <iomanip>
#include <iostream>
#include <sstream>
#include "base/values.h"
#include "third_party/skia/include/core/SkMatrix.h"
n... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rrect_f.cc | C++ | unknown | 6,302 |
// 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_GEOMETRY_RRECT_F_H_
#define UI_GFX_GEOMETRY_RRECT_F_H_
#include <memory>
#include <string>
#include "third_party/skia/include/core/SkRRect.h"
#include "ui/gfx/... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rrect_f.h | C++ | unknown | 7,500 |
// 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/geometry/rrect_f_builder.h"
namespace gfx {
RRectFBuilder::RRectFBuilder() = default;
RRectFBuilder::RRectFBuilder(RRectFBuilder&& other) = default;
RRectF ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rrect_f_builder.cc | C++ | unknown | 566 |
// 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_GEOMETRY_RRECT_F_BUILDER_H_
#define UI_GFX_GEOMETRY_RRECT_F_BUILDER_H_
#include "ui/gfx/geometry/rrect_f.h"
namespace gfx {
// RRectFBuilder is implemented to... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rrect_f_builder.h | C++ | unknown | 3,763 |
// 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/geometry/rrect_f.h"
#include "base/cxx17_backports.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rrect_f_builder.h"
namespace g... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/rrect_f_unittest.cc | C++ | unknown | 14,098 |
// 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/geometry/size.h"
#include "base/numerics/clamped_math.h"
#include "base/numerics/safe_math.h"
#include "base/strings/stringprintf.h"
#include "build/build_con... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/size.cc | C++ | unknown | 2,936 |
// 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_GEOMETRY_SIZE_H_
#define UI_GFX_GEOMETRY_SIZE_H_
#include <algorithm>
#include <iosfwd>
#include <string>
#include "base/numerics/safe_math.h"
#include "build/... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/size.h | C++ | unknown | 3,599 |
// 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/geometry/size_conversions.h"
#include "base/numerics/safe_conversions.h"
namespace gfx {
Size ToFlooredSize(const SizeF& size) {
return Size(base::ClampFl... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/size_conversions.cc | C++ | unknown | 640 |
// 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_GEOMETRY_SIZE_CONVERSIONS_H_
#define UI_GFX_GEOMETRY_SIZE_CONVERSIONS_H_
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/size_f.h"
namespace gfx {
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/size_conversions.h | C++ | unknown | 759 |
// 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/geometry/size_f.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_IOS)
#include <CoreGraphics/CoreGraphics.h>
#elif ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/size_f.cc | C++ | unknown | 1,306 |
// 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_GEOMETRY_SIZE_F_H_
#define UI_GFX_GEOMETRY_SIZE_F_H_
#include <iosfwd>
#include <string>
#include "base/gtest_prod_util.h"
#include "build/build_config.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/size_f.h | C++ | unknown | 4,257 |
// 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/geometry/size_f.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/size_conversions.h"
#include "ui... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/size_f_unittest.cc | C++ | unknown | 6,756 |
// 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/geometry/size.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
TEST(SizeTest, SetToMinMax) {
Size a;
a = Size(3, 5);
EXPECT_EQ(Size(... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/size_unittest.cc | C++ | unknown | 2,824 |
// 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/geometry/skia_conversions.h"
#include <stddef.h>
#include <stdint.h>
#include "base/numerics/safe_conversions.h"
#include "base/numerics/safe_math.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/skia_conversions.cc | C++ | unknown | 4,885 |
// 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_GEOMETRY_SKIA_CONVERSIONS_H_
#define UI_GFX_GEOMETRY_SKIA_CONVERSIONS_H_
#include "third_party/skia/include/core/SkM44.h"
#include "third_party/skia/include/cor... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/skia_conversions.h | C++ | unknown | 2,306 |
// 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/geometry/skia_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/transform.h"
namespac... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/skia_conversions_unittest.cc | C++ | unknown | 3,145 |
// 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/geometry/test/fuzzer_util.h"
#include <fuzzer/FuzzedDataProvider.h>
#include <vector>
#include "base/check_op.h"
#include "ui/gfx/geometry/transform.h"
name... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/test/fuzzer_util.cc | C++ | unknown | 730 |
// 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_GEOMETRY_TEST_FUZZER_UTIL_H_
#define UI_GFX_GEOMETRY_TEST_FUZZER_UTIL_H_
#include "ui/gfx/geometry/transform.h"
class FuzzedDataProvider;
namespace gfx {
cla... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/test/fuzzer_util.h | C++ | unknown | 453 |
// 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/geometry/test/geometry_util.h"
#include <sstream>
#include <string>
#include "base/strings/stringprintf.h"
#include "ui/gfx/geometry/axis_transform2d.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/test/geometry_util.cc | C++ | unknown | 20,322 |
// 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_GEOMETRY_TEST_GEOMETRY_UTIL_H_
#define UI_GFX_GEOMETRY_TEST_GEOMETRY_UTIL_H_
#include <iosfwd>
#include "testing/gtest/include/gtest/gtest.h"
struct SkRect;
s... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/test/geometry_util.h | C++ | unknown | 11,045 |
// 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/geometry/transform.h"
#include <ostream>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/stringprintf.h"
#include "ui/gfx/geom... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform.cc | C++ | unknown | 34,051 |
// 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_GEOMETRY_TRANSFORM_H_
#define UI_GFX_GEOMETRY_TRANSFORM_H_
#include <iosfwd>
#include <memory>
#include <string>
#include "third_party/abseil-cpp/absl/types/op... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform.h | C++ | unknown | 26,754 |
// 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/geometry/transform_operation.h"
#include <algorithm>
#include <limits>
#include <utility>
#include "base/check_op.h"
#include "base/notreached.h"
#include "b... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform_operation.cc | C++ | unknown | 19,789 |
// 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_GEOMETRY_TRANSFORM_OPERATION_H_
#define UI_GFX_GEOMETRY_TRANSFORM_OPERATION_H_
// TODO(crbug.com/1359528): Remove dependency to Skia.
#include "third_party/skia... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform_operation.h | C++ | unknown | 2,254 |
// 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/geometry/transform_operations.h"
#include <stddef.h>
#include <algorithm>
#include <utility>
#include "ui/gfx/geometry/angle_conversions.h"
#include "ui/gfx... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform_operations.cc | C++ | unknown | 13,200 |
// 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_GEOMETRY_TRANSFORM_OPERATIONS_H_
#define UI_GFX_GEOMETRY_TRANSFORM_OPERATIONS_H_
#include <memory>
#include <unordered_map>
#include <vector>
#include "base/ch... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform_operations.h | C++ | unknown | 5,806 |
// 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/geometry/transform_operations.h"
#include <stddef.h>
#include <limits>
#include <utility>
#include <vector>
#include "base/cxx17_backports.h"
#include "test... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform_operations_unittest.cc | C++ | unknown | 60,399 |
// 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/geometry/transform.h"
#include <stddef.h>
#include <limits>
#include <ostream>
#include "base/cxx17_backports.h"
#include "build/build_config.h"
#include "t... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform_unittest.cc | C++ | unknown | 133,845 |
// 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/geometry/transform_util.h"
#include <algorithm>
#include <cmath>
#include <ostream>
#include <string>
#include "base/check.h"
#include "ui/gfx/geometry/point... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform_util.cc | C++ | unknown | 6,274 |
// 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_GEOMETRY_TRANSFORM_UTIL_H_
#define UI_GFX_GEOMETRY_TRANSFORM_UTIL_H_
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/gfx/geometry/axis_tran... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform_util.h | C++ | unknown | 3,658 |
// 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/geometry/transform_util.h"
#include <stddef.h>
#include <limits>
#include "base/cxx17_backports.h"
#include "base/numerics/math_constants.h"
#include "testin... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/transform_util_unittest.cc | C++ | unknown | 9,707 |
// 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/geometry/triangle_f.h"
#include "ui/gfx/geometry/vector2d_f.h"
namespace gfx {
bool PointIsInTriangle(const PointF& point,
const Poin... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/triangle_f.cc | C++ | unknown | 1,365 |
// 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_GEOMETRY_TRIANGLE_F_H_
#define UI_GFX_GEOMETRY_TRIANGLE_F_H_
#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geometry/point_f.h"
namespace gfx {
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/triangle_f.h | C++ | unknown | 597 |
// 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 <stddef.h>
#include "base/cxx17_backports.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/point_f.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/triangle_unittest.cc | C++ | unknown | 1,034 |
// 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/geometry/vector2d.h"
#include <cmath>
#include "base/numerics/clamped_math.h"
#include "base/strings/stringprintf.h"
namespace gfx {
bool Vector2d::IsZero(... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector2d.cc | C++ | unknown | 1,074 |
// 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.
// Defines a simple integer vector class. This class is used to indicate a
// distance in two dimensions between two points. Subtracting two points should
// produce a vector,... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector2d.h | C++ | unknown | 3,034 |
// 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/geometry/vector2d_conversions.h"
#include "base/numerics/safe_conversions.h"
namespace gfx {
Vector2d ToFlooredVector2d(const Vector2dF& vector2d) {
retur... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector2d_conversions.cc | C++ | unknown | 737 |
// 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_GEOMETRY_VECTOR2D_CONVERSIONS_H_
#define UI_GFX_GEOMETRY_VECTOR2D_CONVERSIONS_H_
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/geometry/vector2d_f.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector2d_conversions.h | C++ | unknown | 851 |
// 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/geometry/vector2d_f.h"
#include <cmath>
#include "base/strings/stringprintf.h"
#include "base/trace_event/typed_macros.h"
#include "build/build_config.h"
na... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector2d_f.cc | C++ | unknown | 2,054 |
// 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.
// Defines a simple float vector class. This class is used to indicate a
// distance in two dimensions between two points. Subtracting two points should
// produce a vector, a... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector2d_f.h | C++ | unknown | 4,579 |
// 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/geometry/vector2d_f.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/test/geometry_util.h"
#include "ui/gfx/geometry/vector2d.h"
n... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector2d_f_unittest.cc | C++ | unknown | 5,451 |
// 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/geometry/vector2d.h"
#include <stddef.h>
#include <cmath>
#include <limits>
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
TEST(Vector2dTes... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector2d_unittest.cc | C++ | unknown | 3,576 |
// 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/geometry/vector3d_f.h"
#include <cmath>
#include "base/strings/stringprintf.h"
#include "ui/gfx/geometry/angle_conversions.h"
namespace {
const double kEpsi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector3d_f.cc | C++ | unknown | 3,305 |
// 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.
// Defines a simple float vector class. This class is used to indicate a
// distance in two dimensions between two points. Subtracting two points should
// produce a vector, a... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector3d_f.h | C++ | unknown | 5,472 |
// 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/geometry/vector3d_f.h"
#include <stddef.h>
#include <cmath>
#include <limits>
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/vector3d_f_unittest.cc | C++ | unknown | 12,848 |
// 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_GEOMETRY_SKIA_EXPORT_H_
#define UI_GFX_GEOMETRY_SKIA_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(GEOMETRY_SKIA_IMPLEMENTATION)
#defin... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry_skia_export.h | C | unknown | 771 |
// 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_GFX_EXPORT_H_
#define UI_GFX_GFX_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(GFX_IMPLEMENTATION)
#define GFX_EXPORT __declspec(dllexp... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gfx_export.h | C | unknown | 661 |
// 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_GFX_SKIA_EXPORT_H_
#define UI_GFX_GFX_SKIA_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(GFX_SKIA_IMPLEMENTATION)
#define GFX_SKIA_EXPO... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gfx_skia_export.h | C | unknown | 721 |
// 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/gpu_extra_info.h"
namespace gfx {
ANGLEFeature::ANGLEFeature() = default;
ANGLEFeature::ANGLEFeature(const ANGLEFeature& other) = default;
ANGLEFeature::ANGL... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gpu_extra_info.cc | C++ | unknown | 901 |
// 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_GPU_EXTRA_INFO_H_
#define UI_GFX_GPU_EXTRA_INFO_H_
#include <string>
#include <vector>
#include "build/build_config.h"
#include "ui/gfx/buffer_types.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gpu_extra_info.h | C++ | unknown | 1,856 |
// 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/gpu_fence.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_LINUX) || BU... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gpu_fence.cc | C++ | unknown | 2,862 |
// 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_GPU_FENCE_H_
#define UI_GFX_GPU_FENCE_H_
#include "build/build_config.h"
#include "ui/gfx/gfx_export.h"
#include "ui/gfx/gpu_fence_handle.h"
extern "C" typedef... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gpu_fence.h | C++ | unknown | 1,627 |
// 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/gpu_fence_handle.h"
#include "base/debug/alias.h"
#include "base/notreached.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_POSIX)
#include <unistd.h>
#... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gpu_fence_handle.cc | C++ | unknown | 2,114 |
// 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_GPU_FENCE_HANDLE_H_
#define UI_GFX_GPU_FENCE_HANDLE_H_
#include "build/build_config.h"
#include "ui/gfx/gfx_export.h"
#if BUILDFLAG(IS_POSIX)
#include "base/fi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gpu_fence_handle.h | C++ | unknown | 1,319 |
// 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/gpu_memory_buffer.h"
#include "base/logging.h"
#include "build/build_config.h"
#include "ui/gfx/generic_shared_memory_id.h"
#if BUILDFLAG(IS_WIN)
#include <w... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gpu_memory_buffer.cc | C++ | unknown | 2,221 |
// 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_GPU_MEMORY_BUFFER_H_
#define UI_GFX_GPU_MEMORY_BUFFER_H_
#include <stddef.h>
#include <stdint.h>
#include "base/memory/unsafe_shared_memory_region.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gpu_memory_buffer.h | C++ | unknown | 5,399 |
// 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 <cstring>
#include "ui/gfx/half_float.h"
namespace gfx {
void FloatToHalfFloat(const float* input, HalfFloat* output, size_t num) {
for (size_t i = 0; i < num; i+... | Zhao-PengFei35/chromium_src_4 | ui/gfx/half_float.cc | C++ | unknown | 533 |
// 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_HALF_FLOAT_H_
#define UI_GFX_HALF_FLOAT_H_
#include <stdint.h>
#include <stdlib.h>
#include "ui/gfx/gfx_export.h"
namespace gfx {
typedef uint16_t HalfFloat;... | Zhao-PengFei35/chromium_src_4 | ui/gfx/half_float.h | C++ | unknown | 575 |
// 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/half_float.h"
#include <math.h>
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
class HalfFloatTest : public testing::Test {
public:
unio... | Zhao-PengFei35/chromium_src_4 | ui/gfx/half_float_unittest.cc | C++ | unknown | 2,210 |
// 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/harfbuzz_font_skia.h"
#include <stddef.h>
#include <stdint.h>
#include <limits>
#include <map>
#include "base/check_op.h"
#include "base/containers/lru_cach... | Zhao-PengFei35/chromium_src_4 | ui/gfx/harfbuzz_font_skia.cc | C++ | unknown | 10,789 |
// 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_HARFBUZZ_FONT_SKIA_H_
#define UI_GFX_HARFBUZZ_FONT_SKIA_H_
#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/core/SkScalar.... | Zhao-PengFei35/chromium_src_4 | ui/gfx/harfbuzz_font_skia.h | C++ | unknown | 716 |
// 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/hdr_metadata.h"
#include "skia/ext/skcolorspace_primaries.h"
#include <iomanip>
#include <sstream>
namespace gfx {
ColorVolumeMetadata::ColorVolumeMetadata... | Zhao-PengFei35/chromium_src_4 | ui/gfx/hdr_metadata.cc | C++ | unknown | 3,255 |
// 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_HDR_METADATA_H_
#define UI_GFX_HDR_METADATA_H_
#include <stdint.h>
#include <string>
#include "skia/ext/skcolorspace_primaries.h"
#include "third_party/abseil-... | Zhao-PengFei35/chromium_src_4 | ui/gfx/hdr_metadata.h | C++ | unknown | 4,899 |
// 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_HDR_METADATA_MAC_H_
#define UI_GFX_HDR_METADATA_MAC_H_
#include "base/mac/scoped_cftyperef.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/gfx/hdr_metadata_mac.h | C++ | unknown | 1,183 |