Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / cc / test / fake_output_surface_client.cc
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.
4
5 #include "cc/test/fake_output_surface_client.h"
6
7 namespace cc {
8
9 void FakeOutputSurfaceClient::DeferredInitialize() {
10   deferred_initialize_called_ = true;
11 }
12
13 void FakeOutputSurfaceClient::BeginFrame(const BeginFrameArgs& args) {
14   begin_frame_count_++;
15 }
16
17 void FakeOutputSurfaceClient::DidLoseOutputSurface() {
18   did_lose_output_surface_called_ = true;
19 }
20
21 void FakeOutputSurfaceClient::SetMemoryPolicy(
22     const ManagedMemoryPolicy& policy) {
23   memory_policy_ = policy;
24 }
25
26 }  // namespace cc