This source file includes following definitions.
- append_quads_count_
- CreateLayerImpl
- HaveResourceForTileAt
- ReleaseResources
- AppendQuads
#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),
append_quads_count_(0) {
}
FakeContentLayerImpl::~FakeContentLayerImpl() {}
scoped_ptr<LayerImpl> FakeContentLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
return FakeContentLayerImpl::Create(tree_impl, id()).PassAs<LayerImpl>();
}
bool FakeContentLayerImpl::HaveResourceForTileAt(int i, int j) {
return HasResourceIdForTileAt(i, j);
}
void FakeContentLayerImpl::ReleaseResources() {
TiledLayerImpl::ReleaseResources();
++lost_output_surface_count_;
}
void FakeContentLayerImpl::AppendQuads(QuadSink* quad_sink,
AppendQuadsData* append_quads_data) {
TiledLayerImpl::AppendQuads(quad_sink, append_quads_data);
++append_quads_count_;
}
}