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

Unified Diff: gpu/command_buffer/service/gpu_scheduler.h

Issue 6982060: Plumbing: Cache the resize callback so that we can call it later. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 | « no previous file | 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
diff --git a/gpu/command_buffer/service/gpu_scheduler.h b/gpu/command_buffer/service/gpu_scheduler.h
index b49713f0381c43690a268a0f42d0ec09a96b77ce..7f747345c5366379612ca05beb8a10e79a595f91 100644
--- a/gpu/command_buffer/service/gpu_scheduler.h
+++ b/gpu/command_buffer/service/gpu_scheduler.h
@@ -160,6 +160,10 @@ class GpuScheduler : public CommandBufferEngine {
void ScheduleProcessCommands();
// Called via a callback just before we are supposed to call the
+ // user's resize callback.
+ void WillResize(gfx::Size size);
+
+ // Called via a callback just before we are supposed to call the
// user's swap buffers callback.
void WillSwapBuffers();
void ProcessCommands();
@@ -186,6 +190,7 @@ class GpuScheduler : public CommandBufferEngine {
#endif
ScopedRunnableMethodFactory<GpuScheduler> method_factory_;
+ scoped_ptr<Callback1<gfx::Size>::Type> wrapped_resize_callback_;
scoped_ptr<Callback0::Type> wrapped_swap_buffers_callback_;
scoped_ptr<Callback0::Type> command_processed_callback_;
};
« no previous file with comments | « no previous file | gpu/command_buffer/service/gpu_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698