Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: cc/test/fake_picture_layer.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_picture_layer.h ('k') | cc/test/fake_picture_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer.cc
diff --git a/cc/test/fake_picture_layer.cc b/cc/test/fake_picture_layer.cc
deleted file mode 100644
index c2e7dab0b594b0ccb98c9324faeeb682c8243f2e..0000000000000000000000000000000000000000
--- a/cc/test/fake_picture_layer.cc
+++ /dev/null
@@ -1,60 +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_picture_layer.h"
-
-#include "cc/test/fake_picture_layer_impl.h"
-
-namespace cc {
-
-FakePictureLayer::FakePictureLayer(ContentLayerClient* client)
- : PictureLayer(client),
- update_count_(0),
- push_properties_count_(0),
- output_surface_created_count_(0),
- always_update_resources_(false),
- disable_lcd_text_(false) {
- SetBounds(gfx::Size(1, 1));
- SetIsDrawable(true);
-}
-
-FakePictureLayer::FakePictureLayer(ContentLayerClient* client,
- scoped_ptr<RecordingSource> source)
- : PictureLayer(client, source.Pass()),
- update_count_(0),
- push_properties_count_(0),
- output_surface_created_count_(0),
- always_update_resources_(false),
- disable_lcd_text_(false) {
- SetBounds(gfx::Size(1, 1));
- SetIsDrawable(true);
-}
-
-FakePictureLayer::~FakePictureLayer() {}
-
-scoped_ptr<LayerImpl> FakePictureLayer::CreateLayerImpl(
- LayerTreeImpl* tree_impl) {
- return FakePictureLayerImpl::Create(tree_impl, layer_id_);
-}
-
-bool FakePictureLayer::Update(ResourceUpdateQueue* queue,
- const OcclusionTracker<Layer>* occlusion) {
- if (disable_lcd_text_)
- draw_properties().can_use_lcd_text = false;
- bool updated = PictureLayer::Update(queue, occlusion);
- update_count_++;
- return updated || always_update_resources_;
-}
-
-void FakePictureLayer::PushPropertiesTo(LayerImpl* layer) {
- PictureLayer::PushPropertiesTo(layer);
- push_properties_count_++;
-}
-
-void FakePictureLayer::OnOutputSurfaceCreated() {
- PictureLayer::OnOutputSurfaceCreated();
- output_surface_created_count_++;
-}
-
-} // namespace cc
« no previous file with comments | « cc/test/fake_picture_layer.h ('k') | cc/test/fake_picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698