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

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

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
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 0a080330fb9e21ce71f5698ed20325774ce23945..78fb199bd39c54d3d5cbf1b546ab40fc0f70e2c1 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -84,9 +84,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
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);
@@ -173,9 +171,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
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;
@@ -183,17 +179,13 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
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