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

Unified Diff: gpu/ipc/service/gpu_command_buffer_stub.cc

Issue 2061743004: Implement native GMB backbuffers in the GLES2 Command Decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from piman. Created 4 years, 6 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 | « gpu/gpu.gyp ('k') | gpu/ipc/service/gpu_memory_buffer_factory_io_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_command_buffer_stub.cc
diff --git a/gpu/ipc/service/gpu_command_buffer_stub.cc b/gpu/ipc/service/gpu_command_buffer_stub.cc
index 3761a13ce36281cc55c7a5723f1e2eea0468b27e..d7a2c370c1cba0154cba65dff901d9714d9ed67b 100644
--- a/gpu/ipc/service/gpu_command_buffer_stub.cc
+++ b/gpu/ipc/service/gpu_command_buffer_stub.cc
@@ -33,6 +33,7 @@
#include "gpu/ipc/service/gpu_channel.h"
#include "gpu/ipc/service/gpu_channel_manager.h"
#include "gpu/ipc/service/gpu_channel_manager_delegate.h"
+#include "gpu/ipc/service/gpu_memory_buffer_factory.h"
#include "gpu/ipc/service/gpu_memory_manager.h"
#include "gpu/ipc/service/gpu_memory_tracking.h"
#include "gpu/ipc/service/gpu_watchdog.h"
@@ -459,13 +460,16 @@ bool GpuCommandBufferStub::Initialize(
} else {
scoped_refptr<gles2::FeatureInfo> feature_info =
new gles2::FeatureInfo(manager->gpu_driver_bug_workarounds());
+ gpu::GpuMemoryBufferFactory* gmb_factory =
+ channel_->gpu_channel_manager()->gpu_memory_buffer_factory();
context_group_ = new gles2::ContextGroup(
manager->gpu_preferences(), channel_->mailbox_manager(),
new GpuCommandBufferMemoryTracker(channel_,
command_buffer_id_.GetUnsafeValue()),
manager->shader_translator_cache(),
manager->framebuffer_completeness_cache(), feature_info,
- init_params.attribs.bind_generates_resource);
+ init_params.attribs.bind_generates_resource,
+ gmb_factory ? gmb_factory->AsImageFactory() : nullptr);
}
#if defined(OS_MACOSX)
« no previous file with comments | « gpu/gpu.gyp ('k') | gpu/ipc/service/gpu_memory_buffer_factory_io_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698