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

Side by Side Diff: cc/layers/layer_impl.h

Issue 2495373003: Match html canvas which is transferred to OffscreenCanvas to CSS style (Closed)
Patch Set: fix compilation error Created 4 years 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 void UpdatePropertyTreeTransformIsAnimated(bool is_animated); 126 void UpdatePropertyTreeTransformIsAnimated(bool is_animated);
127 void UpdatePropertyTreeScrollOffset(); 127 void UpdatePropertyTreeScrollOffset();
128 128
129 // For compatibility with Layer. 129 // For compatibility with Layer.
130 bool has_render_surface() const { return !!render_surface(); } 130 bool has_render_surface() const { return !!render_surface(); }
131 131
132 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; } 132 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; }
133 133
134 void PopulateSharedQuadState(SharedQuadState* state) const; 134 void PopulateSharedQuadState(SharedQuadState* state) const;
135 void PopulateScaledSharedQuadState(SharedQuadState* state, float scale) const; 135 void PopulateScaledSharedQuadState(SharedQuadState* state,
136 float layer_to_content_scale_x,
137 float layer_to_content_scale_y) const;
136 // WillDraw must be called before AppendQuads. If WillDraw returns false, 138 // WillDraw must be called before AppendQuads. If WillDraw returns false,
137 // AppendQuads and DidDraw will not be called. If WillDraw returns true, 139 // AppendQuads and DidDraw will not be called. If WillDraw returns true,
138 // DidDraw is guaranteed to be called before another WillDraw or before 140 // DidDraw is guaranteed to be called before another WillDraw or before
139 // the layer is destroyed. To enforce this, any class that overrides 141 // the layer is destroyed. To enforce this, any class that overrides
140 // WillDraw/DidDraw must call the base class version only if WillDraw 142 // WillDraw/DidDraw must call the base class version only if WillDraw
141 // returns true. 143 // returns true.
142 virtual bool WillDraw(DrawMode draw_mode, 144 virtual bool WillDraw(DrawMode draw_mode,
143 ResourceProvider* resource_provider); 145 ResourceProvider* resource_provider);
144 virtual void AppendQuads(RenderPass* render_pass, 146 virtual void AppendQuads(RenderPass* render_pass,
145 AppendQuadsData* append_quads_data) {} 147 AppendQuadsData* append_quads_data) {}
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 bool has_will_change_transform_hint_ : 1; 576 bool has_will_change_transform_hint_ : 1;
575 bool needs_push_properties_ : 1; 577 bool needs_push_properties_ : 1;
576 bool scrollbars_hidden_ : 1; 578 bool scrollbars_hidden_ : 1;
577 579
578 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 580 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
579 }; 581 };
580 582
581 } // namespace cc 583 } // namespace cc
582 584
583 #endif // CC_LAYERS_LAYER_IMPL_H_ 585 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698