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

Unified Diff: cc/test/fake_picture_layer_impl.h

Issue 1405883002: cc: Remove the base RasterSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge more Created 5 years, 2 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_display_list_recording_source.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_impl.h
diff --git a/cc/test/fake_picture_layer_impl.h b/cc/test/fake_picture_layer_impl.h
index 3aeeb1c3e7a69707e868cb0fa1d13162a270745a..291152f8eaf29c2fef3480eecd418f9c20bf5967 100644
--- a/cc/test/fake_picture_layer_impl.h
+++ b/cc/test/fake_picture_layer_impl.h
@@ -7,7 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "cc/layers/picture_layer_impl.h"
-#include "cc/playback/raster_source.h"
+#include "cc/playback/display_list_raster_source.h"
namespace cc {
@@ -29,7 +29,7 @@ class FakePictureLayerImpl : public PictureLayerImpl {
static scoped_ptr<FakePictureLayerImpl> CreateWithRasterSource(
LayerTreeImpl* tree_impl,
int id,
- scoped_refptr<RasterSource> raster_source) {
+ scoped_refptr<DisplayListRasterSource> raster_source) {
bool is_mask = false;
return make_scoped_ptr(
new FakePictureLayerImpl(tree_impl, id, raster_source, is_mask));
@@ -39,7 +39,7 @@ class FakePictureLayerImpl : public PictureLayerImpl {
static scoped_ptr<FakePictureLayerImpl> CreateWithPartialRasterSource(
LayerTreeImpl* tree_impl,
int id,
- scoped_refptr<RasterSource> raster_source,
+ scoped_refptr<DisplayListRasterSource> raster_source,
const gfx::Size& layer_bounds) {
bool is_mask = false;
return make_scoped_ptr(new FakePictureLayerImpl(
@@ -51,7 +51,7 @@ class FakePictureLayerImpl : public PictureLayerImpl {
static scoped_ptr<FakePictureLayerImpl> CreateMaskWithRasterSource(
LayerTreeImpl* tree_impl,
int id,
- scoped_refptr<RasterSource> raster_source) {
+ scoped_refptr<DisplayListRasterSource> raster_source) {
bool is_mask = true;
return make_scoped_ptr(
new FakePictureLayerImpl(tree_impl, id, raster_source, is_mask));
@@ -104,9 +104,10 @@ class FakePictureLayerImpl : public PictureLayerImpl {
size_t num_tilings() const { return tilings_->num_tilings(); }
PictureLayerTilingSet* tilings() { return tilings_.get(); }
- RasterSource* raster_source() { return raster_source_.get(); }
- void SetRasterSourceOnPending(scoped_refptr<RasterSource> raster_source,
- const Region& invalidation);
+ DisplayListRasterSource* raster_source() { return raster_source_.get(); }
+ void SetRasterSourceOnPending(
+ scoped_refptr<DisplayListRasterSource> raster_source,
+ const Region& invalidation);
size_t append_quads_count() { return append_quads_count_; }
const Region& invalidation() const { return invalidation_; }
@@ -150,11 +151,11 @@ class FakePictureLayerImpl : public PictureLayerImpl {
protected:
FakePictureLayerImpl(LayerTreeImpl* tree_impl,
int id,
- scoped_refptr<RasterSource> raster_source,
+ scoped_refptr<DisplayListRasterSource> raster_source,
bool is_mask);
FakePictureLayerImpl(LayerTreeImpl* tree_impl,
int id,
- scoped_refptr<RasterSource> raster_source,
+ scoped_refptr<DisplayListRasterSource> raster_source,
bool is_mask,
const gfx::Size& layer_bounds);
FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask);
« no previous file with comments | « cc/test/fake_display_list_recording_source.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698