| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "ui/ozone/public/surface_ozone_canvas.h" |
| |
| #include "base/logging.h" |
| |
| namespace ui { |
| |
| SurfaceOzoneCanvas::~SurfaceOzoneCanvas() = default; |
| |
| bool SurfaceOzoneCanvas::SupportsAsyncBufferSwap() const { |
| return false; |
| } |
| |
| void SurfaceOzoneCanvas::OnSwapBuffers(SwapBuffersCallback swap_ack_callback) { |
| NOTREACHED() << "If the SurfaceOzoneCanvas wants to handle the buffer swap " |
| "callback, it must override this method."; |
| } |
| |
| int SurfaceOzoneCanvas::MaxFramesPending() const { |
| return 1; |
| } |
| |
| } // namespace ui |