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

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

Issue 2107783003: Pass initial size and GPU preference via context attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp fix Created 4 years, 6 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/command_buffer/tests/gl_manager.cc ('k') | gpu/ipc/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ec625f122ede18bbd7955c40704d944eb7710d8f..4d7a6098855583a99d3a2ff9261597a76b6d5458 100644
--- a/gpu/gles2_conform_support/egl/context.cc
+++ b/gpu/gles2_conform_support/egl/context.cc
@@ -295,9 +295,10 @@ bool Context::CreateService(gl::GLSurface* gl_surface) {
helper.fail_if_major_perf_caveat = false;
helper.lose_context_when_out_of_memory = kLoseContextWhenOutOfMemory;
helper.context_type = gpu::gles2::CONTEXT_TYPE_OPENGLES2;
+ helper.offscreen_framebuffer_size = gl_surface->GetSize();
if (!decoder->Initialize(gl_surface, gl_context.get(),
- gl_surface->IsOffscreen(), gl_surface->GetSize(),
+ gl_surface->IsOffscreen(),
gpu::gles2::DisallowedFeatures(), helper)) {
return false;
}
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/ipc/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698