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

Unified Diff: gpu/ipc/gl_in_process_context.h

Issue 2498053004: Add InProcessContextProvider and update InProcessCommandBuffer (Closed)
Patch Set: Revert experiments and fix android_webview Created 4 years, 1 month 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/ipc/client/gpu_in_process_context_tests.cc ('k') | gpu/ipc/gl_in_process_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/gl_in_process_context.h
diff --git a/gpu/ipc/gl_in_process_context.h b/gpu/ipc/gl_in_process_context.h
index e03363f3acad48bfdf5a330b6a4ce4ab7d28d8a3..83aeb09cb1cefc1da022c4af191737f7d86d0d39 100644
--- a/gpu/ipc/gl_in_process_context.h
+++ b/gpu/ipc/gl_in_process_context.h
@@ -28,6 +28,7 @@ class SurfaceTexture;
#endif
namespace gpu {
+class InProcessCommandBuffer;
struct SharedMemoryLimits;
namespace gles2 {
@@ -50,7 +51,7 @@ class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext {
scoped_refptr<gpu::InProcessCommandBuffer::Service> service,
scoped_refptr<gl::GLSurface> surface,
bool is_offscreen,
- gfx::AcceleratedWidget window,
+ SurfaceHandle window,
GLInProcessContext* share_context,
const gpu::gles2::ContextCreationAttribHelper& attribs,
const SharedMemoryLimits& memory_limits,
@@ -63,6 +64,14 @@ class GL_IN_PROCESS_CONTEXT_EXPORT GLInProcessContext {
virtual gles2::GLES2Implementation* GetImplementation() = 0;
virtual void SetLock(base::Lock* lock) = 0;
+
+ virtual void SetSwapBuffersCompletionCallback(
+ const gpu::InProcessCommandBuffer::SwapBuffersCompletionCallback&
+ callback) = 0;
+
+ virtual void SetUpdateVSyncParametersCallback(
+ const gpu::InProcessCommandBuffer::UpdateVSyncParametersCallback&
+ callback) = 0;
};
} // namespace gpu
« no previous file with comments | « gpu/ipc/client/gpu_in_process_context_tests.cc ('k') | gpu/ipc/gl_in_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698