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

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

Issue 2838033002: cc : Don't draw animating layers with singular screen space transform (Closed)
Patch Set: . Created 3 years, 7 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 | « no previous file | 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 return has_will_change_transform_hint_; 428 return has_will_change_transform_hint_;
429 } 429 }
430 430
431 MutatorHost* GetMutatorHost() const; 431 MutatorHost* GetMutatorHost() const;
432 432
433 ElementListType GetElementTypeForAnimation() const; 433 ElementListType GetElementTypeForAnimation() const;
434 434
435 void set_needs_show_scrollbars(bool yes) { needs_show_scrollbars_ = yes; } 435 void set_needs_show_scrollbars(bool yes) { needs_show_scrollbars_ = yes; }
436 bool needs_show_scrollbars() { return needs_show_scrollbars_; } 436 bool needs_show_scrollbars() { return needs_show_scrollbars_; }
437 437
438 void set_raster_even_if_not_in_rsll(bool yes) {
439 raster_even_if_not_in_rsll_ = yes;
440 }
441 bool raster_even_if_not_in_rsll() const {
442 return raster_even_if_not_in_rsll_;
443 }
444
438 protected: 445 protected:
439 LayerImpl(LayerTreeImpl* layer_impl, 446 LayerImpl(LayerTreeImpl* layer_impl,
440 int id, 447 int id,
441 scoped_refptr<SyncedScrollOffset> scroll_offset); 448 scoped_refptr<SyncedScrollOffset> scroll_offset);
442 LayerImpl(LayerTreeImpl* layer_impl, int id); 449 LayerImpl(LayerTreeImpl* layer_impl, int id);
443 450
444 // Get the color and size of the layer's debug border. 451 // Get the color and size of the layer's debug border.
445 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; 452 virtual void GetDebugBorderProperties(SkColor* color, float* width) const;
446 453
447 void AppendDebugBorderQuad(RenderPass* render_pass, 454 void AppendDebugBorderQuad(RenderPass* render_pass,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 554
548 bool has_will_change_transform_hint_ : 1; 555 bool has_will_change_transform_hint_ : 1;
549 bool needs_push_properties_ : 1; 556 bool needs_push_properties_ : 1;
550 bool scrollbars_hidden_ : 1; 557 bool scrollbars_hidden_ : 1;
551 558
552 // The needs_show_scrollbars_ bit tracks a pending request from Blink to show 559 // The needs_show_scrollbars_ bit tracks a pending request from Blink to show
553 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar 560 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar
554 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. 561 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation.
555 bool needs_show_scrollbars_ : 1; 562 bool needs_show_scrollbars_ : 1;
556 563
564 bool raster_even_if_not_in_rsll_ : 1;
565
557 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 566 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
558 }; 567 };
559 568
560 } // namespace cc 569 } // namespace cc
561 570
562 #endif // CC_LAYERS_LAYER_IMPL_H_ 571 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698