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

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

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 | « ui/gfx/surface/accelerated_surface_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/surface/accelerated_surface_win.cc
diff --git a/ui/gfx/surface/accelerated_surface_win.cc b/ui/gfx/surface/accelerated_surface_win.cc
index c3bc154378363fdcb48bfc8673e7f3aee78933f1..5f7330fafcdc0ca76969c66982b003c0e8d4ed7b 100644
--- a/ui/gfx/surface/accelerated_surface_win.cc
+++ b/ui/gfx/surface/accelerated_surface_win.cc
@@ -262,7 +262,7 @@ void AcceleratedSurface::Destroy() {
void AcceleratedSurface::AsyncPresentAndAcknowledge(
const gfx::Size& size,
int64 surface_id,
- base::Closure completion_task) {
+ const base::Closure& completion_task) {
const int kRound = 64;
gfx::Size quantized_size(
std::max(1, (size.width() + kRound - 1) / kRound * kRound),
@@ -429,7 +429,7 @@ void AcceleratedSurface::DoResize(const gfx::Size& size) {
void AcceleratedSurface::DoPresentAndAcknowledge(
const gfx::Size& size,
int64 surface_id,
- base::Closure completion_task) {
+ const base::Closure& completion_task) {
TRACE_EVENT1("surface", "DoPresentAndAcknowledge", "surface_id", surface_id);
HRESULT hr;
« no previous file with comments | « ui/gfx/surface/accelerated_surface_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698