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

Side by Side Diff: gpu/command_buffer/client/gl_in_process_context.h

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)
Patch Set: feedback Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // to correctly create a surface. 48 // to correctly create a surface.
49 static GLInProcessContext* Create( 49 static GLInProcessContext* Create(
50 scoped_refptr<gpu::InProcessCommandBuffer::Service> service, 50 scoped_refptr<gpu::InProcessCommandBuffer::Service> service,
51 scoped_refptr<gl::GLSurface> surface, 51 scoped_refptr<gl::GLSurface> surface,
52 bool is_offscreen, 52 bool is_offscreen,
53 gfx::AcceleratedWidget window, 53 gfx::AcceleratedWidget window,
54 GLInProcessContext* share_context, 54 GLInProcessContext* share_context,
55 const gpu::gles2::ContextCreationAttribHelper& attribs, 55 const gpu::gles2::ContextCreationAttribHelper& attribs,
56 const SharedMemoryLimits& memory_limits, 56 const SharedMemoryLimits& memory_limits,
57 GpuMemoryBufferManager* gpu_memory_buffer_manager, 57 GpuMemoryBufferManager* gpu_memory_buffer_manager,
58 ImageFactory* image_factory); 58 ImageFactory* image_factory,
59 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
59 60
60 // Allows direct access to the GLES2 implementation so a GLInProcessContext 61 // Allows direct access to the GLES2 implementation so a GLInProcessContext
61 // can be used without making it current. 62 // can be used without making it current.
62 virtual gles2::GLES2Implementation* GetImplementation() = 0; 63 virtual gles2::GLES2Implementation* GetImplementation() = 0;
63 64
64 virtual void SetLock(base::Lock* lock) = 0; 65 virtual void SetLock(base::Lock* lock) = 0;
65 }; 66 };
66 67
67 } // namespace gpu 68 } // namespace gpu
68 69
69 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 70 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.cc ('k') | gpu/command_buffer/client/gl_in_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698