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

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

Issue 16431008: TextureImageTransportSurface: Don't recreate the backbuffer on Resize if it's supposed to be discar… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 509298422ce6b25e749c52b2abf6d77c232d3649..34b1d7a63605057c86ccad7fc2d2d448dca11da6 100644
--- a/content/common/gpu/texture_image_transport_surface.cc
+++ b/content/common/gpu/texture_image_transport_surface.cc
@@ -161,7 +161,8 @@ void TextureImageTransportSurface::OnResize(gfx::Size size,
DCHECK_GE(size.height(), 1);
current_size_ = size;
scale_factor_ = scale_factor;
- CreateBackTexture();
+ if (backbuffer_suggested_allocation_)
+ CreateBackTexture();
}
void TextureImageTransportSurface::OnWillDestroyStub() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698