| Index: services/ui/surfaces/direct_output_surface.h
|
| diff --git a/services/ui/surfaces/direct_output_surface.h b/services/ui/surfaces/direct_output_surface.h
|
| deleted file mode 100644
|
| index a377039c7b0ec981f1d1a6001139d8db820965bf..0000000000000000000000000000000000000000
|
| --- a/services/ui/surfaces/direct_output_surface.h
|
| +++ /dev/null
|
| @@ -1,65 +0,0 @@
|
| -// Copyright 2014 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 SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_
|
| -#define SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_
|
| -
|
| -#include <memory>
|
| -
|
| -#include "cc/output/in_process_context_provider.h"
|
| -#include "cc/output/output_surface.h"
|
| -
|
| -namespace cc {
|
| -class CompositorFrame;
|
| -class SyntheticBeginFrameSource;
|
| -}
|
| -
|
| -namespace ui {
|
| -
|
| -// An OutputSurface implementation that directly draws and
|
| -// swaps to an actual GL surface.
|
| -class DirectOutputSurface : public cc::OutputSurface {
|
| - public:
|
| - DirectOutputSurface(
|
| - scoped_refptr<cc::InProcessContextProvider> context_provider,
|
| - cc::SyntheticBeginFrameSource* synthetic_begin_frame_source);
|
| - ~DirectOutputSurface() override;
|
| -
|
| - // cc::OutputSurface implementation
|
| - void BindToClient(cc::OutputSurfaceClient* client) override;
|
| - void EnsureBackbuffer() override;
|
| - void DiscardBackbuffer() override;
|
| - void BindFramebuffer() override;
|
| - void Reshape(const gfx::Size& size,
|
| - float device_scale_factor,
|
| - const gfx::ColorSpace& color_space,
|
| - bool has_alpha) override;
|
| - void SwapBuffers(cc::OutputSurfaceFrame frame) override;
|
| - uint32_t GetFramebufferCopyTextureFormat() override;
|
| - cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
|
| - bool IsDisplayedAsOverlayPlane() const override;
|
| - unsigned GetOverlayTextureId() const override;
|
| - bool SurfaceIsSuspendForRecycle() const override;
|
| - bool HasExternalStencilTest() const override;
|
| - void ApplyExternalStencil() override;
|
| -
|
| -
|
| - private:
|
| - // Called when a swap completion is signaled from ImageTransportSurface.
|
| - void OnGpuSwapBuffersCompleted(
|
| - const std::vector<ui::LatencyInfo>& latency_info,
|
| - gfx::SwapResult result,
|
| - const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac);
|
| - void OnVSyncParametersUpdated(base::TimeTicks timebase,
|
| - base::TimeDelta interval);
|
| -
|
| - cc::OutputSurfaceClient* client_ = nullptr;
|
| - cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_;
|
| -
|
| - base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
|
| -};
|
| -
|
| -} // namespace ui
|
| -
|
| -#endif // SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_
|
|
|