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

Unified Diff: app/surface/accelerated_surface_mac.h

Issue 4142004: Let every "accelerated IO surface swapped" message have an identifier of the surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 10 years, 2 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
Index: app/surface/accelerated_surface_mac.h
diff --git a/app/surface/accelerated_surface_mac.h b/app/surface/accelerated_surface_mac.h
index a111c1438255840959bb592c48d1c682438fb29b..a43effa50b8e082b2ed93d3449f1fd1d47ec5de0 100644
--- a/app/surface/accelerated_surface_mac.h
+++ b/app/surface/accelerated_surface_mac.h
@@ -58,6 +58,10 @@ class AcceleratedSurface {
// occurred. MakeCurrent() will have been called on the new surface.
uint64 SetSurfaceSize(const gfx::Size& size);
+ // Returns the id of this surface's IOSruface, or 0 for
+ // transport DIB surfaces.
+ uint64 GetSurfaceId();
+
// Sets the GL context to be the current one for drawing. Returns true if
// it succeeded.
bool MakeCurrent();
@@ -131,6 +135,10 @@ class AcceleratedSurface {
// TODO(dspringer,kbr): Should the GPU backing store be encapsulated in its
// own class so all this implementation detail is hidden?
base::mac::ScopedCFTypeRef<CFTypeRef> io_surface_;
+
+ // The id of |io_surface_| or 0 if that's NULL.
+ uint64 io_surface_id_;
+
// TODO(dspringer): If we end up keeping this TransportDIB mechanism, this
// should really be a scoped_ptr_malloc<>, with a deallocate functor that
// runs |dib_free_callback_|. I was not able to figure out how to
« no previous file with comments | « no previous file | app/surface/accelerated_surface_mac.cc » ('j') | chrome/browser/renderer_host/test/test_render_view_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698