| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ | 5 #ifndef CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ |
| 6 #define CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ | 6 #define CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 gfx::Point point; | 33 gfx::Point point; |
| 34 gfx::Transform transform; | 34 gfx::Transform transform; |
| 35 SkPaint paint; | 35 SkPaint paint; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 FakeContentLayerClient(); | 38 FakeContentLayerClient(); |
| 39 ~FakeContentLayerClient() override; | 39 ~FakeContentLayerClient() override; |
| 40 | 40 |
| 41 gfx::Rect PaintableRegion() override; | 41 gfx::Rect PaintableRegion() override; |
| 42 scoped_refptr<DisplayItemList> PaintContentsToDisplayList( | 42 scoped_refptr<DisplayItemList> PaintContentsToDisplayList( |
| 43 const gfx::Rect& clip, | |
| 44 PaintingControlSetting painting_control) override; | 43 PaintingControlSetting painting_control) override; |
| 45 bool FillsBoundsCompletely() const override; | 44 bool FillsBoundsCompletely() const override; |
| 46 size_t GetApproximateUnsharedMemoryUsage() const override; | 45 size_t GetApproximateUnsharedMemoryUsage() const override; |
| 47 | 46 |
| 48 void set_fill_with_nonsolid_color(bool nonsolid) { | 47 void set_fill_with_nonsolid_color(bool nonsolid) { |
| 49 fill_with_nonsolid_color_ = nonsolid; | 48 fill_with_nonsolid_color_ = nonsolid; |
| 50 } | 49 } |
| 51 | 50 |
| 52 void add_draw_rect(const gfx::Rect& rect, const SkPaint& paint) { | 51 void add_draw_rect(const gfx::Rect& rect, const SkPaint& paint) { |
| 53 draw_rects_.push_back(std::make_pair(gfx::RectF(rect), paint)); | 52 draw_rects_.push_back(std::make_pair(gfx::RectF(rect), paint)); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 SkCanvas* last_canvas_; | 95 SkCanvas* last_canvas_; |
| 97 PaintingControlSetting last_painting_control_; | 96 PaintingControlSetting last_painting_control_; |
| 98 size_t reported_memory_usage_; | 97 size_t reported_memory_usage_; |
| 99 gfx::Size bounds_; | 98 gfx::Size bounds_; |
| 100 bool bounds_set_; | 99 bool bounds_set_; |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 } // namespace cc | 102 } // namespace cc |
| 104 | 103 |
| 105 #endif // CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ | 104 #endif // CC_TEST_FAKE_CONTENT_LAYER_CLIENT_H_ |
| OLD | NEW |