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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 13140006: gpu: Fix Vivante's "hisilicon" GPUs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add FBO restore Created 7 years, 8 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 | « no previous file | content/common/gpu/image_transport_surface_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index a1167c9325562791e4ac88a6ddb5d41bf039d8f2..d2fc4bb8878232ef4125fef0b5dddf57d484d5a3 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -507,6 +507,18 @@ void GpuCommandBufferStub::OnInitialize(
return;
}
+ // TODO(epenner): If we can initialize the feature-info earlier,
+ // this code can be removed and done only during surface creation.
+ // This code is only needed for the very first surface, which is
+ // created before the ContextGroup is initialized.
+ if (context_group_->feature_info()->workarounds()
+ .makecurrent_recreates_surfaces) {
+ // This only works with virtual contexts!
+ DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableVirtualGLContexts));
+ surface_->SetRecreateOnMakeCurrent(true);
+ }
+
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableGPUServiceLogging)) {
decoder_->set_log_commands(true);
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698