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

Unified Diff: cc/single_thread_proxy.h

Issue 11450019: Finish the rename from cc::GraphicsContext to cc::OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: cc/single_thread_proxy.h
diff --git a/cc/single_thread_proxy.h b/cc/single_thread_proxy.h
index a51c64fca444520a2cd4ad4065dd00bf802e32f6..51deb253df2a0bc84720d7ae8e9c9829dae092c2 100644
--- a/cc/single_thread_proxy.h
+++ b/cc/single_thread_proxy.h
@@ -26,14 +26,14 @@ public:
virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, float scale, base::TimeDelta duration) OVERRIDE;
virtual void finishAllRendering() OVERRIDE;
virtual bool isStarted() const OVERRIDE;
- virtual bool initializeContext() OVERRIDE;
+ virtual bool initializeOutputSurface() OVERRIDE;
virtual void setSurfaceReady() OVERRIDE;
virtual void setVisible(bool) OVERRIDE;
virtual bool initializeRenderer() OVERRIDE;
- virtual bool recreateContext() OVERRIDE;
+ virtual bool recreateOutputSurface() OVERRIDE;
virtual void renderingStats(RenderingStats*) OVERRIDE;
virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE;
- virtual void loseContext() OVERRIDE;
+ virtual void loseOutputSurface() OVERRIDE;
virtual void setNeedsAnimate() OVERRIDE;
virtual void setNeedsCommit() OVERRIDE;
virtual void setNeedsRedraw() OVERRIDE;
@@ -47,7 +47,7 @@ public:
virtual void forceSerializeOnSwapBuffers() OVERRIDE;
// LayerTreeHostImplClient implementation
- virtual void didLoseContextOnImplThread() OVERRIDE { }
+ virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { }
virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE;
virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDelta interval) OVERRIDE { }
virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { }
@@ -71,11 +71,11 @@ private:
// Accessed on main thread only.
LayerTreeHost* m_layerTreeHost;
- bool m_contextLost;
+ bool m_outputSurfaceLost;
// Holds on to the context between initializeContext() and initializeRenderer() calls. Shouldn't
// be used for anything else.
- scoped_ptr<GraphicsContext> m_contextBeforeInitialization;
+ scoped_ptr<OutputSurface> m_outputSurfaceBeforeInitialization;
// Used on the Thread, but checked on main thread during initialization/shutdown.
scoped_ptr<LayerTreeHostImpl> m_layerTreeHostImpl;

Powered by Google App Engine
This is Rietveld 408576698