| Index: ui/accelerated_widget_mac/io_surface_texture.h
|
| diff --git a/ui/accelerated_widget_mac/io_surface_texture.h b/ui/accelerated_widget_mac/io_surface_texture.h
|
| index 8ff9d63840e4d49aafc7bb188f2e5003bfcdab34..22780452479a0c201d8d73523697ce0cca59ca9b 100644
|
| --- a/ui/accelerated_widget_mac/io_surface_texture.h
|
| +++ b/ui/accelerated_widget_mac/io_surface_texture.h
|
| @@ -41,7 +41,8 @@ class IOSurfaceTexture
|
| : public base::RefCounted<IOSurfaceTexture> {
|
| public:
|
| static scoped_refptr<IOSurfaceTexture> Create(
|
| - bool needs_gl_finish_workaround);
|
| + bool needs_gl_finish_workaround,
|
| + bool use_ns_apis);
|
|
|
| // Returns true if there is no need to call SetIOSurface with the provided
|
| // values.
|
| @@ -69,6 +70,7 @@ class IOSurfaceTexture
|
|
|
| IOSurfaceTexture(
|
| const scoped_refptr<IOSurfaceContext>& context,
|
| + bool use_ns_apis,
|
| bool needs_gl_finish_workaround);
|
| ~IOSurfaceTexture();
|
|
|
| @@ -113,8 +115,12 @@ class IOSurfaceTexture
|
| void EvictionMarkEvicted();
|
| EvictionQueue::iterator eviction_queue_iterator_;
|
| bool eviction_has_been_drawn_since_updated_;
|
| +
|
| const bool needs_gl_finish_workaround_;
|
|
|
| + // Set if this is for access through NS APIs.
|
| + const bool using_ns_apis_;
|
| +
|
| static void EvictionScheduleDoEvict();
|
| static void EvictionDoEvict();
|
| static base::LazyInstance<EvictionQueue> eviction_queue_;
|
|
|