summaryrefslogtreecommitdiffstats
path: root/ui/gfx/surface/accelerated_surface_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/surface/accelerated_surface_win.h')
-rw-r--r--ui/gfx/surface/accelerated_surface_win.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gfx/surface/accelerated_surface_win.h b/ui/gfx/surface/accelerated_surface_win.h
index d1fe069..5f2dd32 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_;