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

Unified Diff: ui/compositor/mac/io_surface_layer_mac.h

Issue 753933002: MacViews: Move content::AcceleratedWidget to new component, ui/accelerated_widget_mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20141124-MacViews-MoveSoftwareLayerMac-fromcl
Patch Set: nit DEPS, deps and gn Created 6 years, 1 month 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/compositor/mac/io_surface_layer_mac.h
diff --git a/content/browser/compositor/io_surface_layer_mac.h b/ui/compositor/mac/io_surface_layer_mac.h
similarity index 94%
rename from content/browser/compositor/io_surface_layer_mac.h
rename to ui/compositor/mac/io_surface_layer_mac.h
index 5a218e8f66529e0b94e40ba596d5ea73d3defcfd..aec3a33068ae9df5f2448be7f619e55c00ad3518 100644
--- a/content/browser/compositor/io_surface_layer_mac.h
+++ b/ui/compositor/mac/io_surface_layer_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_LAYER_MAC_H_
-#define CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_LAYER_MAC_H_
+#ifndef UI_COMPOSITOR_MAC_IO_SURFACE_LAYER_MAC_H_
+#define UI_COMPOSITOR_MAC_IO_SURFACE_LAYER_MAC_H_
#import <Cocoa/Cocoa.h>
@@ -28,6 +28,10 @@ class IOSurfaceLayerClient {
// immediately.
virtual bool IOSurfaceLayerShouldAckImmediately() const = 0;
ccameron 2014/11/25 17:54:25 I was wondering if to make the glFinish workaround
tapted 2014/11/25 23:53:55 re: odd plumbing: Ash faces a similar problem (i.e
+ // Whether the IOSurface should use the glFinish() workaround after
+ // compositing.
+ virtual bool IOSurfaceNeedsGLFinishWorkaround() const = 0;
+
// Called when a frame is drawn or when, because the layer is not visible, it
// is known that the frame will never drawn.
virtual void IOSurfaceLayerDidDrawFrame() = 0;
@@ -158,4 +162,4 @@ class IOSurfaceLayerHelper {
- (void)endPumpingFrames;
@end
-#endif // CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_LAYER_MAC_H_
+#endif // UI_COMPOSITOR_MAC_IO_SURFACE_LAYER_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698