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

Unified Diff: cc/layer_tree_host_impl.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/layer_tree_host_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index d4aa8f5a110950fbb61769d4188a6b9b2293efc7..675d765fb8b9b4e792822752bdfb3573f2d70b7c 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -37,7 +37,7 @@ struct RenderingStats;
// LayerTreeHost->Proxy callback interface.
class LayerTreeHostImplClient {
public:
- virtual void didLoseContextOnImplThread() = 0;
+ virtual void didLoseOutputSurfaceOnImplThread() = 0;
virtual void onSwapBuffersCompleteOnImplThread() = 0;
virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDelta interval) = 0;
virtual void onCanDrawStateChanged(bool canDraw) = 0;
@@ -165,7 +165,7 @@ public:
// RendererClient implementation
virtual const gfx::Size& deviceViewportSize() const OVERRIDE;
virtual const LayerTreeSettings& settings() const OVERRIDE;
- virtual void didLoseContext() OVERRIDE;
+ virtual void didLoseOutputSurface() OVERRIDE;
virtual void onSwapBuffersComplete() OVERRIDE;
virtual void setFullRootLayerDamage() OVERRIDE;
virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE;
@@ -181,14 +181,14 @@ public:
// Implementation
bool canDraw();
- GraphicsContext* context() const;
+ OutputSurface* outputSurface() const;
std::string layerTreeAsText() const;
void finishAllRendering();
int sourceAnimationFrameNumber() const;
- bool initializeRenderer(scoped_ptr<GraphicsContext>);
+ bool initializeRenderer(scoped_ptr<OutputSurface>);
bool isContextLost();
TileManager* tileManager() { return m_tileManager.get(); }
Renderer* renderer() { return m_renderer.get(); }
@@ -324,7 +324,7 @@ private:
void setBackgroundTickingEnabled(bool);
gfx::Size contentSize() const;
- void sendDidLoseContextRecursive(LayerImpl*);
+ void sendDidLoseOutputSurfaceRecursive(LayerImpl*);
void clearRenderSurfaces();
bool ensureRenderSurfaceLayerList();
void clearCurrentlyScrollingLayer();
@@ -333,7 +333,7 @@ private:
void dumpRenderSurfaces(std::string*, int indent, const LayerImpl*) const;
- scoped_ptr<GraphicsContext> m_context;
+ scoped_ptr<OutputSurface> m_outputSurface;
scoped_ptr<ResourceProvider> m_resourceProvider;
scoped_ptr<Renderer> m_renderer;
scoped_ptr<TileManager> m_tileManager;
« cc/layer_tree_host.cc ('K') | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698