blob: 624454fa399c997027c2d91aec9839e409db6116 [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/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