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

Side by Side Diff: cc/layer_tree_host_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: exposing a SkPicture instead of PicturePileImpl. 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
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_TREE_HOST_IMPL_H_ 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_
6 #define CC_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "cc/animation_events.h" 11 #include "cc/animation_events.h"
12 #include "cc/animation_registrar.h" 12 #include "cc/animation_registrar.h"
13 #include "cc/cc_export.h" 13 #include "cc/cc_export.h"
14 #include "cc/input_handler.h" 14 #include "cc/input_handler.h"
15 #include "cc/output_surface_client.h" 15 #include "cc/output_surface_client.h"
16 #include "cc/render_pass.h" 16 #include "cc/render_pass.h"
17 #include "cc/render_pass_sink.h" 17 #include "cc/render_pass_sink.h"
18 #include "cc/renderer.h" 18 #include "cc/renderer.h"
19 #include "cc/tile_manager.h" 19 #include "cc/tile_manager.h"
20 #include "skia/ext/refptr.h"
20 #include "third_party/skia/include/core/SkColor.h" 21 #include "third_party/skia/include/core/SkColor.h"
22 #include "third_party/skia/include/core/SkPicture.h"
21 #include "ui/gfx/rect.h" 23 #include "ui/gfx/rect.h"
22 24
23 namespace cc { 25 namespace cc {
24 26
25 class CompletionEvent; 27 class CompletionEvent;
26 class CompositorFrameMetadata; 28 class CompositorFrameMetadata;
27 class DebugRectHistory; 29 class DebugRectHistory;
28 class FrameRateCounter; 30 class FrameRateCounter;
29 class LayerImpl; 31 class LayerImpl;
30 class LayerTreeHostImplTimeSourceAdapter; 32 class LayerTreeHostImplTimeSourceAdapter;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 size_t renderPassListNext(size_t it) const { return it + 1; } 308 size_t renderPassListNext(size_t it) const { return it + 1; }
307 }; 309 };
308 310
309 template<typename RenderPassCuller> 311 template<typename RenderPassCuller>
310 static void removeRenderPasses(RenderPassCuller, FrameData&); 312 static void removeRenderPasses(RenderPassCuller, FrameData&);
311 313
312 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to talPageScaleFactor(); } 314 float totalPageScaleFactorForTesting() const { return m_pinchZoomViewport.to talPageScaleFactor(); }
313 315
314 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp ort; } 316 const PinchZoomViewport& pinchZoomViewport() const { return m_pinchZoomViewp ort; }
315 317
318 skia::RefPtr<SkPicture> capturePicture();
319
316 protected: 320 protected:
317 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* ); 321 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* );
318 void activatePendingTree(); 322 void activatePendingTree();
319 323
320 // Virtual for testing. 324 // Virtual for testing.
321 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime); 325 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime);
322 326
323 // Virtual for testing. 327 // Virtual for testing.
324 virtual base::TimeDelta lowFrequencyAnimationInterval() const; 328 virtual base::TimeDelta lowFrequencyAnimationInterval() const;
325 329
(...skipping 26 matching lines...) Expand all
352 356
353 void sendDidLoseOutputSurfaceRecursive(LayerImpl*); 357 void sendDidLoseOutputSurfaceRecursive(LayerImpl*);
354 void clearRenderSurfaces(); 358 void clearRenderSurfaces();
355 bool ensureRenderSurfaceLayerList(); 359 bool ensureRenderSurfaceLayerList();
356 void clearCurrentlyScrollingLayer(); 360 void clearCurrentlyScrollingLayer();
357 361
358 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime); 362 void animateScrollbarsRecursive(LayerImpl*, base::TimeTicks monotonicTime);
359 363
360 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const; 364 void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const;
361 365
366 static LayerImpl* getNonCompositedContentLayerRecursive(LayerImpl* layer);
367
362 scoped_ptr<OutputSurface> m_outputSurface; 368 scoped_ptr<OutputSurface> m_outputSurface;
363 scoped_ptr<ResourceProvider> m_resourceProvider; 369 scoped_ptr<ResourceProvider> m_resourceProvider;
364 scoped_ptr<Renderer> m_renderer; 370 scoped_ptr<Renderer> m_renderer;
365 scoped_ptr<TileManager> m_tileManager; 371 scoped_ptr<TileManager> m_tileManager;
366 372
367 scoped_ptr<LayerTreeImpl> m_pendingTree; 373 scoped_ptr<LayerTreeImpl> m_pendingTree;
368 scoped_ptr<LayerTreeImpl> m_activeTree; 374 scoped_ptr<LayerTreeImpl> m_activeTree;
369 375
370 bool m_scrollDeltaIsInViewportSpace; 376 bool m_scrollDeltaIsInViewportSpace;
371 LayerTreeSettings m_settings; 377 LayerTreeSettings m_settings;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 size_t m_lastSentMemoryUseBytes; 412 size_t m_lastSentMemoryUseBytes;
407 413
408 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 414 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
409 415
410 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 416 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
411 }; 417 };
412 418
413 } // namespace cc 419 } // namespace cc
414 420
415 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 421 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | cc/picture_pile_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698