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

Unified Diff: ui/ozone/platform/dri/gbm_surfaceless.h

Issue 781683005: Ozone: Avoid blocking in Swapbuffer Call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unintended changes. Created 6 years 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/ozone/platform/dri/gbm_surfaceless.h
diff --git a/ui/ozone/platform/dri/gbm_surfaceless.h b/ui/ozone/platform/dri/gbm_surfaceless.h
index dd755e41c9a50b16932c7d9349db88112e4a8371..a8128a1db6b7651a126338b614faf93c732a95db 100644
--- a/ui/ozone/platform/dri/gbm_surfaceless.h
+++ b/ui/ozone/platform/dri/gbm_surfaceless.h
@@ -14,6 +14,7 @@ class Size;
namespace ui {
class DriWindowDelegate;
+class PageFilpEventHandler;
// In surfaceless mode drawing and displaying happens directly through
// NativePixmap buffers. CC would call into SurfaceFactoryOzone to allocate the
@@ -21,7 +22,8 @@ class DriWindowDelegate;
// presentation.
class GbmSurfaceless : public SurfaceOzoneEGL {
public:
- GbmSurfaceless(DriWindowDelegate* window_delegate);
+ GbmSurfaceless(DriWindowDelegate* window_delegate,
+ PageFilpEventHandler* handler = NULL);
~GbmSurfaceless() override;
// SurfaceOzoneEGL:
@@ -29,9 +31,13 @@ class GbmSurfaceless : public SurfaceOzoneEGL {
bool ResizeNativeWindow(const gfx::Size& viewport_size) override;
bool OnSwapBuffers() override;
scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override;
+ void SetPageFlipCompletionCallback(
+ const PageFlipCompletionCallback& callback) override;
protected:
DriWindowDelegate* window_delegate_;
+ PageFilpEventHandler* flip_handler_; // Not owned.
+ PageFlipCompletionCallback callback_;
DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless);
};

Powered by Google App Engine
This is Rietveld 408576698