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

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: Address more review comments 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
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..2d5a724a4e29945fc18dfdfa62fefa1f22a1849c 100644
--- a/cc/layers/solid_color_layer_impl.h
+++ b/cc/layers/solid_color_layer_impl.h
@@ -17,6 +17,16 @@ 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,
+ AppendQuadsData* append_quads_data,
+ SharedQuadState* shared_quad_state,
+ const gfx::Size& content_bounds,
+ const gfx::Transform& target_space_transform,
+ SkColor color);
+
virtual ~SolidColorLayerImpl();
// LayerImpl overrides.
@@ -32,8 +42,6 @@ class CC_EXPORT SolidColorLayerImpl : public LayerImpl {
private:
virtual const char* LayerTypeAsString() const OVERRIDE;
- const int tile_size_;
-
DISALLOW_COPY_AND_ASSIGN(SolidColorLayerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698