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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mynits Created 8 years 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/cc_export.h" 12 #include "cc/cc_export.h"
13 #include "cc/input_handler.h" 13 #include "cc/input_handler.h"
14 #include "cc/layer_sorter.h" 14 #include "cc/layer_sorter.h"
15 #include "cc/output_surface_client.h"
15 #include "cc/render_pass.h" 16 #include "cc/render_pass.h"
16 #include "cc/render_pass_sink.h" 17 #include "cc/render_pass_sink.h"
17 #include "cc/renderer.h" 18 #include "cc/renderer.h"
18 #include "cc/tile_manager.h" 19 #include "cc/tile_manager.h"
19 #include "third_party/skia/include/core/SkColor.h" 20 #include "third_party/skia/include/core/SkColor.h"
20 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
21 #include <public/WebCompositorOutputSurfaceClient.h>
22 22
23 namespace cc { 23 namespace cc {
24 24
25 class CompletionEvent; 25 class CompletionEvent;
26 class DebugRectHistory; 26 class DebugRectHistory;
27 class FrameRateCounter; 27 class FrameRateCounter;
28 class HeadsUpDisplayLayerImpl; 28 class HeadsUpDisplayLayerImpl;
29 class LayerImpl; 29 class LayerImpl;
30 class LayerTreeHostImplTimeSourceAdapter; 30 class LayerTreeHostImplTimeSourceAdapter;
31 class PageScaleAnimation; 31 class PageScaleAnimation;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 float m_deviceScaleFactor; 106 float m_deviceScaleFactor;
107 107
108 gfx::Vector2dF m_zoomedViewportOffset; 108 gfx::Vector2dF m_zoomedViewportOffset;
109 gfx::SizeF m_layoutViewportSize; 109 gfx::SizeF m_layoutViewportSize;
110 }; 110 };
111 111
112 // LayerTreeHostImpl owns the LayerImpl tree as well as associated rendering sta te 112 // LayerTreeHostImpl owns the LayerImpl tree as well as associated rendering sta te
113 class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient, 113 class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
114 public RendererClient, 114 public RendererClient,
115 public TileManagerClient, 115 public TileManagerClient,
116 public NON_EXPORTED_BASE(WebKit::WebComposit orOutputSurfaceClient) { 116 public OutputSurfaceClient {
117 typedef std::vector<LayerImpl*> LayerList; 117 typedef std::vector<LayerImpl*> LayerList;
118 118
119 public: 119 public:
120 static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerT reeHostImplClient*, Proxy*); 120 static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerT reeHostImplClient*, Proxy*);
121 virtual ~LayerTreeHostImpl(); 121 virtual ~LayerTreeHostImpl();
122 122
123 // InputHandlerClient implementation 123 // InputHandlerClient implementation
124 virtual InputHandlerClient::ScrollStatus scrollBegin(gfx::Point, InputHandle rClient::ScrollInputType) OVERRIDE; 124 virtual InputHandlerClient::ScrollStatus scrollBegin(gfx::Point, InputHandle rClient::ScrollInputType) OVERRIDE;
125 virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&) OVERRIDE; 125 virtual bool scrollBy(const gfx::Point&, const gfx::Vector2d&) OVERRIDE;
126 virtual void scrollEnd() OVERRIDE; 126 virtual void scrollEnd() OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 virtual void onSwapBuffersComplete() OVERRIDE; 169 virtual void onSwapBuffersComplete() OVERRIDE;
170 virtual void setFullRootLayerDamage() OVERRIDE; 170 virtual void setFullRootLayerDamage() OVERRIDE;
171 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE; 171 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE;
172 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O VERRIDE; 172 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O VERRIDE;
173 virtual bool hasImplThread() const OVERRIDE; 173 virtual bool hasImplThread() const OVERRIDE;
174 174
175 // TileManagerClient implementation. 175 // TileManagerClient implementation.
176 virtual void ScheduleManageTiles() OVERRIDE; 176 virtual void ScheduleManageTiles() OVERRIDE;
177 virtual void ScheduleRedraw() OVERRIDE; 177 virtual void ScheduleRedraw() OVERRIDE;
178 178
179 // WebCompositorOutputSurfaceClient implementation. 179 // OutputSurfaceClient implementation.
180 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE; 180 virtual void OnVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE;
181 181
182 // Implementation 182 // Implementation
183 bool canDraw(); 183 bool canDraw();
184 GraphicsContext* context() const; 184 GraphicsContext* context() const;
185 185
186 std::string layerTreeAsText() const; 186 std::string layerTreeAsText() const;
187 187
188 void finishAllRendering(); 188 void finishAllRendering();
189 int sourceAnimationFrameNumber() const; 189 int sourceAnimationFrameNumber() const;
190 190
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 size_t m_numMainThreadScrolls; 380 size_t m_numMainThreadScrolls;
381 381
382 size_t m_cumulativeNumLayersDrawn; 382 size_t m_cumulativeNumLayersDrawn;
383 383
384 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 384 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
385 }; 385 };
386 386
387 } // namespace cc 387 } // namespace cc
388 388
389 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 389 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host_client.h ('k') | cc/layer_tree_host_impl.cc » ('j') | cc/output_surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698