blob: e10c4630179a050526040bc3496c207e0275e4f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright 2018 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.
#ifndef COMPONENTS_VIZ_SERVICE_DISPLAY_EMBEDDER_GL_OUTPUT_SURFACE_ANDROID_H_
#define COMPONENTS_VIZ_SERVICE_DISPLAY_EMBEDDER_GL_OUTPUT_SURFACE_ANDROID_H_
#include <memory>
#include "components/viz/service/display_embedder/gl_output_surface.h"
namespace viz {
class OverlayCandidateValidator;
class GLOutputSurfaceAndroid : public GLOutputSurface {
public:
GLOutputSurfaceAndroid(
scoped_refptr<VizProcessContextProvider> context_provider,
SyntheticBeginFrameSource* synthetic_begin_frame_source);
~GLOutputSurfaceAndroid() override;
// GLOutputSurface implementation:
void HandlePartialSwap(
const gfx::Rect& sub_buffer_rect,
uint32_t flags,
gpu::ContextSupport::SwapCompletedCallback swap_callback,
gpu::ContextSupport::PresentationCallback presentation_callback) override;
OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
private:
std::unique_ptr<OverlayCandidateValidator> overlay_candidate_validator_;
DISALLOW_COPY_AND_ASSIGN(GLOutputSurfaceAndroid);
};
} // namespace viz
#endif // COMPONENTS_VIZ_SERVICE_DISPLAY_EMBEDDER_GL_OUTPUT_SURFACE_ANDROID_H_
|