diff options
Diffstat (limited to 'cc/test/fake_content_layer_impl.cc')
-rw-r--r-- | cc/test/fake_content_layer_impl.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cc/test/fake_content_layer_impl.cc b/cc/test/fake_content_layer_impl.cc new file mode 100644 index 0000000..9404947 --- /dev/null +++ b/cc/test/fake_content_layer_impl.cc @@ -0,0 +1,24 @@ +// Copyright 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "cc/test/fake_content_layer_impl.h" + +namespace cc { + +FakeContentLayerImpl::FakeContentLayerImpl(LayerTreeImpl* tree_impl, int id) + : TiledLayerImpl(tree_impl, id), + lost_output_surface_count_(0) { +} + +FakeContentLayerImpl::~FakeContentLayerImpl() {} + +bool FakeContentLayerImpl::HaveResourceForTileAt(int i, int j) { + return hasResourceIdForTileAt(i, j); +} + +void FakeContentLayerImpl::didLoseOutputSurface() { + ++lost_output_surface_count_; +} + +} // namespace cc |