Setup a experiment to enable background tracing.
[chromium-blink-merge.git] / cc / test / fake_output_surface_client.cc
blob075db20a6edf1c490482608141ab6f9a192d970d
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
3 // found in the LICENSE file.
5 #include "cc/output/output_surface.h"
6 #include "cc/test/fake_output_surface_client.h"
8 namespace cc {
10 void FakeOutputSurfaceClient::DidSwapBuffers() {
11 swap_count_++;
14 void FakeOutputSurfaceClient::DidLoseOutputSurface() {
15 did_lose_output_surface_called_ = true;
18 void FakeOutputSurfaceClient::SetMemoryPolicy(
19 const ManagedMemoryPolicy& policy) {
20 memory_policy_ = policy;
23 } // namespace cc