Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.h

Issue 2795823003: Create //components/viz/frame_sinks and move code. (Closed)
Patch Set: Fix DEPS. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/display_compositor/BUILD.gn ('k') | components/display_compositor/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/display_compositor/gpu_compositor_frame_sink.h
diff --git a/components/display_compositor/gpu_compositor_frame_sink.h b/components/display_compositor/gpu_compositor_frame_sink.h
deleted file mode 100644
index bc2c9f55554678436194cb42b75b42d11386d2b7..0000000000000000000000000000000000000000
--- a/components/display_compositor/gpu_compositor_frame_sink.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright 2015 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_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
-#define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
-#include "cc/surfaces/compositor_frame_sink_support.h"
-#include "cc/surfaces/compositor_frame_sink_support_client.h"
-#include "cc/surfaces/local_surface_id.h"
-#include "cc/surfaces/surface_id.h"
-#include "components/display_compositor/display_compositor_export.h"
-#include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
-#include "mojo/public/cpp/bindings/binding.h"
-
-namespace display_compositor {
-
-// Server side representation of a WindowSurface.
-class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
- : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient),
- public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink),
- public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) {
- public:
- GpuCompositorFrameSink(
- GpuCompositorFrameSinkDelegate* delegate,
- cc::SurfaceManager* surface_manager,
- const cc::FrameSinkId& frame_sink_id,
- cc::mojom::MojoCompositorFrameSinkRequest request,
- cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
- cc::mojom::MojoCompositorFrameSinkClientPtr client);
-
- ~GpuCompositorFrameSink() override;
-
- // cc::mojom::MojoCompositorFrameSink:
- void EvictFrame() override;
- void SetNeedsBeginFrame(bool needs_begin_frame) override;
- void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
- cc::CompositorFrame frame) override;
- void BeginFrameDidNotSwap(const cc::BeginFrameAck& begin_frame_ack) override;
-
- // cc::mojom::MojoCompositorFrameSinkPrivate:
- void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override;
- void RequestCopyOfSurface(
- std::unique_ptr<cc::CopyOutputRequest> request) override;
-
- private:
- // cc::CompositorFrameSinkSupportClient implementation:
- void DidReceiveCompositorFrameAck() override;
- void OnBeginFrame(const cc::BeginFrameArgs& args) override;
- void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
- void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
- const gfx::Rect& damage_rect) override;
-
- void OnClientConnectionLost();
- void OnPrivateConnectionLost();
-
- GpuCompositorFrameSinkDelegate* const delegate_;
- std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
-
- bool client_connection_lost_ = false;
- bool private_connection_lost_ = false;
-
- cc::mojom::MojoCompositorFrameSinkClientPtr client_;
- mojo::Binding<cc::mojom::MojoCompositorFrameSink>
- compositor_frame_sink_binding_;
- mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
- compositor_frame_sink_private_binding_;
-
- DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
-};
-
-} // namespace display_compositor
-
-#endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
« no previous file with comments | « components/display_compositor/BUILD.gn ('k') | components/display_compositor/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698