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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 2106103005: Revert of Pass initial size and GPU preference via context attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: gpu/command_buffer/service/in_process_command_buffer.h
diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
index 78fb199bd39c54d3d5cbf1b546ab40fc0f70e2c1..0a080330fb9e21ce71f5698ed20325774ce23945 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -84,7 +84,9 @@
bool Initialize(scoped_refptr<gl::GLSurface> surface,
bool is_offscreen,
gfx::AcceleratedWidget window,
+ const gfx::Size& size,
const gles2::ContextCreationAttribHelper& attribs,
+ gl::GpuPreference gpu_preference,
InProcessCommandBuffer* share_group,
GpuMemoryBufferManager* gpu_memory_buffer_manager,
ImageFactory* image_factory);
@@ -171,7 +173,9 @@
struct InitializeOnGpuThreadParams {
bool is_offscreen;
gfx::AcceleratedWidget window;
+ const gfx::Size& size;
const gles2::ContextCreationAttribHelper& attribs;
+ gl::GpuPreference gpu_preference;
gpu::Capabilities* capabilities; // Ouptut.
InProcessCommandBuffer* context_group;
ImageFactory* image_factory;
@@ -179,13 +183,17 @@
InitializeOnGpuThreadParams(
bool is_offscreen,
gfx::AcceleratedWidget window,
+ const gfx::Size& size,
const gles2::ContextCreationAttribHelper& attribs,
+ gl::GpuPreference gpu_preference,
gpu::Capabilities* capabilities,
InProcessCommandBuffer* share_group,
ImageFactory* image_factory)
: is_offscreen(is_offscreen),
window(window),
+ size(size),
attribs(attribs),
+ gpu_preference(gpu_preference),
capabilities(capabilities),
context_group(share_group),
image_factory(image_factory) {}
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698