Home
last modified time | relevance | path

Searched refs:gfx (Results 1 – 25 of 4687) sorted by relevance

12345678910>>...188

/external/chromium_org/cc/base/
Dtiling_data_unittest.cc16 int NumTiles(const gfx::Size& max_texture_size, in NumTiles()
17 const gfx::Size& tiling_size, in NumTiles()
30 int XIndex(const gfx::Size& max_texture_size, in XIndex()
31 const gfx::Size& tiling_size, in XIndex()
38 int YIndex(const gfx::Size& max_texture_size, in YIndex()
39 const gfx::Size& tiling_size, in YIndex()
46 int MinBorderXIndex(const gfx::Size& max_texture_size, in MinBorderXIndex()
47 const gfx::Size& tiling_size, in MinBorderXIndex()
54 int MinBorderYIndex(const gfx::Size& max_texture_size, in MinBorderYIndex()
55 const gfx::Size& tiling_size, in MinBorderYIndex()
[all …]
Dregion_unittest.cc13 EXPECT_TRUE(r.Contains(gfx::Point(x, y))); \
14 EXPECT_TRUE(r.Contains(gfx::Point(x + w - 1, y))); \
15 EXPECT_TRUE(r.Contains(gfx::Point(x, y + h - 1))); \
16 EXPECT_TRUE(r.Contains(gfx::Point(x + w - 1, y + h - 1))); \
17 EXPECT_TRUE(r.Contains(gfx::Point(x, y + h / 2))); \
18 EXPECT_TRUE(r.Contains(gfx::Point(x + w - 1, y + h / 2))); \
19 EXPECT_TRUE(r.Contains(gfx::Point(x + w / 2, y))); \
20 EXPECT_TRUE(r.Contains(gfx::Point(x + w / 2, y + h - 1))); \
21 EXPECT_TRUE(r.Contains(gfx::Point(x + w / 2, y + h / 2))); \
24 EXPECT_FALSE(r.Contains(gfx::Point(x - 1, y))); \
[all …]
Dsimple_enclosed_region_unittest.cc17 bool ExpectRegionEq(const gfx::Rect& rect, const SimpleEnclosedRegion& region) { in ExpectRegionEq()
18 std::vector<gfx::Rect> actual_rects; in ExpectRegionEq()
19 std::vector<gfx::Rect> expected_rects; in ExpectRegionEq()
56 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(), r1)); in TEST()
58 SimpleEnclosedRegion r2(gfx::Rect(2, 3, 4, 5)); in TEST()
59 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(2, 3, 4, 5), r2)); in TEST()
62 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(2, 3, 4, 5), r3)); in TEST()
65 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(4, 5), r4)); in TEST()
67 SimpleEnclosedRegion r5(Region(gfx::Rect(2, 3, 4, 5))); in TEST()
68 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(2, 3, 4, 5), r5)); in TEST()
[all …]
Dmath_util.h28 namespace gfx {
49 gfx::PointF CartesianPoint2d() const { in CartesianPoint2d()
51 return gfx::PointF(x(), y()); in CartesianPoint2d()
57 return gfx::PointF(x() * inv_w, y() * inv_w); in CartesianPoint2d()
60 gfx::Point3F CartesianPoint3d() const { in CartesianPoint3d()
62 return gfx::Point3F(x(), y(), z()); in CartesianPoint3d()
68 return gfx::Point3F(x() * inv_w, y() * inv_w, z() * inv_w); in CartesianPoint3d()
109 static gfx::Rect MapEnclosingClippedRect(const gfx::Transform& transform,
110 const gfx::Rect& rect);
111 static gfx::RectF MapClippedRect(const gfx::Transform& transform,
[all …]
Dmath_util_unittest.cc23 gfx::Transform transform; in TEST()
27 gfx::RectF rect = gfx::RectF(0, 0, 1, 1); in TEST()
28 gfx::RectF projected_rect = MathUtil::ProjectClippedRect(transform, rect); in TEST()
45 gfx::RectF result = MathUtil::ComputeEnclosingClippedRect(h1, h2, h3, h4); in TEST()
50 gfx::RectF(gfx::PointF(-100, -100), gfx::SizeF(90, 90)), result, 0.15f); in TEST()
54 gfx::PointF vertices[3]; in TEST()
57 vertices[0] = gfx::PointF(-10, -100); in TEST()
58 vertices[1] = gfx::PointF(-100, -10); in TEST()
59 vertices[2] = gfx::PointF(-30, -30); in TEST()
65 gfx::RectF result = in TEST()
[all …]
/external/chromium_org/chrome/browser/ui/window_sizer/
Dwindow_sizer_unittest.cc14 gfx::Rect window_bounds; in TEST()
15 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), in TEST()
16 gfx::Rect(), DEFAULT, NULL, gfx::Rect(), &window_bounds); in TEST()
17 EXPECT_EQ(gfx::Rect(kWindowTilePixels, kWindowTilePixels, in TEST()
24 gfx::Rect window_bounds; in TEST()
25 GetWindowBounds(p1024x768, taskbar_bottom_work_area, gfx::Rect(), in TEST()
26 gfx::Rect(), gfx::Rect(), DEFAULT, NULL, gfx::Rect(), in TEST()
28 EXPECT_EQ(gfx::Rect(kWindowTilePixels, kWindowTilePixels, in TEST()
36 gfx::Rect window_bounds; in TEST()
37 GetWindowBounds(p1024x768, taskbar_right_work_area, gfx::Rect(), in TEST()
[all …]
Dwindow_sizer_common_unittest.cc22 class TestScreen : public gfx::Screen {
33 virtual gfx::Point GetCursorScreenPoint() OVERRIDE { in GetCursorScreenPoint()
35 return gfx::Point(); in GetCursorScreenPoint()
38 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE { in GetWindowUnderCursor()
43 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) in GetWindowAtScreenPoint()
53 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE { in GetAllDisplays()
57 virtual gfx::Display GetDisplayNearestWindow( in GetDisplayNearestWindow()
58 gfx::NativeView view) const OVERRIDE { in GetDisplayNearestWindow()
63 return gfx::Display(); in GetDisplayNearestWindow()
67 virtual gfx::Display GetDisplayNearestPoint( in GetDisplayNearestPoint()
[all …]
Dwindow_sizer_common_unittest.h16 static const gfx::Rect p1024x768(0, 0, 1024, 768);
17 static const gfx::Rect p1280x1024(0, 0, 1280, 1024);
18 static const gfx::Rect p1600x1200(0, 0, 1600, 1200);
19 static const gfx::Rect p1680x1050(0, 0, 1680, 1050);
20 static const gfx::Rect p1920x1200(0, 0, 1920, 1200);
24 static const gfx::Rect left_s1024x768(-1024, 0, 1024, 768);
28 static const gfx::Rect right_s1024x768(1024, 0, 1024, 768);
32 static const gfx::Rect top_s1024x768(0, -768, 1024, 768);
36 static const gfx::Rect bottom_s1024x768(0, 768, 1024, 768);
40 static const gfx::Rect bottom_s1600x1200(0, 1200, 1600, 1200);
[all …]
Dwindow_sizer_ash_unittest.cc55 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE { in GetNativeWindow()
58 virtual gfx::Rect GetBounds() const OVERRIDE { in GetBounds()
83 const gfx::Rect& bounds, in CreateTestBrowserWindow()
110 gfx::Rect window_bounds; in TEST_F()
111 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), in TEST_F()
112 gfx::Rect(), DEFAULT, NULL, gfx::Rect(), &window_bounds); in TEST_F()
113 EXPECT_EQ(gfx::Rect(ash::WindowPositioner::kDesktopBorderSize, in TEST_F()
121 gfx::Rect window_bounds; in TEST_F()
122 GetWindowBounds(p1024x768, taskbar_bottom_work_area, gfx::Rect(), in TEST_F()
123 gfx::Rect(), gfx::Rect(), DEFAULT, NULL, gfx::Rect(), in TEST_F()
[all …]
/external/chromium_org/cc/trees/
Docclusion_tracker_unittest.cc39 gfx::IntersectRects(opaque_contents_rect_, visible_content_rect())); in VisibleContentOpaqueRegion()
43 void SetOpaqueContentsRect(const gfx::Rect& opaque_contents_rect) { in SetOpaqueContentsRect()
52 gfx::Rect opaque_contents_rect_;
65 gfx::IntersectRects(opaque_contents_rect_, visible_content_rect())); in VisibleContentOpaqueRegion()
69 void SetOpaqueContentsRect(const gfx::Rect& opaque_contents_rect) { in SetOpaqueContentsRect()
76 gfx::Rect opaque_contents_rect_;
82 explicit TestOcclusionTrackerWithClip(const gfx::Rect& viewport_rect) in TestOcclusionTrackerWithClip()
86 const gfx::Rect& content_rect) const { in OccludedLayer()
94 gfx::Rect UnoccludedLayerContentRect(const LayerType* layer, in UnoccludedLayerContentRect()
95 const gfx::Rect& content_rect) const { in UnoccludedLayerContentRect()
[all …]
Dlayer_tree_host_unittest_occlusion.cc39 void set_expected_occlusion(const gfx::Rect& occlusion) { in set_expected_occlusion()
88 const gfx::Transform& transform, in SetLayerPropertiesForTesting()
89 const gfx::PointF& position, in SetLayerPropertiesForTesting()
90 const gfx::Size& bounds, in SetLayerPropertiesForTesting()
103 settings->minimum_occlusion_tracking_size = gfx::Size(); in InitializeSettings()
112 gfx::Transform identity_matrix_;
124 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true); in SetupTree()
127 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), false); in SetupTree()
130 gfx::PointF(-10.f, -10.f), gfx::Size(20, 500), true); in SetupTree()
135 child_->set_expected_occlusion(gfx::Rect(0, 0, 10, 190)); in SetupTree()
[all …]
Dlayer_tree_host_common_unittest.cc57 const gfx::Rect& clip, in PaintContents()
91 gfx::Transform identity_matrix; in TEST_F()
94 gfx::Point3F(), in TEST_F()
95 gfx::PointF(), in TEST_F()
96 gfx::Size(100, 100), in TEST_F()
101 gfx::Point3F(), in TEST_F()
102 gfx::PointF(), in TEST_F()
103 gfx::Size(), in TEST_F()
108 gfx::Point3F(), in TEST_F()
109 gfx::PointF(), in TEST_F()
[all …]
/external/chromium_org/cc/output/
Dbsp_tree_unittest.cc93 std::vector<gfx::Point3F> vertices_a; in TEST()
94 vertices_a.push_back(gfx::Point3F(0.0f, 10.0f, 0.0f)); in TEST()
95 vertices_a.push_back(gfx::Point3F(0.0f, 0.0f, 0.0f)); in TEST()
96 vertices_a.push_back(gfx::Point3F(10.0f, 0.0f, 0.0f)); in TEST()
97 vertices_a.push_back(gfx::Point3F(10.0f, 10.0f, 0.0f)); in TEST()
98 std::vector<gfx::Point3F> vertices_b; in TEST()
99 vertices_b.push_back(gfx::Point3F(0.0f, 10.0f, -5.0f)); in TEST()
100 vertices_b.push_back(gfx::Point3F(0.0f, 0.0f, -5.0f)); in TEST()
101 vertices_b.push_back(gfx::Point3F(10.0f, 0.0f, -5.0f)); in TEST()
102 vertices_b.push_back(gfx::Point3F(10.0f, 10.0f, -5.0f)); in TEST()
[all …]
/external/chromium_org/chrome/browser/chromeos/ui/
Daccessibility_focus_ring_controller_unittest.cc20 void RectsToRings(const std::vector<gfx::Rect>& rects, in RectsToRings()
39 gfx::Rect AddMargin(gfx::Rect r) { in AddMargin()
50 std::vector<gfx::Rect> rects; in TEST_F()
51 rects.push_back(gfx::Rect(10, 30, 70, 150)); in TEST_F()
61 std::vector<gfx::Rect> rects; in TEST_F()
62 rects.push_back(gfx::Rect(10, 10, 60, 30)); in TEST_F()
63 rects.push_back(gfx::Rect(10, 40, 60, 30)); in TEST_F()
67 ASSERT_EQ(AddMargin(gfx::Rect(10, 10, 60, 60)), rings[0].GetBounds()); in TEST_F()
73 std::vector<gfx::Rect> rects; in TEST_F()
74 rects.push_back(gfx::Rect(10, 10, 60, 30)); in TEST_F()
[all …]
/external/chromium_org/cc/quads/
Ddraw_polygon_unittest.cc28 const std::vector<gfx::Point3F>& points) { in ValidatePoints()
37 std::vector<gfx::Point3F> vertices_a; in TEST()
38 vertices_a.push_back(gfx::Point3F(0.0f, 10.0f, 0.0f)); in TEST()
39 vertices_a.push_back(gfx::Point3F(0.0f, 0.0f, 0.0f)); in TEST()
40 vertices_a.push_back(gfx::Point3F(10.0f, 0.0f, 0.0f)); in TEST()
41 vertices_a.push_back(gfx::Point3F(10.0f, 10.0f, 0.0f)); in TEST()
42 std::vector<gfx::Point3F> vertices_b; in TEST()
43 vertices_b.push_back(gfx::Point3F(5.0f, 10.0f, 5.0f)); in TEST()
44 vertices_b.push_back(gfx::Point3F(5.0f, 0.0f, 15.0f)); in TEST()
45 vertices_b.push_back(gfx::Point3F(5.0f, 0.0f, 15.0f)); in TEST()
[all …]
Drender_pass_unittest.cc29 gfx::Transform transform_to_root_target;
30 gfx::Rect output_rect;
31 gfx::Rect damage_rect;
68 gfx::Rect output_rect(45, 22, 120, 13); in TEST()
69 gfx::Transform transform_to_root = in TEST()
70 gfx::Transform(1.0, 0.5, 0.5, -0.5, -1.0, 0.0); in TEST()
71 gfx::Rect damage_rect(56, 123, 19, 43); in TEST()
84 shared_state->SetAll(gfx::Transform(), in TEST()
85 gfx::Size(), in TEST()
86 gfx::Rect(), in TEST()
[all …]
/external/chromium_org/ash/display/
Dscreen_ash.cc30 gfx::Display FindDisplayNearestPoint(const std::vector<gfx::Display>& displays, in FindDisplayNearestPoint()
31 const gfx::Point& point) { in FindDisplayNearestPoint()
33 const gfx::Display* nearest_display = NULL; in FindDisplayNearestPoint()
34 for (std::vector<gfx::Display>::const_iterator iter = displays.begin(); in FindDisplayNearestPoint()
36 const gfx::Display& display = *iter; in FindDisplayNearestPoint()
48 const gfx::Display* FindDisplayMatching( in FindDisplayMatching()
49 const std::vector<gfx::Display>& displays, in FindDisplayMatching()
50 const gfx::Rect& match_rect) { in FindDisplayMatching()
52 const gfx::Display* matching = NULL; in FindDisplayMatching()
53 for (std::vector<gfx::Display>::const_iterator iter = displays.begin(); in FindDisplayMatching()
[all …]
Dscreen_ash.h14 namespace gfx {
25 class ASH_EXPORT ScreenAsh : public gfx::Screen {
33 static gfx::Display FindDisplayContainingPoint(const gfx::Point& point);
37 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window);
40 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window);
43 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window);
47 static gfx::Rect ConvertRectToScreen(aura::Window* window,
48 const gfx::Rect& rect);
52 static gfx::Rect ConvertRectFromScreen(aura::Window* window,
53 const gfx::Rect& rect);
[all …]
/external/chromium_org/ui/views/
Drect_based_targeting_utils_unittest.cc13 gfx::Rect rect_1(gfx::Point(-22, 30), gfx::Size(1, 1)); in TEST()
14 gfx::Rect rect_2(gfx::Point(0, 0), gfx::Size(34, 55)); in TEST()
15 gfx::Rect rect_3(gfx::Point(12, 12), gfx::Size(1, 0)); in TEST()
16 gfx::Rect rect_4(gfx::Point(12, 120), gfx::Size(0, 0)); in TEST()
25 gfx::Rect rect_1(gfx::Point(0, 0), gfx::Size(300, 120)); in TEST()
26 gfx::Rect rect_2(gfx::Point(20, 10), gfx::Size(30, 90)); in TEST()
27 gfx::Rect rect_3(gfx::Point(160, 50), gfx::Size(150, 85)); in TEST()
28 gfx::Rect rect_4(gfx::Point(20, 55), gfx::Size(0, 15)); in TEST()
52 gfx::Rect rect_1(gfx::Point(0, 0), gfx::Size(10, 10)); in TEST()
53 gfx::Rect rect_2(gfx::Point(20, 0), gfx::Size(80, 10)); in TEST()
[all …]
/external/chromium_org/ash/wm/maximize_mode/
Dmaximize_mode_controller_unittest.cc77 void TriggerAccelerometerUpdate(const gfx::Vector3dF& base, in TriggerAccelerometerUpdate()
78 const gfx::Vector3dF& lid) { in TriggerAccelerometerUpdate()
91 gfx::Display::Rotation GetInternalDisplayRotation() const { in GetInternalDisplayRotation()
93 gfx::Display::InternalDisplayId()).rotation(); in GetInternalDisplayRotation()
96 void SetInternalDisplayRotation(gfx::Display::Rotation rotation) const { in SetInternalDisplayRotation()
98 SetDisplayRotation(gfx::Display::InternalDisplayId(), rotation); in SetInternalDisplayRotation()
120 gfx::Vector3dF base_vector(0.0f, -kMeanGravity, 0.0f); in OpenLidToAngle()
121 gfx::Vector3dF lid_vector(0.0f, in OpenLidToAngle()
279 TriggerAccelerometerUpdate(gfx::Vector3dF(0.0f, 0.0f, -kMeanGravity), in TEST_F()
280 gfx::Vector3dF(0.0f, -kMeanGravity, 0.0f)); in TEST_F()
[all …]
/external/chromium_org/ui/views/widget/desktop_aura/
Ddesktop_screen_x11_unittest.cc37 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { in GetNonClientComponent()
55 public gfx::DisplayObserver {
64 std::vector<gfx::Display> displays; in SetUp()
65 displays.push_back(gfx::Display(kFirstDisplay, gfx::Rect(0, 0, 640, 480))); in SetUp()
76 std::vector<gfx::Display> changed_display_;
77 std::vector<gfx::Display> added_display_;
78 std::vector<gfx::Display> removed_display_;
82 void NotifyDisplaysChanged(const std::vector<gfx::Display>& displays) { in NotifyDisplaysChanged()
94 Widget* BuildTopLevelDesktopWidget(const gfx::Rect& bounds, in BuildTopLevelDesktopWidget()
114 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE { in OnDisplayAdded()
[all …]
/external/chromium_org/chrome/browser/profiles/
Dprofile_avatar_icon_util_unittest.cc19 void VerifyScaling(gfx::Image& image, gfx::Size& size) { in VerifyScaling()
20 gfx::Size canvas_size(100, 100); in VerifyScaling()
21 gfx::Canvas canvas(canvas_size, 1.0f, false); in VerifyScaling()
22 gfx::Canvas canvas2(canvas_size, 2.0f, false); in VerifyScaling()
24 ASSERT_FALSE(gfx::test::IsEmpty(image)); in VerifyScaling()
27 gfx::ImageSkia image_skia = *image.ToImageSkia(); in VerifyScaling()
37 const gfx::Image& profile_image( in TEST()
39 gfx::Image result = in TEST()
42 EXPECT_FALSE(gfx::test::IsEmpty(result)); in TEST()
43 EXPECT_TRUE(gfx::test::IsEqual(profile_image, result)); in TEST()
[all …]
/external/chromium_org/ui/aura/test/
Dtest_screen.cc21 bool IsRotationPortrait(gfx::Display::Rotation rotation) { in IsRotationPortrait()
22 return rotation == gfx::Display::ROTATE_90 || in IsRotationPortrait()
23 rotation == gfx::Display::ROTATE_270; in IsRotationPortrait()
29 TestScreen* TestScreen::Create(const gfx::Size& size) { in Create()
30 const gfx::Size kDefaultSize(800, 600); in Create()
33 return new TestScreen(gfx::Rect(size.IsEmpty() ? kDefaultSize : size)); in Create()
38 return new TestScreen(gfx::Rect(WindowTreeHost::GetNativeScreenSize())); in CreateFullscreen()
46 host_ = WindowTreeHost::Create(gfx::Rect(display_.GetSizeInPixel())); in CreateHostForPrimaryDisplay()
53 gfx::Rect bounds_in_pixel(display_.GetSizeInPixel()); in SetDeviceScaleFactor()
58 void TestScreen::SetDisplayRotation(gfx::Display::Rotation rotation) { in SetDisplayRotation()
[all …]
/external/chromium_org/ui/compositor/
Ddip_util.cc31 gfx::Point ConvertPointToDIP(const Layer* layer, in ConvertPointToDIP()
32 const gfx::Point& point_in_pixel) { in ConvertPointToDIP()
33 return gfx::ToFlooredPoint( in ConvertPointToDIP()
34 gfx::ScalePoint(point_in_pixel, 1.0f / GetDeviceScaleFactor(layer))); in ConvertPointToDIP()
37 gfx::PointF ConvertPointToDIP(const Layer* layer, in ConvertPointToDIP()
38 const gfx::PointF& point_in_pixel) { in ConvertPointToDIP()
39 return gfx::ScalePoint(point_in_pixel, 1.0f / GetDeviceScaleFactor(layer)); in ConvertPointToDIP()
42 gfx::Size ConvertSizeToDIP(const Layer* layer, in ConvertSizeToDIP()
43 const gfx::Size& size_in_pixel) { in ConvertSizeToDIP()
44 return gfx::ToFlooredSize( in ConvertSizeToDIP()
[all …]
/external/chromium_org/cc/layers/
Dnine_patch_layer_impl_unittest.cc25 gfx::Rect ToRoundedIntRect(const gfx::RectF& rect_f) { in ToRoundedIntRect()
26 return gfx::Rect(gfx::ToRoundedInt(rect_f.x()), in ToRoundedIntRect()
27 gfx::ToRoundedInt(rect_f.y()), in ToRoundedIntRect()
28 gfx::ToRoundedInt(rect_f.width()), in ToRoundedIntRect()
29 gfx::ToRoundedInt(rect_f.height())); in ToRoundedIntRect()
32 void NinePatchLayerLayoutTest(const gfx::Size& bitmap_size, in NinePatchLayerLayoutTest()
33 const gfx::Rect& aperture_rect, in NinePatchLayerLayoutTest()
34 const gfx::Size& layer_size, in NinePatchLayerLayoutTest()
35 const gfx::Rect& border, in NinePatchLayerLayoutTest()
40 gfx::Rect visible_content_rect(layer_size); in NinePatchLayerLayoutTest()
[all …]

12345678910>>...188