| Index: ui/compositor/mac/io_surface_texture_mac.h
|
| diff --git a/content/browser/compositor/io_surface_texture_mac.h b/ui/compositor/mac/io_surface_texture_mac.h
|
| similarity index 90%
|
| rename from content/browser/compositor/io_surface_texture_mac.h
|
| rename to ui/compositor/mac/io_surface_texture_mac.h
|
| index 595c91232dc3b5cfdb358ec071d2b70eccd4599d..a8338cedda8156805e73bbea35382acb5e622044 100644
|
| --- a/content/browser/compositor/io_surface_texture_mac.h
|
| +++ b/ui/compositor/mac/io_surface_texture_mac.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_TEXTURE_MAC_H_
|
| -#define CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_TEXTURE_MAC_H_
|
| +#ifndef UI_COMPOSITOR_MAC_IO_SURFACE_TEXTURE_MAC_H_
|
| +#define UI_COMPOSITOR_MAC_IO_SURFACE_TEXTURE_MAC_H_
|
|
|
| #include <deque>
|
| #include <list>
|
| @@ -19,7 +19,6 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/time/time.h"
|
| -#include "media/base/video_frame.h"
|
| #include "ui/gfx/native_widget_types.h"
|
| #include "ui/gfx/rect.h"
|
| #include "ui/gfx/rect_conversions.h"
|
| @@ -44,7 +43,8 @@ class IOSurfaceTexture
|
| : public base::RefCounted<IOSurfaceTexture> {
|
| public:
|
| // Returns NULL if IOSurfaceTexture or GL API calls fail.
|
| - static scoped_refptr<IOSurfaceTexture> Create();
|
| + static scoped_refptr<IOSurfaceTexture> Create(
|
| + bool needs_gl_finish_workaround);
|
|
|
| // Set IOSurfaceTexture that will be drawn on the next NSView drawRect.
|
| bool SetIOSurface(
|
| @@ -65,7 +65,8 @@ class IOSurfaceTexture
|
| friend class base::RefCounted<IOSurfaceTexture>;
|
|
|
| IOSurfaceTexture(
|
| - const scoped_refptr<IOSurfaceContext>& context);
|
| + const scoped_refptr<IOSurfaceContext>& context,
|
| + bool needs_gl_finish_workaround);
|
| ~IOSurfaceTexture();
|
|
|
| // Unref the IOSurfaceTexture and delete the associated GL texture. If the GPU
|
| @@ -109,6 +110,7 @@ class IOSurfaceTexture
|
| void EvictionMarkEvicted();
|
| EvictionQueue::iterator eviction_queue_iterator_;
|
| bool eviction_has_been_drawn_since_updated_;
|
| + const bool needs_gl_finish_workaround_;
|
|
|
| static void EvictionScheduleDoEvict();
|
| static void EvictionDoEvict();
|
| @@ -118,4 +120,4 @@ class IOSurfaceTexture
|
|
|
| } // namespace content
|
|
|
| -#endif // CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_TEXTURE_MAC_H_
|
| +#endif // UI_COMPOSITOR_MAC_IO_SURFACE_TEXTURE_MAC_H_
|
|
|