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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 10533098: mac: Improve framerate on accelerated pages in HiDPI mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 8 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 | « content/browser/renderer_host/compositing_iosurface_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index b48ba3c1c5f8c898ef3a929c292b38640e3175e4..aeaba7fabde3c16eab630e1811f276ac17f4d01a 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1088,13 +1088,11 @@ void RenderWidgetHostViewMac::AcceleratedSurfaceSuspend() {
bool RenderWidgetHostViewMac::HasAcceleratedSurface(
const gfx::Size& desired_size) {
- // TODO: What coordinates is desired_size in? Should it be
- // compared to the pixel or logical size of compositing_iosurface_?
return last_frame_was_accelerated_ &&
compositing_iosurface_.get() &&
compositing_iosurface_->HasIOSurface() &&
(desired_size.IsEmpty() ||
- compositing_iosurface_->pixel_io_surface_size() == desired_size);
+ compositing_iosurface_->io_surface_size() == desired_size);
}
void RenderWidgetHostViewMac::AboutToWaitForBackingStoreMsg() {
« no previous file with comments | « content/browser/renderer_host/compositing_iosurface_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698