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

Unified Diff: app/surface/accelerated_surface_mac.cc

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.cc
diff --git a/app/surface/accelerated_surface_mac.cc b/app/surface/accelerated_surface_mac.cc
index c081f4dcb251cdd20d7aae11428df17a8ee99177..dfe92811d487bc3eabff5ac2d2b8f949a847a69a 100644
--- a/app/surface/accelerated_surface_mac.cc
+++ b/app/surface/accelerated_surface_mac.cc
@@ -12,7 +12,8 @@
#include "gfx/rect.h"
AcceleratedSurface::AcceleratedSurface()
- : allocate_fbo_(false),
+ : io_surface_id_(0),
+ allocate_fbo_(false),
texture_(0),
fbo_(0),
depth_stencil_renderbuffer_(0) {
@@ -266,7 +267,12 @@ uint64 AcceleratedSurface::SetSurfaceSize(const gfx::Size& size) {
// make our IOSurfaces global and send back their identifiers. On
// the browser process side the identifier is reconstituted into an
// IOSurface for on-screen rendering.
- return io_surface_support->IOSurfaceGetID(io_surface_);
+ io_surface_id_ = io_surface_support->IOSurfaceGetID(io_surface_);
+ return io_surface_id_;
+}
+
+uint64 AcceleratedSurface::GetSurfaceId() {
+ return io_surface_id_;
}
TransportDIB::Handle AcceleratedSurface::SetTransportDIBSize(

Powered by Google App Engine
This is Rietveld 408576698