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

Side by Side Diff: gpu/ipc/gl_in_process_context.h

Issue 2529703002: Mus: Install SwapBuffersCompleted/VSync callbacks to DirectOutputSurface(Ozone) (Closed)
Patch Set: Grab capabilities from the InProcessCommandBuffer instead of making them up Created 4 years 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
« no previous file with comments | « cc/output/in_process_context_provider.cc ('k') | gpu/ipc/gl_in_process_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_IPC_GL_IN_PROCESS_CONTEXT_H_ 5 #ifndef GPU_IPC_GL_IN_PROCESS_CONTEXT_H_
6 #define GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ 6 #define GPU_IPC_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 scoped_refptr<gl::GLSurface> surface, 52 scoped_refptr<gl::GLSurface> surface,
53 bool is_offscreen, 53 bool is_offscreen,
54 SurfaceHandle window, 54 SurfaceHandle window,
55 GLInProcessContext* share_context, 55 GLInProcessContext* share_context,
56 const gpu::gles2::ContextCreationAttribHelper& attribs, 56 const gpu::gles2::ContextCreationAttribHelper& attribs,
57 const SharedMemoryLimits& memory_limits, 57 const SharedMemoryLimits& memory_limits,
58 GpuMemoryBufferManager* gpu_memory_buffer_manager, 58 GpuMemoryBufferManager* gpu_memory_buffer_manager,
59 ImageFactory* image_factory, 59 ImageFactory* image_factory,
60 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 60 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
61 61
62 virtual gpu::Capabilities GetCapabilities() = 0;
63
62 // Allows direct access to the GLES2 implementation so a GLInProcessContext 64 // Allows direct access to the GLES2 implementation so a GLInProcessContext
63 // can be used without making it current. 65 // can be used without making it current.
64 virtual gles2::GLES2Implementation* GetImplementation() = 0; 66 virtual gles2::GLES2Implementation* GetImplementation() = 0;
65 67
66 virtual void SetLock(base::Lock* lock) = 0; 68 virtual void SetLock(base::Lock* lock) = 0;
67 69
68 virtual void SetSwapBuffersCompletionCallback( 70 virtual void SetSwapBuffersCompletionCallback(
69 const gpu::InProcessCommandBuffer::SwapBuffersCompletionCallback& 71 const gpu::InProcessCommandBuffer::SwapBuffersCompletionCallback&
70 callback) = 0; 72 callback) = 0;
71 73
72 virtual void SetUpdateVSyncParametersCallback( 74 virtual void SetUpdateVSyncParametersCallback(
73 const gpu::InProcessCommandBuffer::UpdateVSyncParametersCallback& 75 const gpu::InProcessCommandBuffer::UpdateVSyncParametersCallback&
74 callback) = 0; 76 callback) = 0;
75 }; 77 };
76 78
77 } // namespace gpu 79 } // namespace gpu
78 80
79 #endif // GPU_IPC_GL_IN_PROCESS_CONTEXT_H_ 81 #endif // GPU_IPC_GL_IN_PROCESS_CONTEXT_H_
OLDNEW
« no previous file with comments | « cc/output/in_process_context_provider.cc ('k') | gpu/ipc/gl_in_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698