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

Unified Diff: components/exo/compositor_frame_sink.h

Issue 2868473002: Implement aura::Window::CreateCompositorFrameSink() (Closed)
Patch Set: Address review issues Created 3 years, 7 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/exo/buffer_unittest.cc ('k') | components/exo/compositor_frame_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/compositor_frame_sink.h
diff --git a/components/exo/compositor_frame_sink.h b/components/exo/compositor_frame_sink.h
deleted file mode 100644
index 7da2b6b2a380154abc0f3f5509481c3791d9f21a..0000000000000000000000000000000000000000
--- a/components/exo/compositor_frame_sink.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2016 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_EXO_EXO_COMPOSITOR_FRAME_SINK_H_
-#define COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_
-
-#include "cc/ipc/compositor_frame.mojom.h"
-#include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
-#include "cc/resources/transferable_resource.h"
-#include "cc/surfaces/compositor_frame_sink_support.h"
-#include "cc/surfaces/compositor_frame_sink_support_client.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-
-namespace exo {
-
-class CompositorFrameSinkHolder;
-
-class CompositorFrameSink : public cc::CompositorFrameSinkSupportClient,
- public cc::mojom::MojoCompositorFrameSink {
- public:
- CompositorFrameSink(const cc::FrameSinkId& frame_sink_id,
- cc::SurfaceManager* surface_manager,
- CompositorFrameSinkHolder* client);
-
- ~CompositorFrameSink() override;
-
- // Overridden from cc::mojom::MojoCompositorFrameSink:
- 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;
- void EvictFrame() override;
-
- // Overridden from cc::CompositorFrameSinkSupportClient:
- void DidReceiveCompositorFrameAck(
- const cc::ReturnedResourceArray& resources) 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 {}
-
- private:
- std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
- CompositorFrameSinkHolder* const client_;
-
- DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink);
-};
-
-} // namespace exo
-
-#endif // COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_
« no previous file with comments | « components/exo/buffer_unittest.cc ('k') | components/exo/compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698