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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 213743003: Pass GL context bind_generates_resources flag to GPU Service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fail GLES2Implementation::Initialize on bind_generates_resource between Client & Service. Created 6 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/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index b26757559392e78ff52656e50b5aafcf1d7b53f1..2becb4b9323a452afd2dea329144336e592752a6 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -139,15 +139,21 @@ GpuCommandBufferStub::GpuCommandBufferStub(
total_gpu_memory_(0) {
active_url_hash_ = base::Hash(active_url.possibly_invalid_spec());
FastSetActiveURL(active_url_, active_url_hash_);
+
+ gpu::gles2::ContextCreationAttribHelper attrib_parser;
+ attrib_parser.Parse(requested_attribs_);
+
if (share_group) {
context_group_ = share_group->context_group_;
+ DCHECK(context_group_->bind_generates_resource() ==
+ attrib_parser.bind_generates_resource_);
} else {
- context_group_ = new gpu::gles2::ContextGroup(
- mailbox_manager,
- image_manager,
- new GpuCommandBufferMemoryTracker(channel),
- NULL,
- true);
+ context_group_ =
+ new gpu::gles2::ContextGroup(mailbox_manager,
+ image_manager,
+ new GpuCommandBufferMemoryTracker(channel),
+ NULL,
+ attrib_parser.bind_generates_resource_);
}
use_virtualized_gl_context_ |=

Powered by Google App Engine
This is Rietveld 408576698