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

Unified Diff: content/common/gpu/client/gl_helper.h

Issue 12892005: Implement client side PBOs for glReadPixel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make GLHelper constructor explicit Created 7 years, 9 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/client/gl_helper.h
diff --git a/content/common/gpu/client/gl_helper.h b/content/common/gpu/client/gl_helper.h
index 40e25ebe716b955c99507f0e373fa02d24ea7a61..2908f6e6c5b8781b48e3d53bf893ecd0624209b5 100644
--- a/content/common/gpu/client/gl_helper.h
+++ b/content/common/gpu/client/gl_helper.h
@@ -9,7 +9,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
+#include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
namespace gfx {
class Rect;
@@ -24,11 +24,10 @@ namespace content {
// interfaces.
class GLHelper {
public:
- GLHelper(WebKit::WebGraphicsContext3D* context,
- WebKit::WebGraphicsContext3D* context_for_thread);
+ explicit GLHelper(WebGraphicsContext3DCommandBufferImpl* context);
virtual ~GLHelper();
- WebKit::WebGraphicsContext3D* context() const;
+ WebGraphicsContext3DCommandBufferImpl* context() const;
// Copies the block of pixels specified with |src_subrect| from |src_texture|,
// scales it to |dst_size|, and writes it into |out|.
@@ -81,13 +80,9 @@ class GLHelper {
// Creates |copy_texture_to_impl_| if NULL.
void InitCopyTextToImpl();
- WebKit::WebGraphicsContext3D* context_;
- WebKit::WebGraphicsContext3D* context_for_thread_;
+ WebGraphicsContext3DCommandBufferImpl* context_;
scoped_ptr<CopyTextureToImpl> copy_texture_to_impl_;
- // The number of all GLHelper instances.
- static base::subtle::Atomic32 count_;
-
DISALLOW_COPY_AND_ASSIGN(GLHelper);
};
« no previous file with comments | « content/browser/renderer_host/image_transport_factory_android.cc ('k') | content/common/gpu/client/gl_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698