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

Unified Diff: blimp/client/feature/compositor/blimp_context_provider.cc

Issue 2242653002: blimp: Make Blimp client use a Display for compositing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blimpdisplay: . Created 4 years, 4 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: blimp/client/feature/compositor/blimp_context_provider.cc
diff --git a/blimp/client/feature/compositor/blimp_context_provider.cc b/blimp/client/feature/compositor/blimp_context_provider.cc
index a87aeef522f8c80efd76c2e676a0aa5ba3b52c8b..8c68d7b9b957b7a060788544f76756f3903aaa3b 100644
--- a/blimp/client/feature/compositor/blimp_context_provider.cc
+++ b/blimp/client/feature/compositor/blimp_context_provider.cc
@@ -42,10 +42,10 @@ BlimpContextProvider::BlimpContextProvider(
attribs_for_gles2.lose_context_when_out_of_memory = true;
context_.reset(gpu::GLInProcessContext::Create(
- nullptr /* service */, nullptr /* surface */, false /* is_offscreen */,
- widget, nullptr /* share_context */, attribs_for_gles2,
- gpu::SharedMemoryLimits(), gpu_memory_buffer_manager,
- nullptr /* memory_limits */));
+ nullptr /* service */, nullptr /* surface */,
+ widget == gfx::kNullAcceleratedWidget /* is_offscreen */, widget,
+ nullptr /* share_context */, attribs_for_gles2, gpu::SharedMemoryLimits(),
+ gpu_memory_buffer_manager, nullptr /* memory_limits */));
context_->GetImplementation()->SetLostContextCallback(
base::Bind(&BlimpContextProvider::OnLostContext, base::Unretained(this)));
}

Powered by Google App Engine
This is Rietveld 408576698