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

Unified Diff: gpu/gles2_conform_support/egl/display.cc

Issue 1871613002: Compute GpuDriverBugWorkarounds only one time in the GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 | « gpu/gles2_conform_support/egl/display.h ('k') | gpu/gpu_config.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/display.cc
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc
index a19718b4c35e8c5a0030314a4d2a6e6eeac3d857..a52d656924f4230decdf49048ed5fdb9f32cbc8a 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -11,6 +11,7 @@
#include "base/at_exit.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/gles2_lib.h"
@@ -69,6 +70,7 @@ void ReleaseAtExitManager() {
Display::Display(EGLNativeDisplayType display_id)
: display_id_(display_id),
+ gpu_driver_bug_workarounds_(base::CommandLine::ForCurrentProcess()),
is_initialized_(false),
create_offscreen_(false),
create_offscreen_width_(0),
@@ -165,10 +167,13 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config,
if (!command_buffer->Initialize())
return NULL;
+ scoped_refptr<gpu::gles2::FeatureInfo> feature_info(
+ new gpu::gles2::FeatureInfo(gpu_driver_bug_workarounds_));
scoped_refptr<gpu::gles2::ContextGroup> group(new gpu::gles2::ContextGroup(
gpu_preferences_, NULL, NULL,
new gpu::gles2::ShaderTranslatorCache(gpu_preferences_),
- new gpu::gles2::FramebufferCompletenessCache, NULL, NULL, NULL, true));
+ new gpu::gles2::FramebufferCompletenessCache, feature_info, NULL, NULL,
+ true));
decoder_.reset(gpu::gles2::GLES2Decoder::Create(group.get()));
if (!decoder_.get())
« no previous file with comments | « gpu/gles2_conform_support/egl/display.h ('k') | gpu/gpu_config.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698