blob: d8a6522d97be588b9352992ad5b48a5772dbe346 [file] [log] [blame]
// 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/notreached.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