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

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

Issue 2488413003: Mus: ImageTransportSurface should not depend on GpuChannelManager (Closed)
Patch Set: Fix windows compile issue Created 4 years, 1 month 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/ipc/service/gpu_command_buffer_stub.h ('k') | gpu/ipc/service/image_transport_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 93c9f864a5dfaf94c3a07db387d02fad28fc7937..5b29e2ca28ca161e22bece542ffb544293f6908e 100644
--- a/gpu/ipc/service/gpu_command_buffer_stub.cc
+++ b/gpu/ipc/service/gpu_command_buffer_stub.cc
@@ -276,6 +276,16 @@ bool GpuCommandBufferStub::Send(IPC::Message* message) {
return channel_->Send(message);
}
+#if defined(OS_WIN)
+void GpuCommandBufferStub::DidCreateAcceleratedSurfaceChildWindow(
+ SurfaceHandle parent_window,
+ SurfaceHandle child_window) {
+ GpuChannelManager* gpu_channel_manager = channel_->gpu_channel_manager();
+ gpu_channel_manager->delegate()->SendAcceleratedSurfaceCreatedChildWindow(
+ parent_window, child_window);
+}
+#endif
+
void GpuCommandBufferStub::DidSwapBuffersComplete(
SwapBuffersCompleteParams params) {
GpuCommandBufferMsg_SwapBuffersCompleted_Params send_params;
@@ -557,7 +567,7 @@ bool GpuCommandBufferStub::Initialize(
surface_ = default_surface;
} else {
surface_ = ImageTransportSurface::CreateNativeSurface(
- manager, AsWeakPtr(), surface_handle_, surface_format);
+ AsWeakPtr(), surface_handle_, surface_format);
if (!surface_ || !surface_->Initialize(surface_format)) {
surface_ = nullptr;
DLOG(ERROR) << "Failed to create surface.";
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.h ('k') | gpu/ipc/service/image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698