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

Side by Side Diff: cc/CCLayerTreeHostImpl.h

Issue 10900021: Use std::string instead of WTF::String / TextStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 CCLayerTreeHostImpl_h 5 #ifndef CCLayerTreeHostImpl_h
6 #define CCLayerTreeHostImpl_h 6 #define CCLayerTreeHostImpl_h
7 7
8 #include "CCAnimationEvents.h" 8 #include "CCAnimationEvents.h"
9 #include "CCInputHandler.h" 9 #include "CCInputHandler.h"
10 #include "CCLayerSorter.h" 10 #include "CCLayerSorter.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void releaseContentsTextures() OVERRIDE; 97 virtual void releaseContentsTextures() OVERRIDE;
98 virtual void setMemoryAllocationLimitBytes(size_t) OVERRIDE; 98 virtual void setMemoryAllocationLimitBytes(size_t) OVERRIDE;
99 99
100 // WebCompositorOutputSurfaceClient implementation. 100 // WebCompositorOutputSurfaceClient implementation.
101 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE; 101 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE;
102 102
103 // Implementation 103 // Implementation
104 bool canDraw(); 104 bool canDraw();
105 CCGraphicsContext* context() const; 105 CCGraphicsContext* context() const;
106 106
107 String layerTreeAsText() const; 107 std::string layerTreeAsText() const;
108 108
109 void finishAllRendering(); 109 void finishAllRendering();
110 int sourceAnimationFrameNumber() const; 110 int sourceAnimationFrameNumber() const;
111 111
112 bool initializeRenderer(PassOwnPtr<CCGraphicsContext>, TextureUploaderOption ); 112 bool initializeRenderer(PassOwnPtr<CCGraphicsContext>, TextureUploaderOption );
113 bool isContextLost(); 113 bool isContextLost();
114 CCRenderer* renderer() { return m_renderer.get(); } 114 CCRenderer* renderer() { return m_renderer.get(); }
115 const RendererCapabilities& rendererCapabilities() const; 115 const RendererCapabilities& rendererCapabilities() const;
116 116
117 bool swapBuffers(); 117 bool swapBuffers();
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 void setBackgroundTickingEnabled(bool); 235 void setBackgroundTickingEnabled(bool);
236 IntSize contentSize() const; 236 IntSize contentSize() const;
237 237
238 void sendDidLoseContextRecursive(CCLayerImpl*); 238 void sendDidLoseContextRecursive(CCLayerImpl*);
239 void clearRenderSurfaces(); 239 void clearRenderSurfaces();
240 bool ensureRenderSurfaceLayerList(); 240 bool ensureRenderSurfaceLayerList();
241 void clearCurrentlyScrollingLayer(); 241 void clearCurrentlyScrollingLayer();
242 242
243 void animateScrollbarsRecursive(CCLayerImpl*, double monotonicTime); 243 void animateScrollbarsRecursive(CCLayerImpl*, double monotonicTime);
244 244
245 void dumpRenderSurfaces(TextStream&, int indent, const CCLayerImpl*) const; 245 void dumpRenderSurfaces(std::string*, int indent, const CCLayerImpl*) const;
246 246
247 OwnPtr<CCGraphicsContext> m_context; 247 OwnPtr<CCGraphicsContext> m_context;
248 OwnPtr<CCResourceProvider> m_resourceProvider; 248 OwnPtr<CCResourceProvider> m_resourceProvider;
249 OwnPtr<CCRenderer> m_renderer; 249 OwnPtr<CCRenderer> m_renderer;
250 OwnPtr<CCLayerImpl> m_rootLayerImpl; 250 OwnPtr<CCLayerImpl> m_rootLayerImpl;
251 CCLayerImpl* m_rootScrollLayerImpl; 251 CCLayerImpl* m_rootScrollLayerImpl;
252 CCLayerImpl* m_currentlyScrollingLayerImpl; 252 CCLayerImpl* m_currentlyScrollingLayerImpl;
253 CCHeadsUpDisplayLayerImpl* m_hudLayerImpl; 253 CCHeadsUpDisplayLayerImpl* m_hudLayerImpl;
254 int m_scrollingLayerIdFromPreviousTree; 254 int m_scrollingLayerIdFromPreviousTree;
255 bool m_scrollDeltaIsInScreenSpace; 255 bool m_scrollDeltaIsInScreenSpace;
(...skipping 29 matching lines...) Expand all
285 // rendering and input event hit testing. 285 // rendering and input event hit testing.
286 CCLayerList m_renderSurfaceLayerList; 286 CCLayerList m_renderSurfaceLayerList;
287 287
288 OwnPtr<CCFrameRateCounter> m_fpsCounter; 288 OwnPtr<CCFrameRateCounter> m_fpsCounter;
289 OwnPtr<CCDebugRectHistory> m_debugRectHistory; 289 OwnPtr<CCDebugRectHistory> m_debugRectHistory;
290 }; 290 };
291 291
292 }; 292 };
293 293
294 #endif 294 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698