Lots of random cleanups, mostly for native_theme_win.cc:
[chromium-blink-merge.git] / cc / test / fake_content_layer_impl.cc
blob7e5a8533a7bfff2d8a302b347039d0b27233616a
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.
5 #include "cc/test/fake_content_layer_impl.h"
7 namespace cc {
9 FakeContentLayerImpl::FakeContentLayerImpl(LayerTreeImpl* tree_impl, int id)
10 : TiledLayerImpl(tree_impl, id), lost_output_surface_count_(0) {
13 FakeContentLayerImpl::~FakeContentLayerImpl() {}
15 scoped_ptr<LayerImpl> FakeContentLayerImpl::CreateLayerImpl(
16 LayerTreeImpl* tree_impl) {
17 return FakeContentLayerImpl::Create(tree_impl, id()).PassAs<LayerImpl>();
20 bool FakeContentLayerImpl::HaveResourceForTileAt(int i, int j) {
21 return HasResourceIdForTileAt(i, j);
24 void FakeContentLayerImpl::ReleaseResources() {
25 TiledLayerImpl::ReleaseResources();
26 ++lost_output_surface_count_;
29 } // namespace cc