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

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

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Rebased to resolve conflict. Created 3 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 // Note this rect is in layer space (not content space). 337 // Note this rect is in layer space (not content space).
338 void SetUpdateRect(const gfx::Rect& update_rect); 338 void SetUpdateRect(const gfx::Rect& update_rect);
339 const gfx::Rect& update_rect() const { return update_rect_; } 339 const gfx::Rect& update_rect() const { return update_rect_; }
340 340
341 void AddDamageRect(const gfx::Rect& damage_rect); 341 void AddDamageRect(const gfx::Rect& damage_rect);
342 const gfx::Rect& damage_rect() const { return damage_rect_; } 342 const gfx::Rect& damage_rect() const { return damage_rect_; }
343 343
344 virtual std::unique_ptr<base::DictionaryValue> LayerTreeAsJson(); 344 virtual std::unique_ptr<base::DictionaryValue> LayerTreeAsJson();
345 345
346 // This includes |layer_property_changed_| and property_trees changes.
346 bool LayerPropertyChanged() const; 347 bool LayerPropertyChanged() const;
348 // Only checks |layer_property_changed_|. Used in damage_tracker to determine
349 // if there is a contributing content damage not from property_trees changes
350 // in animaiton.
351 bool LayerPropertyChangedNotFromPropertyTrees() const;
347 352
348 void ResetChangeTracking(); 353 void ResetChangeTracking();
349 354
350 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; 355 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const;
351 356
352 virtual void DidBecomeActive() {} 357 virtual void DidBecomeActive() {}
353 358
354 virtual void DidBeginTracing(); 359 virtual void DidBeginTracing();
355 360
356 // Release resources held by this layer. Called when the output surface 361 // Release resources held by this layer. Called when the output surface
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 bool raster_even_if_not_drawn_ : 1; 569 bool raster_even_if_not_drawn_ : 1;
565 570
566 bool has_transform_node_ : 1; 571 bool has_transform_node_ : 1;
567 572
568 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 573 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
569 }; 574 };
570 575
571 } // namespace cc 576 } // namespace cc
572 577
573 #endif // CC_LAYERS_LAYER_IMPL_H_ 578 #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