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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.cpp

Issue 2868283003: [SPv2] Renaming and refactor about raster invalidation tracking (Closed)
Patch Set: - Created 3 years, 7 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
Index: third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.cpp b/third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.cpp
index 0ad81f760eaac8f8a92343d0b5046f55225d2d52..0b13563579c10e37c3fe5637d36dfdc978a228a2 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/RasterInvalidationTracking.cpp
@@ -41,12 +41,11 @@ static std::unique_ptr<JSONArray> RectAsJSONArray(const T& rect) {
}
void RasterInvalidationTracking::AsJSON(JSONObject* json) {
- if (!tracked_raster_invalidations.IsEmpty()) {
- std::sort(tracked_raster_invalidations.begin(),
- tracked_raster_invalidations.end(),
+ if (!invalidations.IsEmpty()) {
+ std::sort(invalidations.begin(), invalidations.end(),
&CompareRasterInvalidationInfo);
std::unique_ptr<JSONArray> paint_invalidations_json = JSONArray::Create();
- for (auto& info : tracked_raster_invalidations) {
+ for (auto& info : invalidations) {
std::unique_ptr<JSONObject> info_json = JSONObject::Create();
info_json->SetString("object", info.client_debug_name);
if (!info.rect.IsEmpty()) {
@@ -62,10 +61,10 @@ void RasterInvalidationTracking::AsJSON(JSONObject* json) {
json->SetArray("paintInvalidations", std::move(paint_invalidations_json));
}
- if (!under_paint_invalidations.IsEmpty()) {
+ if (!under_invalidations.IsEmpty()) {
std::unique_ptr<JSONArray> under_paint_invalidations_json =
JSONArray::Create();
- for (auto& under_paint_invalidation : under_paint_invalidations) {
+ for (auto& under_paint_invalidation : under_invalidations) {
std::unique_ptr<JSONObject> under_paint_invalidation_json =
JSONObject::Create();
under_paint_invalidation_json->SetDouble("x", under_paint_invalidation.x);

Powered by Google App Engine
This is Rietveld 408576698