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

Unified Diff: cc/test/fake_compositor_frame_sink_client.h

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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 | « cc/test/fake_compositor_frame_sink.cc ('k') | cc/test/fake_compositor_frame_sink_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_compositor_frame_sink_client.h
diff --git a/cc/test/fake_output_surface_client.h b/cc/test/fake_compositor_frame_sink_client.h
similarity index 68%
copy from cc/test/fake_output_surface_client.h
copy to cc/test/fake_compositor_frame_sink_client.h
index 0bc6e38c4f697b8e44f5a7c39b5c5802d201d52d..e50c2d755de7329134be41a1975153f25621cb4b 100644
--- a/cc/test/fake_output_surface_client.h
+++ b/cc/test/fake_compositor_frame_sink_client.h
@@ -2,21 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
-#define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
+#ifndef CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_CLIENT_H_
+#define CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_CLIENT_H_
+#include "cc/output/compositor_frame_sink_client.h"
#include "cc/output/managed_memory_policy.h"
-#include "cc/output/output_surface_client.h"
namespace cc {
-class OutputSurface;
+class CompositorFrameSink;
-class FakeOutputSurfaceClient : public OutputSurfaceClient {
+class FakeCompositorFrameSinkClient : public CompositorFrameSinkClient {
public:
- FakeOutputSurfaceClient()
+ FakeCompositorFrameSinkClient()
: swap_count_(0),
- did_lose_output_surface_called_(false),
+ did_lose_compositor_frame_sink_called_(false),
memory_policy_(0) {}
void SetBeginFrameSource(BeginFrameSource* source) override {}
@@ -25,7 +25,7 @@ class FakeOutputSurfaceClient : public OutputSurfaceClient {
void DidReceiveTextureInUseResponses(
const gpu::TextureInUseResponses& responses) override {}
void ReclaimResources(const ReturnedResourceArray& resources) override {}
- void DidLoseOutputSurface() override;
+ void DidLoseCompositorFrameSink() override;
void SetExternalTilePriorityConstraints(
const gfx::Rect& viewport_rect_for_tile_priority,
const gfx::Transform& transform_for_tile_priority) override {}
@@ -37,18 +37,18 @@ class FakeOutputSurfaceClient : public OutputSurfaceClient {
int swap_count() { return swap_count_; }
- bool did_lose_output_surface_called() {
- return did_lose_output_surface_called_;
+ bool did_lose_compositor_frame_sink_called() {
+ return did_lose_compositor_frame_sink_called_;
}
const ManagedMemoryPolicy& memory_policy() const { return memory_policy_; }
private:
int swap_count_;
- bool did_lose_output_surface_called_;
+ bool did_lose_compositor_frame_sink_called_;
ManagedMemoryPolicy memory_policy_;
};
} // namespace cc
-#endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
+#endif // CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_CLIENT_H_
« no previous file with comments | « cc/test/fake_compositor_frame_sink.cc ('k') | cc/test/fake_compositor_frame_sink_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698