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

Unified Diff: ui/accelerated_widget_mac/io_surface_ns_gl_surface.h

Issue 1164363005: Mac: Only allow NSOpenGLContext displaying on the main display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/accelerated_widget_mac/io_surface_ns_gl_surface.h
diff --git a/ui/accelerated_widget_mac/io_surface_ns_gl_surface.h b/ui/accelerated_widget_mac/io_surface_ns_gl_surface.h
index f18952b2d8088ddce0f77f8861f6e6c2216b02bf..810a891fa1c712cff24236cda613d5599bcb6645 100644
--- a/ui/accelerated_widget_mac/io_surface_ns_gl_surface.h
+++ b/ui/accelerated_widget_mac/io_surface_ns_gl_surface.h
@@ -25,19 +25,25 @@ class IOSurfaceNSGLSurfaceClient {
class IOSurfaceNSGLSurface {
public:
static IOSurfaceNSGLSurface* Create(
- IOSurfaceNSGLSurfaceClient* client, NSView* view);
+ IOSurfaceNSGLSurfaceClient* client,
+ NSView* view,
+ bool needs_gl_finish_workaround);
virtual ~IOSurfaceNSGLSurface();
- // Called on the UI thread.
+ static bool CanUseNSGLSurfaceForView(NSView* view);
+
bool GotFrame(IOSurfaceID io_surface_id,
gfx::Size pixel_size,
float scale_factor,
gfx::Rect pixel_damage_rect);
+ int GetRendererID();
+
private:
explicit IOSurfaceNSGLSurface(
IOSurfaceNSGLSurfaceClient* client,
NSView* view,
+ bool needs_gl_finish_workaround,
base::scoped_nsobject<NSOpenGLContext> ns_gl_context,
scoped_refptr<ui::IOSurfaceTexture> iosurface);

Powered by Google App Engine
This is Rietveld 408576698