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

Side by Side Diff: cc/test/fake_compositor_frame_sink_client.h

Issue 2503283002: cc: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing fwd class decl in blimp_embedder_compositor.h Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « cc/test/animation_test_common.h ('k') | cc/test/fake_layer_tree_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_CLIENT_H_ 5 #ifndef CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_CLIENT_H_
6 #define CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_CLIENT_H_ 6 #define CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_CLIENT_H_
7 7
8 #include "cc/output/compositor_frame_sink_client.h" 8 #include "cc/output/compositor_frame_sink_client.h"
9 #include "cc/output/managed_memory_policy.h" 9 #include "cc/output/managed_memory_policy.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class CompositorFrameSink;
14
15 class FakeCompositorFrameSinkClient : public CompositorFrameSinkClient { 13 class FakeCompositorFrameSinkClient : public CompositorFrameSinkClient {
16 public: 14 public:
17 FakeCompositorFrameSinkClient() : memory_policy_(0) {} 15 FakeCompositorFrameSinkClient() : memory_policy_(0) {}
18 16
19 void SetBeginFrameSource(BeginFrameSource* source) override {} 17 void SetBeginFrameSource(BeginFrameSource* source) override {}
20 void DidReceiveCompositorFrameAck() override; 18 void DidReceiveCompositorFrameAck() override;
21 void ReclaimResources(const ReturnedResourceArray& resources) override {} 19 void ReclaimResources(const ReturnedResourceArray& resources) override {}
22 void DidLoseCompositorFrameSink() override; 20 void DidLoseCompositorFrameSink() override;
23 void SetExternalTilePriorityConstraints( 21 void SetExternalTilePriorityConstraints(
24 const gfx::Rect& viewport_rect_for_tile_priority, 22 const gfx::Rect& viewport_rect_for_tile_priority,
(...skipping 14 matching lines...) Expand all
39 37
40 private: 38 private:
41 int ack_count_ = 0; 39 int ack_count_ = 0;
42 bool did_lose_compositor_frame_sink_called_ = false; 40 bool did_lose_compositor_frame_sink_called_ = false;
43 ManagedMemoryPolicy memory_policy_; 41 ManagedMemoryPolicy memory_policy_;
44 }; 42 };
45 43
46 } // namespace cc 44 } // namespace cc
47 45
48 #endif // CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_CLIENT_H_ 46 #endif // CC_TEST_FAKE_COMPOSITOR_FRAME_SINK_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/test/animation_test_common.h ('k') | cc/test/fake_layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698