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

Unified Diff: content/renderer/gpu/renderer_gl_context.h

Issue 7762013: Added GPU process "echo" IPC message. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « content/renderer/gpu/command_buffer_proxy.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/renderer_gl_context.h
===================================================================
--- content/renderer/gpu/renderer_gl_context.h (revision 98655)
+++ content/renderer/gpu/renderer_gl_context.h (working copy)
@@ -22,6 +22,7 @@
class MessageLoop;
class CommandBufferProxy;
class GURL;
+class Task;
class TransportTextureHost;
namespace gpu {
@@ -140,10 +141,6 @@
// Deletes a texture in the parent's RendererGLContext.
void DeleteParentTexture(uint32 texture);
- // Provides a callback that will be invoked when SwapBuffers has completed
- // service side.
- void SetSwapBuffersCallback(Callback0::Type* callback);
-
void SetContextLostCallback(Callback1<ContextLostReason>::Type* callback);
// Set the current RendererGLContext for the calling thread.
@@ -155,6 +152,10 @@
// by the parent RendererGLContext.
bool SwapBuffers();
+ // Run the task once the channel has been flushed. Takes care of deleting the
+ // task whether the echo succeeds or not.
+ bool Echo(Task* task);
+
// Create a TransportTextureHost object associated with the context.
scoped_refptr<TransportTextureHost> CreateTransportTextureHost();
@@ -186,12 +187,10 @@
const GURL& active_url);
void Destroy();
- void OnSwapBuffers();
void OnContextLost();
scoped_refptr<GpuChannelHost> channel_;
base::WeakPtr<RendererGLContext> parent_;
- scoped_ptr<Callback0::Type> swap_buffers_callback_;
scoped_ptr<Callback1<ContextLostReason>::Type> context_lost_callback_;
uint32 parent_texture_id_;
CommandBufferProxy* command_buffer_;
« no previous file with comments | « content/renderer/gpu/command_buffer_proxy.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698