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

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

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
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index cf55bb1771ccadd6795c3fbfd6466d42270b48fc..06aa79e0f2f8bb12915ba004ce3e561de029fbff 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -13,6 +13,7 @@
#include "../client/mapped_memory.h"
#include "../client/program_info_manager.h"
#include "../client/query_tracker.h"
+#include "../client/share_group.h"
#include "../client/transfer_buffer.h"
#include "../common/gles2_cmd_utils.h"
#include "../common/id_allocator.h"
@@ -575,6 +576,7 @@ GLES2Implementation::SingleThreadChecker::~SingleThreadChecker() {
GLES2Implementation::GLES2Implementation(
GLES2CmdHelper* helper,
+ ShareGroup* share_group,
TransferBufferInterface* transfer_buffer,
bool share_resources,
bool bind_generates_resource)
@@ -606,6 +608,8 @@ GLES2Implementation::GLES2Implementation(
switches::kEnableGPUClientLogging);
});
+ share_group_ = (share_group ? share_group : new ShareGroup());
+
memset(&reserved_ids_, 0, sizeof(reserved_ids_));
}
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698