Index: cc/output/compositor_frame_sink_client.h |
diff --git a/cc/output/output_surface_client.h b/cc/output/compositor_frame_sink_client.h |
similarity index 85% |
copy from cc/output/output_surface_client.h |
copy to cc/output/compositor_frame_sink_client.h |
index cd91919e6c40cf0cbcb809fe3af1e4d5242027cb..4318e015f112f0393167e2becdc2f6ef9998f273 100644 |
--- a/cc/output/output_surface_client.h |
+++ b/cc/output/compositor_frame_sink_client.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
-#define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
+#ifndef CC_OUTPUT_COMPOSITOR_FRAME_SINK_CLIENT_H_ |
+#define CC_OUTPUT_COMPOSITOR_FRAME_SINK_CLIENT_H_ |
#include "base/callback.h" |
#include "base/memory/ref_counted.h" |
@@ -23,7 +23,7 @@ namespace cc { |
class BeginFrameSource; |
struct ManagedMemoryPolicy; |
-class CC_EXPORT OutputSurfaceClient { |
+class CC_EXPORT CompositorFrameSinkClient { |
public: |
// ============== DISPLAY COMPOSITOR ONLY ======================= |
@@ -36,7 +36,8 @@ class CC_EXPORT OutputSurfaceClient { |
// ============== LAYER TREE COMPOSITOR ONLY ==================== |
// Pass the begin frame source for the client to observe. Client does not own |
- // the BeginFrameSource. OutputSurface should call this once after binding to |
+ // the BeginFrameSource. CompositorFrameSink should call this once after |
+ // binding to |
// the client and then call again with a null while detaching. |
virtual void SetBeginFrameSource(BeginFrameSource* source) = 0; |
virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0; |
@@ -46,7 +47,8 @@ class CC_EXPORT OutputSurfaceClient { |
const gfx::Transform& transform) = 0; |
// If set, |callback| will be called subsequent to each new tree activation, |
// regardless of the compositor visibility or damage. |callback| must remain |
- // valid for the lifetime of the OutputSurfaceClient or until unregisted -- |
+ // valid for the lifetime of the CompositorFrameSinkClient or until unregisted |
+ // -- |
// use SetTreeActivationCallback(base::Closure()) to unregister it. |
virtual void SetTreeActivationCallback(const base::Closure& callback) = 0; |
// This allows the output surface to ask its client for a draw. |
@@ -68,12 +70,12 @@ class CC_EXPORT OutputSurfaceClient { |
// Needs thought, if LTHI has only context providers, it needs to register a |
// lost callback, so we need to support multiple callbacks. |
- virtual void DidLoseOutputSurface() = 0; |
+ virtual void DidLoseCompositorFrameSink() = 0; |
protected: |
- virtual ~OutputSurfaceClient() {} |
+ virtual ~CompositorFrameSinkClient() {} |
}; |
} // namespace cc |
-#endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ |
+#endif // CC_OUTPUT_COMPOSITOR_FRAME_SINK_CLIENT_H_ |