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

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: rebase. 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') | 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_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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "cc/cc_export.h" 12 #include "cc/cc_export.h"
13 #include "cc/draw_properties.h" 13 #include "cc/draw_properties.h"
14 #include "cc/input_handler.h" 14 #include "cc/input_handler.h"
15 #include "cc/layer_animation_controller.h" 15 #include "cc/layer_animation_controller.h"
16 #include "cc/layer_animation_value_observer.h" 16 #include "cc/layer_animation_value_observer.h"
17 #include "cc/region.h" 17 #include "cc/region.h"
18 #include "cc/render_pass.h" 18 #include "cc/render_pass.h"
19 #include "cc/render_surface_impl.h" 19 #include "cc/render_surface_impl.h"
20 #include "cc/resource_provider.h" 20 #include "cc/resource_provider.h"
21 #include "cc/scoped_ptr_vector.h" 21 #include "cc/scoped_ptr_vector.h"
22 #include "cc/shared_quad_state.h" 22 #include "cc/shared_quad_state.h"
23 #include "skia/ext/refptr.h" 23 #include "skia/ext/refptr.h"
24 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 24 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h"
25 #include "third_party/skia/include/core/SkColor.h" 25 #include "third_party/skia/include/core/SkColor.h"
26 #include "third_party/skia/include/core/SkImageFilter.h" 26 #include "third_party/skia/include/core/SkImageFilter.h"
27 #include "third_party/skia/include/core/SkPicture.h"
27 #include "ui/gfx/rect.h" 28 #include "ui/gfx/rect.h"
28 #include "ui/gfx/rect_f.h" 29 #include "ui/gfx/rect_f.h"
29 #include "ui/gfx/transform.h" 30 #include "ui/gfx/transform.h"
30 31
31 namespace base { 32 namespace base {
32 class DictionaryValue; 33 class DictionaryValue;
33 } 34 }
34 35
35 namespace cc { 36 namespace cc {
36 37
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 void setHorizontalScrollbarLayer(ScrollbarLayerImpl*); 282 void setHorizontalScrollbarLayer(ScrollbarLayerImpl*);
282 ScrollbarLayerImpl* horizontalScrollbarLayer(); 283 ScrollbarLayerImpl* horizontalScrollbarLayer();
283 const ScrollbarLayerImpl* horizontalScrollbarLayer() const; 284 const ScrollbarLayerImpl* horizontalScrollbarLayer() const;
284 285
285 void setVerticalScrollbarLayer(ScrollbarLayerImpl*); 286 void setVerticalScrollbarLayer(ScrollbarLayerImpl*);
286 ScrollbarLayerImpl* verticalScrollbarLayer(); 287 ScrollbarLayerImpl* verticalScrollbarLayer();
287 const ScrollbarLayerImpl* verticalScrollbarLayer() const; 288 const ScrollbarLayerImpl* verticalScrollbarLayer() const;
288 289
289 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; 290 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
290 291
292 virtual skia::RefPtr<SkPicture> getPicture();
293
291 protected: 294 protected:
292 LayerImpl(LayerTreeImpl* layerImpl, int); 295 LayerImpl(LayerTreeImpl* layerImpl, int);
293 296
294 // Get the color and size of the layer's debug border. 297 // Get the color and size of the layer's debug border.
295 virtual void getDebugBorderProperties(SkColor*, float* width) const; 298 virtual void getDebugBorderProperties(SkColor*, float* width) const;
296 299
297 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat a&) const; 300 void appendDebugBorderQuad(QuadSink&, const SharedQuadState*, AppendQuadsDat a&) const;
298 301
299 virtual void dumpLayerProperties(std::string*, int indent) const; 302 virtual void dumpLayerProperties(std::string*, int indent) const;
300 static std::string indentString(int indent); 303 static std::string indentString(int indent);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Group of properties that need to be computed based on the layer tree 408 // Group of properties that need to be computed based on the layer tree
406 // hierarchy before layers can be drawn. 409 // hierarchy before layers can be drawn.
407 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; 410 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties;
408 411
409 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 412 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
410 }; 413 };
411 414
412 } 415 }
413 416
414 #endif // CC_LAYER_IMPL_H_ 417 #endif // CC_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698