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

Unified Diff: cc/test/fake_recording_source.cc

Issue 2141233002: cc: Clean up RecordingSource API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ContentLayerClient* painter from UpdateAndExpandInvalidation and sync to head Created 4 years, 4 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_recording_source.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/test/fake_recording_source.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698