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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11446076: Added LayerTreeHostImpl::layerTreeAsJson which serializes a layer tree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « cc/layer_impl.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"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE; 183 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE;
184 184
185 // LayerTreeImplClient implementation. 185 // LayerTreeImplClient implementation.
186 virtual void OnCanDrawStateChangedForTree(LayerTreeImpl*) OVERRIDE; 186 virtual void OnCanDrawStateChangedForTree(LayerTreeImpl*) OVERRIDE;
187 187
188 // Implementation 188 // Implementation
189 bool canDraw(); 189 bool canDraw();
190 OutputSurface* outputSurface() const; 190 OutputSurface* outputSurface() const;
191 191
192 std::string layerTreeAsText() const; 192 std::string layerTreeAsText() const;
193 std::string layerTreeAsJson() const;
193 194
194 void finishAllRendering(); 195 void finishAllRendering();
195 int sourceAnimationFrameNumber() const; 196 int sourceAnimationFrameNumber() const;
196 197
197 bool initializeRenderer(scoped_ptr<OutputSurface>); 198 bool initializeRenderer(scoped_ptr<OutputSurface>);
198 bool isContextLost(); 199 bool isContextLost();
199 TileManager* tileManager() { return m_tileManager.get(); } 200 TileManager* tileManager() { return m_tileManager.get(); }
200 Renderer* renderer() { return m_renderer.get(); } 201 Renderer* renderer() { return m_renderer.get(); }
201 const RendererCapabilities& rendererCapabilities() const; 202 const RendererCapabilities& rendererCapabilities() const;
202 203
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 #if !defined(NDEBUG) 392 #if !defined(NDEBUG)
392 AnimationControllerSet m_allAnimationControllers; 393 AnimationControllerSet m_allAnimationControllers;
393 #endif 394 #endif
394 395
395 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 396 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
396 }; 397 };
397 398
398 } // namespace cc 399 } // namespace cc
399 400
400 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 401 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_impl.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698