OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |