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

Unified Diff: cc/test/fake_picture_pile_impl.h

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_pile.cc ('k') | cc/test/fake_picture_pile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_pile_impl.h
diff --git a/cc/test/fake_picture_pile_impl.h b/cc/test/fake_picture_pile_impl.h
deleted file mode 100644
index a21509a0800857be14b46df6aad36e5ef6519d83..0000000000000000000000000000000000000000
--- a/cc/test/fake_picture_pile_impl.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
-#define CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
-
-#include "base/memory/ref_counted.h"
-#include "cc/resources/picture_pile_impl.h"
-#include "cc/test/fake_picture_pile.h"
-
-namespace base {
-class WaitableEvent;
-}
-
-namespace cc {
-
-class FakePicturePileImpl : public PicturePileImpl {
- public:
- static scoped_refptr<FakePicturePileImpl> CreatePile(
- const gfx::Size& tile_size,
- const gfx::Size& layer_bounds,
- bool is_filled);
-
- static scoped_refptr<FakePicturePileImpl> CreateFilledPileWithDefaultTileSize(
- const gfx::Size& layer_bounds) {
- return CreateFilledPile(gfx::Size(512, 512), layer_bounds);
- }
- static scoped_refptr<FakePicturePileImpl> CreateEmptyPileWithDefaultTileSize(
- const gfx::Size& layer_bounds) {
- return CreateEmptyPile(gfx::Size(512, 512), layer_bounds);
- }
- static scoped_refptr<FakePicturePileImpl> CreateFilledPile(
- const gfx::Size& tile_size,
- const gfx::Size& layer_bounds);
- static scoped_refptr<FakePicturePileImpl> CreateEmptyPile(
- const gfx::Size& tile_size,
- const gfx::Size& layer_bounds);
- static scoped_refptr<FakePicturePileImpl>
- CreateEmptyPileThatThinksItHasRecordings(const gfx::Size& tile_size,
- const gfx::Size& layer_bounds,
- bool is_solid_color);
- static scoped_refptr<FakePicturePileImpl> CreateInfiniteFilledPile();
- static scoped_refptr<FakePicturePileImpl> CreateFromPile(
- const PicturePile* other,
- base::WaitableEvent* playback_allowed_event);
-
- // Hi-jack the PlaybackToCanvas method to delay its completion.
- void PlaybackToCanvas(SkCanvas* canvas,
- const gfx::Rect& canvas_rect,
- float contents_scale) const override;
-
- const TilingData& tiling() { return tiling_; }
-
- bool HasRecordingAt(int x, int y) const;
- int num_tiles_x() const { return tiling_.num_tiles_x(); }
- int num_tiles_y() const { return tiling_.num_tiles_y(); }
-
- protected:
- FakePicturePileImpl();
- FakePicturePileImpl(const PicturePile* other,
- base::WaitableEvent* playback_allowed_event);
- ~FakePicturePileImpl() override;
-
- base::WaitableEvent* playback_allowed_event_;
- gfx::Size tile_grid_size_;
-};
-
-} // namespace cc
-
-#endif // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
« no previous file with comments | « cc/test/fake_picture_pile.cc ('k') | cc/test/fake_picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698