summaryrefslogtreecommitdiffstats
path: root/ui/surface/accelerated_surface_win.h
diff options
context:
space:
mode:
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-06 01:37:31 +0000
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-06 01:37:31 +0000
commit111975c6ed2caac665ed17f876f86536af6c3d2f (patch)
tree80512760fdaffd6354b8152104686095d3d73148 /ui/surface/accelerated_surface_win.h
parent07ed535b5f4250e2030cd169fb1e9de050eea07e (diff)
downloadchromium_src-111975c6ed2caac665ed17f876f86536af6c3d2f.zip
chromium_src-111975c6ed2caac665ed17f876f86536af6c3d2f.tar.gz
chromium_src-111975c6ed2caac665ed17f876f86536af6c3d2f.tar.bz2
Enable GPU acceleration for Aura on Windows
Use GpuTransportSurface and AcceleratedSurface for rendering on win aura. Run with: --open-ash --force-compositing-mode --enable-threaded-compositing BUG= Review URL: https://chromiumcodereview.appspot.com/10890046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155093 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/surface/accelerated_surface_win.h')
-rw-r--r--ui/surface/accelerated_surface_win.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/surface/accelerated_surface_win.h b/ui/surface/accelerated_surface_win.h
index 6a19e81..1256909 100644
--- a/ui/surface/accelerated_surface_win.h
+++ b/ui/surface/accelerated_surface_win.h
@@ -29,13 +29,13 @@ class SURFACE_EXPORT AcceleratedPresenter
base::TimeTicks,
base::TimeDelta)> CompletionTask;
- explicit AcceleratedPresenter(gfx::NativeWindow window);
+ explicit AcceleratedPresenter(gfx::PluginWindowHandle window);
// Returns a thread safe reference to the presenter for the given window or
// null is no such presenter exists. The thread safe refptr ensures the
// presenter will not be destroyed. This can be called on any thread.
static scoped_refptr<AcceleratedPresenter> GetForWindow(
- gfx::NativeWindow window);
+ gfx::PluginWindowHandle window);
// Schedule a frame to be presented. The completion callback will be invoked
// when it is safe to write to the surface on another thread. The lock for
@@ -96,7 +96,7 @@ class SURFACE_EXPORT AcceleratedPresenter
PresentThread* const present_thread_;
// The window that is presented to.
- gfx::NativeWindow window_;
+ gfx::PluginWindowHandle window_;
// The lock is taken while any thread is calling the object, except those that
// simply post from the main thread to the present thread via the immutable
@@ -130,7 +130,7 @@ class SURFACE_EXPORT AcceleratedPresenter
class SURFACE_EXPORT AcceleratedSurface {
public:
- AcceleratedSurface(gfx::NativeWindow window);
+ AcceleratedSurface(gfx::PluginWindowHandle window);
~AcceleratedSurface();
// Synchronously present a frame with no acknowledgement.