Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: ui/gl/gl_image_io_surface.h

Issue 1251783002: Mac Overlays: Wire up overlays on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@part22
Patch Set: Leave disabled for now Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_image_io_surface.h
diff --git a/ui/gl/gl_image_io_surface.h b/ui/gl/gl_image_io_surface.h
index b3f695afab7154f028c1f45f359775b51188bd81..28a1e19b80e96579ebce5a58bc20bd3b082996ed 100644
--- a/ui/gl/gl_image_io_surface.h
+++ b/ui/gl/gl_image_io_surface.h
@@ -12,6 +12,12 @@
#include "ui/gfx/gpu_memory_buffer.h"
#include "ui/gl/gl_image.h"
+#if defined(__OBJC__)
+@class CALayer;
+#else
+typedef void* CALayer;
+#endif
+
namespace gfx {
class GL_EXPORT GLImageIOSurface : public GLImage {
@@ -39,6 +45,9 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
const Rect& bounds_rect,
const RectF& crop_rect) override;
+ static void SetLayerForWidget(gfx::AcceleratedWidget widget,
+ CALayer* layer);
+
protected:
~GLImageIOSurface() override;

Powered by Google App Engine
This is Rietveld 408576698