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

Side by Side Diff: cc/test/fake_picture_pile_impl.h

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/test/fake_picture_layer_tiling_client.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('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 #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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
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; }
72
73 void set_is_solid_color(bool is_solid_color) { 71 void set_is_solid_color(bool is_solid_color) {
74 is_solid_color_ = is_solid_color; 72 is_solid_color_ = is_solid_color;
75 } 73 }
76 74
77 protected: 75 protected:
78 FakePicturePileImpl(); 76 FakePicturePileImpl();
79 ~FakePicturePileImpl() override; 77 ~FakePicturePileImpl() override;
80 78
81 FakeContentLayerClient client_; 79 FakeContentLayerClient client_;
82 SkPaint default_paint_; 80 SkPaint default_paint_;
83 }; 81 };
84 82
85 } // namespace cc 83 } // namespace cc
86 84
87 #endif // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ 85 #endif // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698