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

Unified Diff: content/browser/renderer_host/compositing_iosurface_mac.h

Issue 10533098: mac: Improve framerate on accelerated pages in HiDPI mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | content/browser/renderer_host/compositing_iosurface_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositing_iosurface_mac.h
diff --git a/content/browser/renderer_host/compositing_iosurface_mac.h b/content/browser/renderer_host/compositing_iosurface_mac.h
index f224dc0ed115c4af2feb3c7c9f4f4a350ee7578b..adff8be7879943cd916a57b8c3980cf667abda40 100644
--- a/content/browser/renderer_host/compositing_iosurface_mac.h
+++ b/content/browser/renderer_host/compositing_iosurface_mac.h
@@ -54,6 +54,7 @@ class CompositingIOSurfaceMac {
const gfx::Size& pixel_io_surface_size() const {
return pixel_io_surface_size_;
}
+ const gfx::Size& io_surface_size() const { return io_surface_size_; }
jbates 2012/06/12 17:11:13 I think this should be renamed so that it's clear
bool is_vsync_disabled() const { return is_vsync_disabled_; }
@@ -128,7 +129,8 @@ class CompositingIOSurfaceMac {
base::mac::ScopedCFTypeRef<CFTypeRef> io_surface_;
// The width and height of the io surface.
- gfx::Size pixel_io_surface_size_;
+ gfx::Size pixel_io_surface_size_; // In pixels.
+ gfx::Size io_surface_size_; // In view units.
// The "live" OpenGL texture referring to this IOSurfaceRef. Note
// that per the CGLTexImageIOSurface2D API we do not need to
« no previous file with comments | « no previous file | content/browser/renderer_host/compositing_iosurface_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698