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

Unified Diff: gpu/ipc/in_process_command_buffer.cc

Issue 2616723002: Refactor GL surface format handling (Closed)
Patch Set: Add underscores to private attributes 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
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;

Powered by Google App Engine
This is Rietveld 408576698