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

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

Issue 8601002: base::Bind fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « content/plugin/webplugin_proxy.cc ('k') | ui/gfx/surface/accelerated_surface_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/surface/accelerated_surface_mac.h
diff --git a/ui/gfx/surface/accelerated_surface_mac.h b/ui/gfx/surface/accelerated_surface_mac.h
index 0e29ae53b1d630e413fd9f64a1946a1066f175b6..83c95d67c758e4b809a3317fb8e7862de66d6355 100644
--- a/ui/gfx/surface/accelerated_surface_mac.h
+++ b/ui/gfx/surface/accelerated_surface_mac.h
@@ -8,7 +8,7 @@
#include <CoreFoundation/CoreFoundation.h>
-#include "base/callback_old.h"
+#include "base/bind.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/memory/scoped_ptr.h"
#include "ui/gfx/gl/gl_context.h"
@@ -112,8 +112,8 @@ class SURFACE_EXPORT AcceleratedSurface {
// Sets the methods to use for allocating and freeing memory for the
// transport DIB.
void SetTransportDIBAllocAndFree(
- Callback2<size_t, TransportDIB::Handle*>::Type* allocator,
- Callback1<TransportDIB::Id>::Type* deallocator);
+ const base::Callback<void(size_t, TransportDIB::Handle*)>& allocator,
+ const base::Callback<void(TransportDIB::Id)>& deallocator);
// Get the accelerated surface size.
gfx::Size GetSize() const { return surface_size_; }
@@ -175,9 +175,8 @@ class SURFACE_EXPORT AcceleratedSurface {
GLuint fbo_;
GLuint depth_stencil_renderbuffer_;
// Allocate a TransportDIB in the renderer.
- scoped_ptr<Callback2<size_t, TransportDIB::Handle*>::Type>
- dib_alloc_callback_;
- scoped_ptr<Callback1<TransportDIB::Id>::Type> dib_free_callback_;
+ base::Callback<void(size_t, TransportDIB::Handle*)> dib_alloc_callback_;
+ base::Callback<void(TransportDIB::Id)> dib_free_callback_;
};
#endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_MAC_H_
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | ui/gfx/surface/accelerated_surface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698