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

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

Issue 15689003: Part 3/3 (RWH/IOSurface) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missed lines 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
Index: content/common/gpu/image_transport_surface_mac.cc
diff --git a/content/common/gpu/image_transport_surface_mac.cc b/content/common/gpu/image_transport_surface_mac.cc
index c27e47ae950a03ba167b4e27ebb38dd77b3211d2..23ed2504b4d7473edab715567b76d5c5416db23f 100644
--- a/content/common/gpu/image_transport_surface_mac.cc
+++ b/content/common/gpu/image_transport_surface_mac.cc
@@ -130,7 +130,7 @@ IOSurfaceImageTransportSurface::IOSurfaceImageTransportSurface(
texture_id_(0),
io_surface_handle_(0),
context_(NULL),
- scale_factor_(1),
+ scale_factor_(1.f),
made_current_(false),
is_swap_buffers_pending_(false),
did_unschedule_(false) {
@@ -233,6 +233,7 @@ bool IOSurfaceImageTransportSurface::SwapBuffers() {
GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params;
params.surface_handle = io_surface_handle_;
params.size = GetSize();
+ params.scale_factor = scale_factor_;
params.latency_info = latency_info_;
helper_->SendAcceleratedSurfaceBuffersSwapped(params);
@@ -255,6 +256,7 @@ bool IOSurfaceImageTransportSurface::PostSubBuffer(
params.width = width;
params.height = height;
params.surface_size = GetSize();
+ params.surface_scale_factor = scale_factor_;
params.latency_info = latency_info_;
helper_->SendAcceleratedSurfacePostSubBuffer(params);

Powered by Google App Engine
This is Rietveld 408576698