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

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

Issue 2254543004: cc : Delete LayerImpl::transform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use test properties transform Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.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 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 void set_should_flatten_transform_from_property_tree(bool should_flatten) { 134 void set_should_flatten_transform_from_property_tree(bool should_flatten) {
135 should_flatten_transform_from_property_tree_ = should_flatten; 135 should_flatten_transform_from_property_tree_ = should_flatten;
136 } 136 }
137 bool should_flatten_transform_from_property_tree() const { 137 bool should_flatten_transform_from_property_tree() const {
138 return should_flatten_transform_from_property_tree_; 138 return should_flatten_transform_from_property_tree_;
139 } 139 }
140 140
141 bool is_clipped() const { return draw_properties_.is_clipped; } 141 bool is_clipped() const { return draw_properties_.is_clipped; }
142 142
143 void UpdatePropertyTreeTransform(); 143 void UpdatePropertyTreeTransform(const gfx::Transform& transform);
144 void UpdatePropertyTreeTransformIsAnimated(bool is_animated); 144 void UpdatePropertyTreeTransformIsAnimated(bool is_animated);
145 void UpdatePropertyTreeOpacity(float opacity); 145 void UpdatePropertyTreeOpacity(float opacity);
146 void UpdatePropertyTreeScrollOffset(); 146 void UpdatePropertyTreeScrollOffset();
147 147
148 // For compatibility with Layer. 148 // For compatibility with Layer.
149 bool has_render_surface() const { return !!render_surface(); } 149 bool has_render_surface() const { return !!render_surface(); }
150 150
151 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; } 151 LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; }
152 152
153 void PopulateSharedQuadState(SharedQuadState* state) const; 153 void PopulateSharedQuadState(SharedQuadState* state) const;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 bool FilterIsAnimating() const; 198 bool FilterIsAnimating() const;
199 bool HasPotentiallyRunningFilterAnimation() const; 199 bool HasPotentiallyRunningFilterAnimation() const;
200 200
201 void SetMasksToBounds(bool masks_to_bounds); 201 void SetMasksToBounds(bool masks_to_bounds);
202 bool masks_to_bounds() const { return masks_to_bounds_; } 202 bool masks_to_bounds() const { return masks_to_bounds_; }
203 203
204 void SetContentsOpaque(bool opaque); 204 void SetContentsOpaque(bool opaque);
205 bool contents_opaque() const { return contents_opaque_; } 205 bool contents_opaque() const { return contents_opaque_; }
206 206
207 float Opacity() const; 207 float Opacity() const;
208 const gfx::Transform& Transform() const;
208 209
209 void SetElementId(ElementId element_id); 210 void SetElementId(ElementId element_id);
210 ElementId element_id() const { return element_id_; } 211 ElementId element_id() const { return element_id_; }
211 212
212 void SetMutableProperties(uint32_t properties); 213 void SetMutableProperties(uint32_t properties);
213 uint32_t mutable_properties() const { return mutable_properties_; } 214 uint32_t mutable_properties() const { return mutable_properties_; }
214 215
215 void set_draw_blend_mode(SkXfermode::Mode blend_mode) { 216 void set_draw_blend_mode(SkXfermode::Mode blend_mode) {
216 draw_blend_mode_ = blend_mode; 217 draw_blend_mode_ = blend_mode;
217 } 218 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 return non_fast_scrollable_region_; 350 return non_fast_scrollable_region_;
350 } 351 }
351 352
352 void SetTouchEventHandlerRegion(const Region& region) { 353 void SetTouchEventHandlerRegion(const Region& region) {
353 touch_event_handler_region_ = region; 354 touch_event_handler_region_ = region;
354 } 355 }
355 const Region& touch_event_handler_region() const { 356 const Region& touch_event_handler_region() const {
356 return touch_event_handler_region_; 357 return touch_event_handler_region_;
357 } 358 }
358 359
359 void SetTransform(const gfx::Transform& transform);
360 const gfx::Transform& transform() const { return transform_; }
361 bool TransformIsAnimating() const; 360 bool TransformIsAnimating() const;
362 bool HasPotentiallyRunningTransformAnimation() const; 361 bool HasPotentiallyRunningTransformAnimation() const;
363 362
364 bool HasFilterAnimationThatInflatesBounds() const; 363 bool HasFilterAnimationThatInflatesBounds() const;
365 bool HasTransformAnimationThatInflatesBounds() const; 364 bool HasTransformAnimationThatInflatesBounds() const;
366 bool HasAnimationThatInflatesBounds() const; 365 bool HasAnimationThatInflatesBounds() const;
367 366
368 bool FilterAnimationBoundsForBox(const gfx::BoxF& box, 367 bool FilterAnimationBoundsForBox(const gfx::BoxF& box,
369 gfx::BoxF* bounds) const; 368 gfx::BoxF* bounds) const;
370 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, 369 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 // (all content was complete). 534 // (all content was complete).
536 bool was_ever_ready_since_last_transform_animation_ : 1; 535 bool was_ever_ready_since_last_transform_animation_ : 1;
537 536
538 Region non_fast_scrollable_region_; 537 Region non_fast_scrollable_region_;
539 Region touch_event_handler_region_; 538 Region touch_event_handler_region_;
540 SkColor background_color_; 539 SkColor background_color_;
541 SkColor safe_opaque_background_color_; 540 SkColor safe_opaque_background_color_;
542 541
543 SkXfermode::Mode draw_blend_mode_; 542 SkXfermode::Mode draw_blend_mode_;
544 gfx::PointF position_; 543 gfx::PointF position_;
545 gfx::Transform transform_;
546 544
547 gfx::Rect clip_rect_in_target_space_; 545 gfx::Rect clip_rect_in_target_space_;
548 int transform_tree_index_; 546 int transform_tree_index_;
549 int effect_tree_index_; 547 int effect_tree_index_;
550 int clip_tree_index_; 548 int clip_tree_index_;
551 int scroll_tree_index_; 549 int scroll_tree_index_;
552 550
553 protected: 551 protected:
554 friend class TreeSynchronizer; 552 friend class TreeSynchronizer;
555 553
(...skipping 29 matching lines...) Expand all
585 bool scrolls_drawn_descendant_ : 1; 583 bool scrolls_drawn_descendant_ : 1;
586 bool has_will_change_transform_hint_ : 1; 584 bool has_will_change_transform_hint_ : 1;
587 bool needs_push_properties_ : 1; 585 bool needs_push_properties_ : 1;
588 586
589 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 587 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
590 }; 588 };
591 589
592 } // namespace cc 590 } // namespace cc
593 591
594 #endif // CC_LAYERS_LAYER_IMPL_H_ 592 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698