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

Unified Diff: content/common/gpu/texture_image_transport_surface.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/texture_image_transport_surface.cc
diff --git a/content/common/gpu/texture_image_transport_surface.cc b/content/common/gpu/texture_image_transport_surface.cc
index a40b60df36e7bc9c505f4483869a54e395342d41..ea05e4aa58f2648953e5e061cebfa3223d31344d 100644
--- a/content/common/gpu/texture_image_transport_surface.cc
+++ b/content/common/gpu/texture_image_transport_surface.cc
@@ -278,7 +278,8 @@ std::string TextureImageTransportSurface::GetExtensions() {
std::string extensions = gfx::GLSurface::GetExtensions();
extensions += extensions.empty() ? "" : " ";
extensions += "GL_CHROMIUM_front_buffer_cached ";
- extensions += "GL_CHROMIUM_post_sub_buffer";
+ if (handle_.transport_type != gfx::TEXTURE_TRANSPORT_NO_PARTIAL_SWAP)
+ extensions += "GL_CHROMIUM_post_sub_buffer";
return extensions;
}

Powered by Google App Engine
This is Rietveld 408576698