fake_layer_tree_host_impl.cc revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
1// Copyright 2012 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_layer_tree_host_impl.h"
6
7namespace cc {
8
9FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy)
10    : LayerTreeHostImpl(LayerTreeSettings(),
11                        &client_,
12                        proxy,
13                        &stats_instrumentation_) {
14  // Explicitly clear all debug settings.
15  SetDebugState(LayerTreeDebugState());
16}
17
18FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(
19    const LayerTreeSettings& settings,
20    Proxy* proxy)
21    : LayerTreeHostImpl(settings,
22                        &client_,
23                        proxy,
24                        &stats_instrumentation_) {
25  // Explicitly clear all debug settings.
26  SetDebugState(LayerTreeDebugState());
27}
28
29FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {}
30
31}  // namespace cc
32