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

Unified Diff: ui/gfx/surface/accelerated_surface_win.h

Issue 8699008: Use callback_forward.h instead of callback.h where possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove callback_forward.h, which was committed as part of a separate CL. Created 9 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 | « media/base/mock_reader.h ('k') | ui/gfx/surface/accelerated_surface_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/surface/accelerated_surface_win.h
diff --git a/ui/gfx/surface/accelerated_surface_win.h b/ui/gfx/surface/accelerated_surface_win.h
index d1fe0699beff84a7d22b84bead989131691e3aca..5f2dd32ef95bb8e957e023dbf84a554e0f0f7108 100644
--- a/ui/gfx/surface/accelerated_surface_win.h
+++ b/ui/gfx/surface/accelerated_surface_win.h
@@ -8,7 +8,7 @@
#include <d3d9.h>
-#include "base/callback.h"
+#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop_proxy.h"
#include "base/synchronization/lock.h"
@@ -31,7 +31,7 @@ class SURFACE_EXPORT AcceleratedSurface
// this surface will be held while the completion callback runs.
void AsyncPresentAndAcknowledge(const gfx::Size& size,
int64 surface_id,
- base::Closure completion_task);
+ const base::Closure& completion_task);
// Synchronously present a frame with no acknowledgement.
void Present();
@@ -43,7 +43,7 @@ class SURFACE_EXPORT AcceleratedSurface
void DoResize(const gfx::Size& size);
void DoPresentAndAcknowledge(const gfx::Size& size,
int64 surface_id,
- base::Closure completion_task);
+ const base::Closure& completion_task);
// Immutable and accessible from any thread without the lock.
const int thread_affinity_;
« no previous file with comments | « media/base/mock_reader.h ('k') | ui/gfx/surface/accelerated_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698