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

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

Issue 12463007: Disable partial swaps for webview guest renderer until we can figure out how to do that properly. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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 a497559583634d1fef31333b1605ce2cf4647126..619979735e7fad9c429fc784a9510f08a3d8c5a3 100644
--- a/content/common/gpu/image_transport_surface_android.cc
+++ b/content/common/gpu/image_transport_surface_android.cc
@@ -17,7 +17,8 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateSurface(
GpuCommandBufferStub* stub,
const gfx::GLSurfaceHandle& handle) {
scoped_refptr<gfx::GLSurface> surface;
- if (handle.transport_type == gfx::TEXTURE_TRANSPORT) {
+ if (handle.transport_type == gfx::TEXTURE_TRANSPORT ||
+ handle.transport_type == gfx::TEXTURE_TRANSPORT_NO_PARTIAL_SWAP) {
surface = new TextureImageTransportSurface(manager, stub, handle);
} else if (handle.transport_type == gfx::NATIVE_DIRECT) {
DCHECK(GpuSurfaceLookup::GetInstance());

Powered by Google App Engine
This is Rietveld 408576698