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

Side by Side Diff: cc/test/fake_compositor_frame_sink_support_client.cc

Issue 2795683003: [cc]Replace use of SurfaceFactory with CompositorFrameSinkSupport in tests (Closed)
Patch Set: Update returned_resources_ in FakeCompositorFrameSinkSupportClient::DidReceiveCompositorFrameAck 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 #include "cc/test/fake_compositor_frame_sink_support_client.h"
6
7 #include "cc/surfaces/surface_manager.h"
8
9 namespace cc {
10
11 FakeCompositorFrameSinkSupportClient::FakeCompositorFrameSinkSupportClient() =
12 default;
13 FakeCompositorFrameSinkSupportClient::~FakeCompositorFrameSinkSupportClient() =
14 default;
15
16 void FakeCompositorFrameSinkSupportClient::DidReceiveCompositorFrameAck(
17 const ReturnedResourceArray& resources) {
18 returned_resources_ = resources;
19 }
20
21 void FakeCompositorFrameSinkSupportClient::OnBeginFrame(
22 const BeginFrameArgs& args) {}
23
24 void FakeCompositorFrameSinkSupportClient::ReclaimResources(
25 const ReturnedResourceArray& resources) {
26 returned_resources_ = resources;
27 }
28
29 void FakeCompositorFrameSinkSupportClient::WillDrawSurface(
30 const LocalSurfaceId& local_surface_id,
31 const gfx::Rect& damage_rect) {
32 last_local_surface_id_ = local_surface_id;
33 last_damage_rect_ = damage_rect;
34 }
35
36 }; // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_compositor_frame_sink_support_client.h ('k') | cc/test/surface_hittest_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698