| Index: cc/test/fake_content_layer.cc
|
| diff --git a/cc/test/fake_content_layer.cc b/cc/test/fake_content_layer.cc
|
| deleted file mode 100644
|
| index a0a01eee7fb650074d1c2fe1176359a3d75586a8..0000000000000000000000000000000000000000
|
| --- a/cc/test/fake_content_layer.cc
|
| +++ /dev/null
|
| @@ -1,64 +0,0 @@
|
| -// 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.h"
|
| -
|
| -#include "cc/resources/content_layer_updater.h"
|
| -#include "cc/resources/prioritized_resource.h"
|
| -#include "cc/test/fake_content_layer_impl.h"
|
| -
|
| -namespace cc {
|
| -
|
| -class FakeContentLayerUpdater : public ContentLayerUpdater {
|
| - public:
|
| - using ContentLayerUpdater::paint_rect;
|
| -
|
| - private:
|
| - ~FakeContentLayerUpdater() override {}
|
| -};
|
| -
|
| -FakeContentLayer::FakeContentLayer(ContentLayerClient* client)
|
| - : ContentLayer(client),
|
| - update_count_(0),
|
| - push_properties_count_(0),
|
| - output_surface_created_count_(0),
|
| - always_update_resources_(false) {
|
| - SetBounds(gfx::Size(1, 1));
|
| - SetIsDrawable(true);
|
| -}
|
| -
|
| -FakeContentLayer::~FakeContentLayer() {}
|
| -
|
| -scoped_ptr<LayerImpl> FakeContentLayer::CreateLayerImpl(
|
| - LayerTreeImpl* tree_impl) {
|
| - return FakeContentLayerImpl::Create(tree_impl, layer_id_);
|
| -}
|
| -
|
| -bool FakeContentLayer::Update(ResourceUpdateQueue* queue,
|
| - const OcclusionTracker<Layer>* occlusion) {
|
| - bool updated = ContentLayer::Update(queue, occlusion);
|
| - update_count_++;
|
| - return updated || always_update_resources_;
|
| -}
|
| -
|
| -gfx::Rect FakeContentLayer::LastPaintRect() const {
|
| - return (static_cast<FakeContentLayerUpdater*>(Updater()))->paint_rect();
|
| -}
|
| -
|
| -void FakeContentLayer::PushPropertiesTo(LayerImpl* layer) {
|
| - ContentLayer::PushPropertiesTo(layer);
|
| - push_properties_count_++;
|
| -}
|
| -
|
| -void FakeContentLayer::OnOutputSurfaceCreated() {
|
| - ContentLayer::OnOutputSurfaceCreated();
|
| - output_surface_created_count_++;
|
| -}
|
| -
|
| -bool FakeContentLayer::HaveBackingAt(int i, int j) {
|
| - const PrioritizedResource* resource = ResourceAtForTesting(i, j);
|
| - return resource && resource->have_backing_texture();
|
| -}
|
| -
|
| -} // namespace cc
|
|
|