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

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

Issue 2018263002: Change LayerImpl::LayerTreeAsJson to return a std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, 424 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
425 gfx::BoxF* bounds) const; 425 gfx::BoxF* bounds) const;
426 426
427 // Note this rect is in layer space (not content space). 427 // Note this rect is in layer space (not content space).
428 void SetUpdateRect(const gfx::Rect& update_rect); 428 void SetUpdateRect(const gfx::Rect& update_rect);
429 const gfx::Rect& update_rect() const { return update_rect_; } 429 const gfx::Rect& update_rect() const { return update_rect_; }
430 430
431 void AddDamageRect(const gfx::Rect& damage_rect); 431 void AddDamageRect(const gfx::Rect& damage_rect);
432 const gfx::Rect& damage_rect() const { return damage_rect_; } 432 const gfx::Rect& damage_rect() const { return damage_rect_; }
433 433
434 virtual base::DictionaryValue* LayerTreeAsJson() const; 434 virtual std::unique_ptr<base::DictionaryValue> LayerTreeAsJson() const;
435 435
436 bool LayerPropertyChanged() const; 436 bool LayerPropertyChanged() const;
437 437
438 void ResetChangeTracking(); 438 void ResetChangeTracking();
439 439
440 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const; 440 virtual SimpleEnclosedRegion VisibleOpaqueRegion() const;
441 441
442 virtual void DidBecomeActive() {} 442 virtual void DidBecomeActive() {}
443 443
444 virtual void DidBeginTracing(); 444 virtual void DidBeginTracing();
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 653
654 bool scrolls_drawn_descendant_; 654 bool scrolls_drawn_descendant_;
655 bool has_will_change_transform_hint_; 655 bool has_will_change_transform_hint_;
656 656
657 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 657 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
658 }; 658 };
659 659
660 } // namespace cc 660 } // namespace cc
661 661
662 #endif // CC_LAYERS_LAYER_IMPL_H_ 662 #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