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

Unified Diff: ui/gl/gl_surface_ozone.cc

Issue 837483003: [ozone] Add stub async swap buffers implementation to ozone surfaceless. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | ui/ozone/platform/dri/gbm_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_ozone.cc
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc
index 7b73d4839ab8feaf391364957eebe19b44da3fa0..ffa416ab119f7cafaf9e3f71ef583a8265b4188d 100644
--- a/ui/gl/gl_surface_ozone.cc
+++ b/ui/gl/gl_surface_ozone.cc
@@ -142,6 +142,18 @@ class GL_EXPORT GLSurfaceOzoneSurfaceless : public SurfacelessEGL {
SwapBuffers();
return true;
}
+ bool SwapBuffersAsync(const SwapCompletionCallback& callback) override {
+ // TODO: this should be replaced by a fence when supported by the driver.
+ glFlush();
+ return ozone_surface_->OnSwapBuffersAsync(callback);
+ }
+ bool PostSubBufferAsync(int x,
+ int y,
+ int width,
+ int height,
+ const SwapCompletionCallback& callback) override {
+ return SwapBuffersAsync(callback);
+ }
private:
virtual ~GLSurfaceOzoneSurfaceless() {
« no previous file with comments | « no previous file | ui/ozone/platform/dri/gbm_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698