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

Unified Diff: gpu/ipc/in_process_command_buffer.cc

Issue 2616723002: Refactor GL surface format handling (Closed)
Patch Set: Fix copyright notice on new files Created 3 years, 11 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/command_buffer/tests/gl_dynamic_config_unittest.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/in_process_command_buffer.cc
diff --git a/gpu/ipc/in_process_command_buffer.cc b/gpu/ipc/in_process_command_buffer.cc
index bc3c0eda69d6c2b130980b95bee03c4cc0168cda..1b7fd65d1ed7df29939f9714b003dbccefb2cdf6 100644
--- a/gpu/ipc/in_process_command_buffer.cc
+++ b/gpu/ipc/in_process_command_buffer.cc
@@ -332,8 +332,8 @@ bool InProcessCommandBuffer::InitializeOnGpuThread(
} else {
surface_ = ImageTransportSurface::CreateNativeSurface(
gpu_thread_weak_ptr_factory_.GetWeakPtr(), params.window,
- gl::GLSurface::SURFACE_DEFAULT);
- if (!surface_ || !surface_->Initialize(gl::GLSurface::SURFACE_DEFAULT)) {
+ gl::GLSurfaceFormat());
+ if (!surface_ || !surface_->Initialize(gl::GLSurfaceFormat())) {
surface_ = nullptr;
DLOG(ERROR) << "Failed to create surface.";
return false;
« no previous file with comments | « gpu/command_buffer/tests/gl_dynamic_config_unittest.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698