OLD | NEW |
---|---|
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 #ifndef CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ | 5 #ifndef CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ |
6 #define CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ | 6 #define CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "cc/resources/picture_pile_impl.h" | 9 #include "cc/resources/picture_pile_impl.h" |
10 #include "cc/test/fake_content_layer_client.h" | 10 #include "cc/test/fake_content_layer_client.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 void set_contents_fill_bounds_completely(bool fills) { | 63 void set_contents_fill_bounds_completely(bool fills) { |
64 contents_fill_bounds_completely_ = fills; | 64 contents_fill_bounds_completely_ = fills; |
65 } | 65 } |
66 | 66 |
67 void set_clear_canvas_with_debug_color(bool clear) { | 67 void set_clear_canvas_with_debug_color(bool clear) { |
68 clear_canvas_with_debug_color_ = clear; | 68 clear_canvas_with_debug_color_ = clear; |
69 } | 69 } |
70 | 70 |
71 void set_has_text(bool has_text) { has_text_ = has_text; } | 71 void set_has_text(bool has_text) { has_text_ = has_text; } |
72 | 72 |
73 void set_is_solid_color() { is_solid_color_ = true; } | |
danakj
2014/10/23 23:38:21
pass a bool in so we don't have to add that later?
hendrikw
2014/10/23 23:53:48
Acknowledged. It's funny, the last review I sent,
| |
74 | |
73 protected: | 75 protected: |
74 FakePicturePileImpl(); | 76 FakePicturePileImpl(); |
75 ~FakePicturePileImpl() override; | 77 ~FakePicturePileImpl() override; |
76 | 78 |
77 FakeContentLayerClient client_; | 79 FakeContentLayerClient client_; |
78 SkPaint default_paint_; | 80 SkPaint default_paint_; |
79 }; | 81 }; |
80 | 82 |
81 } // namespace cc | 83 } // namespace cc |
82 | 84 |
83 #endif // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ | 85 #endif // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ |
OLD | NEW |