diff options
Diffstat (limited to 'ui/gfx/surface/accelerated_surface_win.h')
-rw-r--r-- | ui/gfx/surface/accelerated_surface_win.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/gfx/surface/accelerated_surface_win.h b/ui/gfx/surface/accelerated_surface_win.h index b526deb..593972b 100644 --- a/ui/gfx/surface/accelerated_surface_win.h +++ b/ui/gfx/surface/accelerated_surface_win.h @@ -35,13 +35,13 @@ class SURFACE_EXPORT AcceleratedSurface const base::Closure& completion_task); // Synchronously present a frame with no acknowledgement. - void Present(); + bool Present(); private: void DoInitialize(); - void QueriesDestroyed(); void DoDestroy(); void DoResize(const gfx::Size& size); + void DoReset(); void DoPresentAndAcknowledge(const gfx::Size& size, int64 surface_id, const base::Closure& completion_task); @@ -55,6 +55,10 @@ class SURFACE_EXPORT AcceleratedSurface // Only accessed on the UI thread so the lock is unnecessary. gfx::Size pending_size_; + // The current size of the swap chain. This is only accessed on the thread + // with which the surface has affinity. + gfx::Size size_; + // The number of pending resizes. This is accessed with atomic operations so // the lock is not necessary. base::AtomicRefCount num_pending_resizes_; @@ -71,9 +75,6 @@ class SURFACE_EXPORT AcceleratedSurface // texture again. base::win::ScopedComPtr<IDirect3DQuery9> query_; - // The current size of the swap chain. - gfx::Size size_; - DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); }; |