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

Unified Diff: cc/layers/solid_color_layer_impl.h

Issue 519583003: Use the solid color detection to create solid layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final merge Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/solid_color_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/solid_color_layer_impl.h
diff --git a/cc/layers/solid_color_layer_impl.h b/cc/layers/solid_color_layer_impl.h
index 97d40dbf268a6060df61b05d3ba825e731a68375..598eed2e996ab45cfc415b47e84f1b5e69b9016b 100644
--- a/cc/layers/solid_color_layer_impl.h
+++ b/cc/layers/solid_color_layer_impl.h
@@ -17,6 +17,15 @@ class CC_EXPORT SolidColorLayerImpl : public LayerImpl {
int id) {
return make_scoped_ptr(new SolidColorLayerImpl(tree_impl, id));
}
+
+ static void AppendSolidQuads(
+ RenderPass* render_pass,
+ const OcclusionTracker<LayerImpl>& occlusion_tracker,
+ SharedQuadState* shared_quad_state,
+ const gfx::Size& content_bounds,
+ const gfx::Transform& target_space_transform,
+ SkColor color);
+
virtual ~SolidColorLayerImpl();
// LayerImpl overrides.
@@ -32,8 +41,6 @@ class CC_EXPORT SolidColorLayerImpl : public LayerImpl {
private:
virtual const char* LayerTypeAsString() const OVERRIDE;
- const int tile_size_;
-
DISALLOW_COPY_AND_ASSIGN(SolidColorLayerImpl);
};
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/solid_color_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698