#include "ui/gl/presenter.h"
#include "ui/gfx/gpu_fence.h"
#if BUILDFLAG(IS_WIN)
#include "ui/gl/dc_layer_overlay_params.h"
#else
namespace gl {
struct DCLayerOverlayParams { … };
}
#endif
namespace gl {
Presenter::Presenter() = default;
Presenter::~Presenter() = default;
bool Presenter::SupportsOverridePlatformSize() const { … }
bool Presenter::SupportsViewporter() const { … }
bool Presenter::SupportsPlaneGpuFences() const { … }
bool Presenter::ScheduleOverlayPlane(
OverlayImage image,
std::unique_ptr<gfx::GpuFence> gpu_fence,
const gfx::OverlayPlaneData& overlay_plane_data) { … }
bool Presenter::ScheduleCALayer(const ui::CARendererLayerParams& params) { … }
void Presenter::ScheduleDCLayer(std::unique_ptr<DCLayerOverlayParams> params) { … }
bool Presenter::Resize(const gfx::Size& size,
float scale_factor,
const gfx::ColorSpace& color_space,
bool has_alpha) { … }
}