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

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 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
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, float scale) const;
136 void PopulateScaledSharedQuadState(SharedQuadState* state,
137 float scale_x,
138 float scale_y) const;
136 // WillDraw must be called before AppendQuads. If WillDraw returns false, 139 // WillDraw must be called before AppendQuads. If WillDraw returns false,
137 // AppendQuads and DidDraw will not be called. If WillDraw returns true, 140 // AppendQuads and DidDraw will not be called. If WillDraw returns true,
138 // DidDraw is guaranteed to be called before another WillDraw or before 141 // DidDraw is guaranteed to be called before another WillDraw or before
139 // the layer is destroyed. To enforce this, any class that overrides 142 // the layer is destroyed. To enforce this, any class that overrides
140 // WillDraw/DidDraw must call the base class version only if WillDraw 143 // WillDraw/DidDraw must call the base class version only if WillDraw
141 // returns true. 144 // returns true.
142 virtual bool WillDraw(DrawMode draw_mode, 145 virtual bool WillDraw(DrawMode draw_mode,
143 ResourceProvider* resource_provider); 146 ResourceProvider* resource_provider);
144 virtual void AppendQuads(RenderPass* render_pass, 147 virtual void AppendQuads(RenderPass* render_pass,
145 AppendQuadsData* append_quads_data) {} 148 AppendQuadsData* append_quads_data) {}
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 bool has_will_change_transform_hint_ : 1; 577 bool has_will_change_transform_hint_ : 1;
575 bool needs_push_properties_ : 1; 578 bool needs_push_properties_ : 1;
576 bool scrollbars_hidden_ : 1; 579 bool scrollbars_hidden_ : 1;
577 580
578 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 581 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
579 }; 582 };
580 583
581 } // namespace cc 584 } // namespace cc
582 585
583 #endif // CC_LAYERS_LAYER_IMPL_H_ 586 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698