Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Side by Side Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/layers/render_surface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 10 matching lines...) Expand all
21 #include "cc/test/fake_output_surface.h" 21 #include "cc/test/fake_output_surface.h"
22 #include "cc/test/fake_picture_layer_impl.h" 22 #include "cc/test/fake_picture_layer_impl.h"
23 #include "cc/test/fake_picture_pile_impl.h" 23 #include "cc/test/fake_picture_pile_impl.h"
24 #include "cc/test/geometry_test_utils.h" 24 #include "cc/test/geometry_test_utils.h"
25 #include "cc/test/impl_side_painting_settings.h" 25 #include "cc/test/impl_side_painting_settings.h"
26 #include "cc/test/layer_test_common.h" 26 #include "cc/test/layer_test_common.h"
27 #include "cc/test/test_shared_bitmap_manager.h" 27 #include "cc/test/test_shared_bitmap_manager.h"
28 #include "cc/test/test_web_graphics_context_3d.h" 28 #include "cc/test/test_web_graphics_context_3d.h"
29 #include "cc/trees/layer_tree_impl.h" 29 #include "cc/trees/layer_tree_impl.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 #include "ui/gfx/rect_conversions.h" 31 #include "ui/gfx/geometry/rect_conversions.h"
32 #include "ui/gfx/size_conversions.h" 32 #include "ui/gfx/geometry/size_conversions.h"
33 33
34 namespace cc { 34 namespace cc {
35 namespace { 35 namespace {
36 36
37 class MockCanvas : public SkCanvas { 37 class MockCanvas : public SkCanvas {
38 public: 38 public:
39 explicit MockCanvas(int w, int h) : SkCanvas(w, h) {} 39 explicit MockCanvas(int w, int h) : SkCanvas(w, h) {}
40 40
41 void drawRect(const SkRect& rect, const SkPaint& paint) override { 41 void drawRect(const SkRect& rect, const SkPaint& paint) override {
42 // Capture calls before SkCanvas quickReject() kicks in. 42 // Capture calls before SkCanvas quickReject() kicks in.
(...skipping 4570 matching lines...) Expand 10 before | Expand all | Expand 10 after
4613 result = layer->CalculateTileSize(gfx::Size(447, 400)); 4613 result = layer->CalculateTileSize(gfx::Size(447, 400));
4614 EXPECT_EQ(result.width(), 448); 4614 EXPECT_EQ(result.width(), 448);
4615 EXPECT_EQ(result.height(), 448); 4615 EXPECT_EQ(result.height(), 448);
4616 result = layer->CalculateTileSize(gfx::Size(500, 499)); 4616 result = layer->CalculateTileSize(gfx::Size(500, 499));
4617 EXPECT_EQ(result.width(), 512); 4617 EXPECT_EQ(result.width(), 512);
4618 EXPECT_EQ(result.height(), 500 + 2); 4618 EXPECT_EQ(result.height(), 500 + 2);
4619 } 4619 }
4620 4620
4621 } // namespace 4621 } // namespace
4622 } // namespace cc 4622 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/layers/render_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698