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

Unified Diff: gpu/command_buffer/service/gpu_scheduler.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 | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gpu_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_scheduler.h
===================================================================
--- gpu/command_buffer/service/gpu_scheduler.h (revision 98655)
+++ gpu/command_buffer/service/gpu_scheduler.h (working copy)
@@ -127,17 +127,17 @@
virtual uint64 GetSurfaceId();
void DidDestroySurface();
+
+ // Sets a callback which is called when a SwapBuffers command is processed.
+ // Must be called after Initialize().
+ // It is not defined on which thread this callback is called.
+ void SetSwapBuffersCallback(Callback0::Type* callback);
#endif
// Sets a callback that is called when a glResizeCHROMIUM command
// is processed.
void SetResizeCallback(Callback1<gfx::Size>::Type* callback);
- // Sets a callback which is called when a SwapBuffers command is processed.
- // Must be called after Initialize().
- // It is not defined on which thread this callback is called.
- void SetSwapBuffersCallback(Callback0::Type* callback);
-
void SetCommandProcessedCallback(Callback0::Type* callback);
// Get the GLES2Decoder associated with this scheduler.
@@ -149,9 +149,11 @@
gles2::GLES2Decoder* decoder,
CommandParser* parser);
+#if defined(OS_MACOSX)
// Called via a callback just before we are supposed to call the
// user's swap buffers callback.
void WillSwapBuffers();
+#endif
// The GpuScheduler holds a weak reference to the CommandBuffer. The
// CommandBuffer owns the GpuScheduler and holds a strong reference to it
@@ -170,10 +172,10 @@
uint64 swap_buffers_count_;
uint64 acknowledged_swap_buffers_count_;
scoped_ptr<AcceleratedSurface> surface_;
+ scoped_ptr<Callback0::Type> wrapped_swap_buffers_callback_;
#endif
ScopedRunnableMethodFactory<GpuScheduler> method_factory_;
- scoped_ptr<Callback0::Type> wrapped_swap_buffers_callback_;
scoped_ptr<Callback0::Type> command_processed_callback_;
};
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/gpu_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698