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

Unified Diff: content/common/gpu/texture_image_transport_surface.h

Issue 10984004: Use a singleton 1x1 offscreen surface for all TextureImageTransportSurface instances. (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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/texture_image_transport_surface.h
diff --git a/content/common/gpu/texture_image_transport_surface.h b/content/common/gpu/texture_image_transport_surface.h
index 19ed88c32fb7615465c99c72611cf0ac3d800e15..f1b84b649092221fcf23790ec9c75a28b31d22ca 100644
--- a/content/common/gpu/texture_image_transport_surface.h
+++ b/content/common/gpu/texture_image_transport_surface.h
@@ -110,9 +110,9 @@ class TextureImageTransportSurface :
gfx::GLSurfaceHandle handle_;
GpuCommandBufferStub* parent_stub_;
- // The offscreeb surface used to make the context current. However note that
- // the actual rendering is always redirected to an FBO.
- scoped_refptr<GLSurface> surface_;
+ // The singleton offscreen surface used to make the context current. However
+ // note that the actual rendering is always redirected to an FBO.
+ static scoped_refptr<GLSurface> surface_;
DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
};

Powered by Google App Engine
This is Rietveld 408576698