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

Unified Diff: services/ui/public/cpp/compositor_frame_sink.h

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: ui::CompositorFrameSink => ui::WindowCompositorFrameSink Created 4 years, 2 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
Index: services/ui/public/cpp/compositor_frame_sink.h
diff --git a/services/ui/public/cpp/compositor_frame_sink.h b/services/ui/public/cpp/compositor_frame_sink.h
deleted file mode 100644
index 2ea0d1aecc0db411bd43b1d8938580197c335c8e..0000000000000000000000000000000000000000
--- a/services/ui/public/cpp/compositor_frame_sink.h
+++ /dev/null
@@ -1,48 +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_PUBLIC_CPP_COMPOSITOR_FRAME_SINK_H_
-#define SERVICES_UI_PUBLIC_CPP_COMPOSITOR_FRAME_SINK_H_
-
-#include "base/macros.h"
-#include "cc/output/compositor_frame_sink.h"
-#include "cc/output/context_provider.h"
-#include "cc/scheduler/begin_frame_source.h"
-#include "cc/surfaces/surface_id.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "services/ui/public/cpp/window_surface.h"
-#include "services/ui/public/cpp/window_surface_client.h"
-
-namespace gpu {
-class GpuChannelHost;
-}
-
-namespace ui {
-
-class CompositorFrameSink : public cc::CompositorFrameSink,
- public WindowSurfaceClient {
- public:
- CompositorFrameSink(scoped_refptr<cc::ContextProvider> context_provider,
- std::unique_ptr<WindowSurface> surface);
- ~CompositorFrameSink() override;
-
- // cc::CompositorFrameSink implementation.
- bool BindToClient(cc::CompositorFrameSinkClient* client) override;
- void DetachFromClient() override;
- void SubmitCompositorFrame(cc::CompositorFrame frame) override;
-
- private:
- // WindowSurfaceClient implementation:
- void DidReceiveCompositorFrameAck() override;
- void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
-
- std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
- std::unique_ptr<WindowSurface> surface_;
-
- DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink);
-};
-
-} // namespace ui
-
-#endif // SERVICES_UI_PUBLIC_CPP_COMPOSITOR_FRAME_SINK_H_

Powered by Google App Engine
This is Rietveld 408576698