| 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() {
|
|
|