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

Side by Side Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 1489713004: Remove the clip parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clipremoval
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host_common.h" 5 #include "cc/trees/layer_tree_host_common.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 }; 56 };
57 57
58 bool LayerWithForcedDrawsContent::DrawsContent() const { return true; } 58 bool LayerWithForcedDrawsContent::DrawsContent() const { return true; }
59 59
60 class MockContentLayerClient : public ContentLayerClient { 60 class MockContentLayerClient : public ContentLayerClient {
61 public: 61 public:
62 MockContentLayerClient() {} 62 MockContentLayerClient() {}
63 ~MockContentLayerClient() override {} 63 ~MockContentLayerClient() override {}
64 gfx::Rect PaintableRegion() override { return gfx::Rect(); } 64 gfx::Rect PaintableRegion() override { return gfx::Rect(); }
65 scoped_refptr<DisplayItemList> PaintContentsToDisplayList( 65 scoped_refptr<DisplayItemList> PaintContentsToDisplayList(
66 const gfx::Rect& clip,
67 PaintingControlSetting picture_control) override { 66 PaintingControlSetting picture_control) override {
68 NOTIMPLEMENTED(); 67 NOTIMPLEMENTED();
69 return nullptr; 68 return nullptr;
70 } 69 }
71 bool FillsBoundsCompletely() const override { return false; } 70 bool FillsBoundsCompletely() const override { return false; }
72 size_t GetApproximateUnsharedMemoryUsage() const override { return 0; } 71 size_t GetApproximateUnsharedMemoryUsage() const override { return 0; }
73 }; 72 };
74 73
75 #define EXPECT_CONTENTS_SCALE_EQ(expected, layer) \ 74 #define EXPECT_CONTENTS_SCALE_EQ(expected, layer) \
76 do { \ 75 do { \
(...skipping 9234 matching lines...) Expand 10 before | Expand all | Expand 10 after
9311 bool root_in_rsll = 9310 bool root_in_rsll =
9312 std::find(rsll->begin(), rsll->end(), root) != rsll->end(); 9311 std::find(rsll->begin(), rsll->end(), root) != rsll->end();
9313 EXPECT_TRUE(root_in_rsll); 9312 EXPECT_TRUE(root_in_rsll);
9314 bool render_surface2_in_rsll = 9313 bool render_surface2_in_rsll =
9315 std::find(rsll->begin(), rsll->end(), render_surface2) != rsll->end(); 9314 std::find(rsll->begin(), rsll->end(), render_surface2) != rsll->end();
9316 EXPECT_FALSE(render_surface2_in_rsll); 9315 EXPECT_FALSE(render_surface2_in_rsll);
9317 } 9316 }
9318 9317
9319 } // namespace 9318 } // namespace
9320 } // namespace cc 9319 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/solid_color_content_layer_client.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698