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

Unified Diff: content/common/gpu/image_transport_surface_win.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_win.cc
diff --git a/content/common/gpu/image_transport_surface_win.cc b/content/common/gpu/image_transport_surface_win.cc
index 479eeb463d3aa20f6f617c992a16f70e70f60391..1b37e45aa51b64b6620a13f111e5f9093e5129d5 100644
--- a/content/common/gpu/image_transport_surface_win.cc
+++ b/content/common/gpu/image_transport_surface_win.cc
@@ -239,7 +239,8 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateSurface(
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) {
// If we don't have a valid handle with the transport flag set, then we're
// coming from a renderer and we want to render the webpage contents to a
// texture.

Powered by Google App Engine
This is Rietveld 408576698