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

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

Issue 1716813002: Use GpuPreferences to avoid directly accessing switches in gpu related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 10 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/gles2_conform_support/egl/context.cc
diff --git a/gpu/gles2_conform_support/egl/context.cc b/gpu/gles2_conform_support/egl/context.cc
index 47ae35fab0467d1eb7630de37dff29bd6a6494df..3064e8f04d7cd1a3a8162efa6bbdb2e542e94184 100644
--- a/gpu/gles2_conform_support/egl/context.cc
+++ b/gpu/gles2_conform_support/egl/context.cc
@@ -255,7 +255,8 @@ bool Context::CreateService(gfx::GLSurface* gl_surface) {
return false;
scoped_refptr<gpu::gles2::ContextGroup> group(new gpu::gles2::ContextGroup(
- NULL, NULL, new gpu::gles2::ShaderTranslatorCache,
+ display_->gpu_preferences(), NULL, NULL,
+ new gpu::gles2::ShaderTranslatorCache(display_->gpu_preferences()),
new gpu::gles2::FramebufferCompletenessCache, NULL, NULL, NULL, true));
scoped_ptr<gpu::gles2::GLES2Decoder> decoder(

Powered by Google App Engine
This is Rietveld 408576698