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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11316128: Send compositor frame IPC with metadata. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compile errors on mac/win 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
« no previous file with comments | « cc/gl_renderer_unittest.cc ('k') | cc/layer_tree_host_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_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/output_surface_client.h" 14 #include "cc/output_surface_client.h"
15 #include "cc/render_pass.h" 15 #include "cc/render_pass.h"
16 #include "cc/render_pass_sink.h" 16 #include "cc/render_pass_sink.h"
17 #include "cc/renderer.h" 17 #include "cc/renderer.h"
18 #include "cc/tile_manager.h" 18 #include "cc/tile_manager.h"
19 #include "third_party/skia/include/core/SkColor.h" 19 #include "third_party/skia/include/core/SkColor.h"
20 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
21 21
22 namespace cc { 22 namespace cc {
23 23
24 class CompletionEvent; 24 class CompletionEvent;
25 class CompositorFrameMetadata;
25 class DebugRectHistory; 26 class DebugRectHistory;
26 class FrameRateCounter; 27 class FrameRateCounter;
27 class LayerImpl; 28 class LayerImpl;
28 class LayerTreeHostImplTimeSourceAdapter; 29 class LayerTreeHostImplTimeSourceAdapter;
29 class LayerTreeImpl; 30 class LayerTreeImpl;
30 class PageScaleAnimation; 31 class PageScaleAnimation;
31 class RenderPassDrawQuad; 32 class RenderPassDrawQuad;
32 class ResourceProvider; 33 class ResourceProvider;
33 struct RendererCapabilities; 34 struct RendererCapabilities;
34 struct RenderingStats; 35 struct RenderingStats;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // RendererClient implementation 165 // RendererClient implementation
165 virtual const gfx::Size& deviceViewportSize() const OVERRIDE; 166 virtual const gfx::Size& deviceViewportSize() const OVERRIDE;
166 virtual const LayerTreeSettings& settings() const OVERRIDE; 167 virtual const LayerTreeSettings& settings() const OVERRIDE;
167 virtual void didLoseOutputSurface() OVERRIDE; 168 virtual void didLoseOutputSurface() OVERRIDE;
168 virtual void onSwapBuffersComplete() OVERRIDE; 169 virtual void onSwapBuffersComplete() OVERRIDE;
169 virtual void setFullRootLayerDamage() OVERRIDE; 170 virtual void setFullRootLayerDamage() OVERRIDE;
170 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE; 171 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE;
171 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O VERRIDE; 172 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O VERRIDE;
172 virtual bool hasImplThread() const OVERRIDE; 173 virtual bool hasImplThread() const OVERRIDE;
173 virtual bool shouldClearRootRenderPass() const OVERRIDE; 174 virtual bool shouldClearRootRenderPass() const OVERRIDE;
175 virtual CompositorFrameMetadata makeCompositorFrameMetadata() const OVERRIDE ;
174 176
175 // TileManagerClient implementation. 177 // TileManagerClient implementation.
176 virtual void ScheduleManageTiles() OVERRIDE; 178 virtual void ScheduleManageTiles() OVERRIDE;
177 virtual void ScheduleCheckForCompletedSetPixels() OVERRIDE; 179 virtual void ScheduleCheckForCompletedSetPixels() OVERRIDE;
178 180
179 // OutputSurfaceClient implementation. 181 // OutputSurfaceClient implementation.
180 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE; 182 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE;
181 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck&) OVE RRIDE; 183 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck&) OVE RRIDE;
182 184
183 // Called from LayerTreeImpl. 185 // Called from LayerTreeImpl.
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 size_t m_lastSentMemoryVisibleBytes; 403 size_t m_lastSentMemoryVisibleBytes;
402 size_t m_lastSentMemoryVisibleAndNearbyBytes; 404 size_t m_lastSentMemoryVisibleAndNearbyBytes;
403 size_t m_lastSentMemoryUseBytes; 405 size_t m_lastSentMemoryUseBytes;
404 406
405 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 407 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
406 }; 408 };
407 409
408 } // namespace cc 410 } // namespace cc
409 411
410 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 412 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/gl_renderer_unittest.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698