summaryrefslogtreecommitdiffstats
path: root/app/surface/io_surface_support_mac.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-05 18:07:26 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-05 18:07:26 +0000
commitebb090d01ffa509095e49d78f28574b8ed6cb669 (patch)
tree7d009277cc82c36cf206b3298a92005e1821d950 /app/surface/io_surface_support_mac.h
parent52d60bf31bf6243338d96d8c87158f3a3216c51e (diff)
downloadchromium_src-ebb090d01ffa509095e49d78f28574b8ed6cb669.zip
chromium_src-ebb090d01ffa509095e49d78f28574b8ed6cb669.tar.gz
chromium_src-ebb090d01ffa509095e49d78f28574b8ed6cb669.tar.bz2
Mac/gpu: Don't show uninitialized surfaces while resizing plugins / composited tabs.
BUG=53165 TEST=Go to http://webkit.org/blog/386/3d-transforms/. Resize window. Watch a youtube video click the "make bigger" button. No garbage should appear. There are still some funky artifacts at the top/right border during resizing caused by clamping the texture instead of filling with white, and sometimes (rarely) the tab flashes black/white but I'd like to tackle that in follow-up CLs. This is already much better than what's in the tree currently. Review URL: http://codereview.chromium.org/4101002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/surface/io_surface_support_mac.h')
-rw-r--r--app/surface/io_surface_support_mac.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/surface/io_surface_support_mac.h b/app/surface/io_surface_support_mac.h
index 10c09cf..82dccca 100644
--- a/app/surface/io_surface_support_mac.h
+++ b/app/surface/io_surface_support_mac.h
@@ -46,6 +46,9 @@ class IOSurfaceSupport {
virtual mach_port_t IOSurfaceCreateMachPort(CFTypeRef io_surface) = 0;
virtual CFTypeRef IOSurfaceLookupFromMachPort(mach_port_t port) = 0;
+ virtual size_t IOSurfaceGetWidth(CFTypeRef io_surface) = 0;
+ virtual size_t IOSurfaceGetHeight(CFTypeRef io_surface) = 0;
+
virtual CGLError CGLTexImageIOSurface2D(CGLContextObj ctx,
GLenum target,
GLenum internal_format,