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

Unified Diff: blimp/client/core/compositor/blimp_compositor_frame_sink_proxy.h

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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: blimp/client/core/compositor/blimp_compositor_frame_sink_proxy.h
diff --git a/blimp/client/core/compositor/blimp_compositor_frame_sink_proxy.h b/blimp/client/core/compositor/blimp_compositor_frame_sink_proxy.h
deleted file mode 100644
index d55f4da6d5bb432a7a9281a5675bec9a999e6f2b..0000000000000000000000000000000000000000
--- a/blimp/client/core/compositor/blimp_compositor_frame_sink_proxy.h
+++ /dev/null
@@ -1,60 +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 BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_FRAME_SINK_PROXY_H_
-#define BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_FRAME_SINK_PROXY_H_
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "cc/resources/returned_resource.h"
-
-namespace cc {
-class CompositorFrame;
-}
-
-namespace blimp {
-namespace client {
-
-class BlimpCompositorFrameSinkProxyClient {
- public:
- virtual ~BlimpCompositorFrameSinkProxyClient() {}
-
- // Sent when the compositor can reclaim the |resources| references in a
- // compositor frame.
- virtual void ReclaimCompositorResources(
- const cc::ReturnedResourceArray& resources) = 0;
-
- // Called when SubmitCompositorFrame has been processed and another frame
- // should be started.
- virtual void SubmitCompositorFrameAck() = 0;
-};
-
-// This class is meant to bounce CompositorFrames from the compositor thread's
-// CompositorFrameSink to the main thread. As such, it should be used on the
-// main thread only.
-class BlimpCompositorFrameSinkProxy {
- public:
- virtual ~BlimpCompositorFrameSinkProxy() {}
-
- // Will be called before any frames are sent to the client. The weak ptr
- // provided here can be used to post messages to the CompositorFrameSink on
- // the compositor thread.
- virtual void BindToProxyClient(
- base::WeakPtr<BlimpCompositorFrameSinkProxyClient> client) = 0;
-
- // The implementation should take the contents of the compositor frame and
- // return the referenced resources when the frame is no longer being drawn
- // using BlimpCompositorFrameSinkProxyClient::ReclaimCompositorResources.
- virtual void SubmitCompositorFrame(cc::CompositorFrame frame) = 0;
-
- // Will be called when the use of the CompositorFrameSink is being terminated.
- // No calls from this output surface will be made to the client after this
- // point.
- virtual void UnbindProxyClient() = 0;
-};
-
-} // namespace client
-} // namespace blimp
-
-#endif // BLIMP_CLIENT_CORE_COMPOSITOR_BLIMP_COMPOSITOR_FRAME_SINK_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698