| Index: cc/test/fake_recording_source.cc
|
| diff --git a/cc/test/fake_recording_source.cc b/cc/test/fake_recording_source.cc
|
| index 01e4fd01bb37dc1acc595503a1154d522efd1bfd..011916781c2a649fe8717390c0e33ff0d6d1e885 100644
|
| --- a/cc/test/fake_recording_source.cc
|
| +++ b/cc/test/fake_recording_source.cc
|
| @@ -5,19 +5,10 @@
|
| #include "cc/test/fake_recording_source.h"
|
|
|
| #include "cc/test/fake_raster_source.h"
|
| -#include "cc/test/skia_common.h"
|
|
|
| namespace cc {
|
|
|
| -FakeRecordingSource::FakeRecordingSource()
|
| - : force_unsuitable_for_gpu_rasterization_(false),
|
| - playback_allowed_event_(nullptr) {}
|
| -
|
| -bool FakeRecordingSource::IsSuitableForGpuRasterization() const {
|
| - if (force_unsuitable_for_gpu_rasterization_)
|
| - return false;
|
| - return RecordingSource::IsSuitableForGpuRasterization();
|
| -}
|
| +FakeRecordingSource::FakeRecordingSource() : playback_allowed_event_(nullptr) {}
|
|
|
| scoped_refptr<RasterSource> FakeRecordingSource::CreateRasterSource(
|
| bool can_use_lcd) const {
|
| @@ -26,16 +17,7 @@ scoped_refptr<RasterSource> FakeRecordingSource::CreateRasterSource(
|
| }
|
|
|
| bool FakeRecordingSource::EqualsTo(const FakeRecordingSource& other) {
|
| - // The DisplayItemLists are equal if they are both null or they are both not
|
| - // null and render to the same thing.
|
| - bool display_lists_equal = !display_list_ && !other.display_list_;
|
| - if (display_list_ && other.display_list_) {
|
| - display_lists_equal = AreDisplayListDrawingResultsSame(
|
| - recorded_viewport_, display_list_.get(), other.display_list_.get());
|
| - }
|
| -
|
| - return recorded_viewport_ == other.recorded_viewport_ &&
|
| - size_ == other.size_ &&
|
| + return size_ == other.size_ &&
|
| slow_down_raster_scale_factor_for_debug_ ==
|
| other.slow_down_raster_scale_factor_for_debug_ &&
|
| generate_discardable_images_metadata_ ==
|
| @@ -45,7 +27,7 @@ bool FakeRecordingSource::EqualsTo(const FakeRecordingSource& other) {
|
| clear_canvas_with_debug_color_ ==
|
| other.clear_canvas_with_debug_color_ &&
|
| solid_color_ == other.solid_color_ &&
|
| - background_color_ == other.background_color_ && display_lists_equal;
|
| + background_color_ == other.background_color_;
|
| }
|
|
|
| } // namespace cc
|
|
|