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

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

Issue 15685003: Part 2/3 (GL) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-resolve against head Created 7 years, 7 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 | « content/common/gpu/texture_image_transport_surface.h ('k') | gpu/GLES2/gl2extchromium.h » ('j') | 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 858c023f700b9aaa2ba35f74f83cf4bdccfe7b27..eb419bc89b8ffc33da22a823802c02a5d58f6176 100644
--- a/content/common/gpu/texture_image_transport_surface.cc
+++ b/content/common/gpu/texture_image_transport_surface.cc
@@ -31,6 +31,7 @@ TextureImageTransportSurface::TextureImageTransportSurface(
const gfx::GLSurfaceHandle& handle)
: fbo_id_(0),
backbuffer_(CreateTextureDefinition(gfx::Size(), 0)),
+ scale_factor_(1.f),
stub_destroyed_(false),
backbuffer_suggested_allocation_(true),
frontbuffer_suggested_allocation_(true),
@@ -168,8 +169,10 @@ void* TextureImageTransportSurface::GetConfig() {
return surface_.get() ? surface_->GetConfig() : NULL;
}
-void TextureImageTransportSurface::OnResize(gfx::Size size) {
+void TextureImageTransportSurface::OnResize(gfx::Size size,
+ float scale_factor) {
current_size_ = size;
+ scale_factor_ = scale_factor;
CreateBackTexture();
}
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.h ('k') | gpu/GLES2/gl2extchromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698