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

Side by Side Diff: cc/layer_impl.h

Issue 11731002: Implement a method to access the non-composited content root layer picture pile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows bots. Created 7 years, 11 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/layer_impl.cc » ('j') | cc/layer_tree_host_impl.h » ('J')
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_LAYER_IMPL_H_ 5 #ifndef CC_LAYER_IMPL_H_
6 #define CC_LAYER_IMPL_H_ 6 #define CC_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 18 matching lines...) Expand all
29 #include "ui/gfx/transform.h" 29 #include "ui/gfx/transform.h"
30 30
31 namespace base { 31 namespace base {
32 class DictionaryValue; 32 class DictionaryValue;
33 } 33 }
34 34
35 namespace cc { 35 namespace cc {
36 36
37 class LayerTreeHostImpl; 37 class LayerTreeHostImpl;
38 class LayerTreeImpl; 38 class LayerTreeImpl;
39 class PicturePileImpl;
39 class QuadSink; 40 class QuadSink;
40 class Renderer; 41 class Renderer;
41 class ScrollbarAnimationController; 42 class ScrollbarAnimationController;
42 class ScrollbarLayerImpl; 43 class ScrollbarLayerImpl;
43 class Layer; 44 class Layer;
44 45
45 struct AppendQuadsData; 46 struct AppendQuadsData;
46 47
47 class CC_EXPORT LayerImpl : LayerAnimationValueObserver { 48 class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
48 public: 49 public:
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 void setHorizontalScrollbarLayer(ScrollbarLayerImpl*); 275 void setHorizontalScrollbarLayer(ScrollbarLayerImpl*);
275 ScrollbarLayerImpl* horizontalScrollbarLayer(); 276 ScrollbarLayerImpl* horizontalScrollbarLayer();
276 const ScrollbarLayerImpl* horizontalScrollbarLayer() const; 277 const ScrollbarLayerImpl* horizontalScrollbarLayer() const;
277 278
278 void setVerticalScrollbarLayer(ScrollbarLayerImpl*); 279 void setVerticalScrollbarLayer(ScrollbarLayerImpl*);
279 ScrollbarLayerImpl* verticalScrollbarLayer(); 280 ScrollbarLayerImpl* verticalScrollbarLayer();
280 const ScrollbarLayerImpl* verticalScrollbarLayer() const; 281 const ScrollbarLayerImpl* verticalScrollbarLayer() const;
281 282
282 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; 283 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
283 284
285 virtual scoped_refptr<PicturePileImpl> GetPicturePileClone() const;
286
284 protected: 287 protected:
285 LayerImpl(LayerTreeImpl* layerImpl, int); 288 LayerImpl(LayerTreeImpl* layerImpl, int);
286 289
287 // Get the color and size of the layer's debug border. 290 // Get the color and size of the layer's debug border.
288 virtual void getDebugBorderProperties(SkColor*, float* width) const; 291 virtual void getDebugBorderProperties(SkColor*, float* width) const;
289 292
290 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat a&) const; 293 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat a&) const;
291 294
292 virtual void dumpLayerProperties(std::string*, int indent) const; 295 virtual void dumpLayerProperties(std::string*, int indent) const;
293 static std::string indentString(int indent); 296 static std::string indentString(int indent);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Group of properties that need to be computed based on the layer tree 401 // Group of properties that need to be computed based on the layer tree
399 // hierarchy before layers can be drawn. 402 // hierarchy before layers can be drawn.
400 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 403 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
401 404
402 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 405 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
403 }; 406 };
404 407
405 } 408 }
406 409
407 #endif // CC_LAYER_IMPL_H_ 410 #endif // CC_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_impl.cc » ('j') | cc/layer_tree_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698