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

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

Issue 332433003: cc: Remove EnsureRenderSurfaceLayerList, do UpdateDrawProps when needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ensurersll: checkinside Created 6 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 | Annotate | Revision Log
« 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 bool HasScrollbar(ScrollbarOrientation orientation) const; 508 bool HasScrollbar(ScrollbarOrientation orientation) const;
509 void ScrollbarParametersDidChange(); 509 void ScrollbarParametersDidChange();
510 int clip_height() { 510 int clip_height() {
511 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0; 511 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0;
512 } 512 }
513 513
514 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; 514 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
515 515
516 virtual skia::RefPtr<SkPicture> GetPicture(); 516 virtual skia::RefPtr<SkPicture> GetPicture();
517 517
518 virtual bool AreVisibleResourcesReady() const;
519
520 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); 518 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
521 virtual void PushPropertiesTo(LayerImpl* layer); 519 virtual void PushPropertiesTo(LayerImpl* layer);
522 520
523 scoped_ptr<base::Value> AsValue() const; 521 scoped_ptr<base::Value> AsValue() const;
524 virtual size_t GPUMemoryUsageInBytes() const; 522 virtual size_t GPUMemoryUsageInBytes() const;
525 523
526 void SetNeedsPushProperties(); 524 void SetNeedsPushProperties();
527 void AddDependentNeedsPushProperties(); 525 void AddDependentNeedsPushProperties();
528 void RemoveDependentNeedsPushProperties(); 526 void RemoveDependentNeedsPushProperties();
529 bool parent_should_know_need_push_properties() const { 527 bool parent_should_know_need_push_properties() const {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 DrawProperties<LayerImpl> draw_properties_; 688 DrawProperties<LayerImpl> draw_properties_;
691 689
692 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 690 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
693 691
694 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 692 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
695 }; 693 };
696 694
697 } // namespace cc 695 } // namespace cc
698 696
699 #endif // CC_LAYERS_LAYER_IMPL_H_ 697 #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