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

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

Issue 2795683003: [cc]Replace use of SurfaceFactory with CompositorFrameSinkSupport in tests (Closed)
Patch Set: Fix SurfaceManagerRefTest Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_TEST_EMPTY_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
6 #define CC_TEST_EMPTY_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
7
8 #include "cc/surfaces/compositor_frame_sink_support_client.h"
9 #include "cc/surfaces/local_surface_id.h"
10 #include "ui/gfx/geometry/rect.h"
11
12 namespace cc {
13
14 class EmptyCompositorFrameSinkSupportClient
danakj 2017/04/07 15:52:45 I know you're copying this name from where it came
Alex Z. 2017/04/07 20:43:58 Done.
15 : public CompositorFrameSinkSupportClient {
16 public:
17 EmptyCompositorFrameSinkSupportClient();
18 ~EmptyCompositorFrameSinkSupportClient() override;
19
20 // CompositorFrameSinkSupportClient implementation.
21 void DidReceiveCompositorFrameAck() override;
22 void OnBeginFrame(const BeginFrameArgs& args) override;
23 void ReclaimResources(const ReturnedResourceArray& resources) override;
24 void WillDrawSurface(const LocalSurfaceId& local_surface_id,
25 const gfx::Rect& damage_rect) override;
26
27 const gfx::Rect& last_damage_rect() const { return last_damage_rect_; }
28 const LocalSurfaceId& last_local_surface_id() const {
29 return last_local_surface_id_;
30 }
31 const ReturnedResourceArray& returned_resources() const {
32 return returned_resources_;
33 }
34
35 private:
36 gfx::Rect last_damage_rect_;
37 LocalSurfaceId last_local_surface_id_;
38 ReturnedResourceArray returned_resources_;
39
40 DISALLOW_COPY_AND_ASSIGN(EmptyCompositorFrameSinkSupportClient);
41 };
42
43 } // namespace cc
44
45 #endif // CC_TEST_EMPTY_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698