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

Unified Diff: content/common/gpu/image_transport_surface_android.cc

Issue 256713002: Remove 'transport' paths from PassThroughImageTransportSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: content/common/gpu/image_transport_surface_android.cc
diff --git a/content/common/gpu/image_transport_surface_android.cc b/content/common/gpu/image_transport_surface_android.cc
index c5ea3b3b44f726ed462e83e0b9e6ce6588cfc91f..ba3a12d2e53be16616f14669f9867c94b5436e51 100644
--- a/content/common/gpu/image_transport_surface_android.cc
+++ b/content/common/gpu/image_transport_surface_android.cc
@@ -60,8 +60,7 @@ class DirectSurfaceAndroid : public PassThroughImageTransportSurface {
public:
DirectSurfaceAndroid(GpuChannelManager* manager,
GpuCommandBufferStub* stub,
- gfx::GLSurface* surface,
- bool transport);
+ gfx::GLSurface* surface);
// gfx::GLSurface implementation.
virtual bool SwapBuffers() OVERRIDE;
@@ -78,7 +77,7 @@ ImageTransportSurfaceAndroid::ImageTransportSurfaceAndroid(
GpuCommandBufferStub* stub,
gfx::GLSurface* surface,
uint32 parent_client_id)
- : PassThroughImageTransportSurface(manager, stub, surface, true),
piman 2014/04/25 05:41:14 This is the only one that was setting it to true.
no sievers 2014/04/25 17:51:00 Should be fine. We don't expect glSwapBuffers() or
+ : PassThroughImageTransportSurface(manager, stub, surface),
parent_client_id_(parent_client_id) {}
ImageTransportSurfaceAndroid::~ImageTransportSurfaceAndroid() {}
@@ -148,9 +147,8 @@ void ImageTransportSurfaceAndroid::DoWakeUpGpu() {
DirectSurfaceAndroid::DirectSurfaceAndroid(GpuChannelManager* manager,
GpuCommandBufferStub* stub,
- gfx::GLSurface* surface,
- bool transport)
- : PassThroughImageTransportSurface(manager, stub, surface, transport) {}
+ gfx::GLSurface* surface)
+ : PassThroughImageTransportSurface(manager, stub, surface) {}
DirectSurfaceAndroid::~DirectSurfaceAndroid() {}
@@ -188,7 +186,7 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateNativeSurface(
return scoped_refptr<gfx::GLSurface>();
return scoped_refptr<gfx::GLSurface>(
- new DirectSurfaceAndroid(manager, stub, surface.get(), false));
+ new DirectSurfaceAndroid(manager, stub, surface.get()));
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698