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

Unified Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 9837124: Add ShareGroup to GLES2Implemenation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « content/common/gpu/client/content_gl_context.cc ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.h
diff --git a/gpu/command_buffer/client/gles2_implementation.h b/gpu/command_buffer/client/gles2_implementation.h
index 4e5334a8ca32510ab55f9ab83ef4febd577bf97d..352a9473dd689727df55c9db0cfe265d469baba8 100644
--- a/gpu/command_buffer/client/gles2_implementation.h
+++ b/gpu/command_buffer/client/gles2_implementation.h
@@ -15,6 +15,7 @@
#include "../common/gles2_cmd_utils.h"
#include "../common/scoped_ptr.h"
+#include "../client/ref_counted.h"
#include "../client/gles2_cmd_helper.h"
#include "../client/query_tracker.h"
#include "../client/ring_buffer.h"
@@ -83,6 +84,7 @@ namespace gles2 {
class ClientSideBufferHelper;
class ProgramInfoManager;
+class ShareGroup;
// Base class for IdHandlers
class IdHandlerInterface {
@@ -169,6 +171,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation {
GLES2Implementation(
GLES2CmdHelper* helper,
+ ShareGroup* share_group,
TransferBufferInterface* transfer_buffer,
bool share_resources,
bool bind_generates_resource);
@@ -225,6 +228,10 @@ class GLES2_IMPL_EXPORT GLES2Implementation {
error_message_callback_ = callback;
}
+ ShareGroup* share_group() const {
+ return share_group_.get();
+ }
+
private:
friend class ClientSideBufferHelper;
friend class GLES2ImplementationTest;
@@ -529,6 +536,8 @@ class GLES2_IMPL_EXPORT GLES2Implementation {
scoped_ptr<ProgramInfoManager> program_info_manager_;
+ scoped_refptr<ShareGroup> share_group_;
+
scoped_ptr<QueryTracker> query_tracker_;
QueryTracker::Query* current_query_;
« no previous file with comments | « content/common/gpu/client/content_gl_context.cc ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698