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

Unified Diff: content/common/gpu/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/image_transport_surface.h ('k') | content/common/gpu/image_transport_surface_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/image_transport_surface.cc
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
index f8f07421d5d820e4699f326e3c73d6272ffbe769..6775a29a3086f69a3d31082c2858d18eb85eba00 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -191,8 +191,8 @@ void ImageTransportHelper::OnResizeViewACK() {
surface_->OnResizeViewACK();
}
-void ImageTransportHelper::Resize(gfx::Size size) {
- surface_->OnResize(size);
+void ImageTransportHelper::Resize(gfx::Size size, float scale_factor) {
+ surface_->OnResize(size, scale_factor);
#if defined(OS_ANDROID)
manager_->gpu_memory_manager()->ScheduleManage(
@@ -326,7 +326,8 @@ void PassThroughImageTransportSurface::OnResizeViewACK() {
helper_->SetScheduled(true);
}
-void PassThroughImageTransportSurface::OnResize(gfx::Size size) {
+void PassThroughImageTransportSurface::OnResize(gfx::Size size,
+ float scale_factor) {
new_size_ = size;
if (transport_) {
« no previous file with comments | « content/common/gpu/image_transport_surface.h ('k') | content/common/gpu/image_transport_surface_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698