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

Unified Diff: components/viz/common/hit_test/aggregated_hit_test_region.h

Issue 2933493003: Add viz-host HitTestQuery. (Closed)
Patch Set: don't combine uint and int; check for overflow Created 3 years, 5 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: components/viz/common/hit_test/aggregated_hit_test_region.h
diff --git a/components/viz/common/hit_test/aggregated_hit_test_region.h b/components/viz/common/hit_test/aggregated_hit_test_region.h
index b90bfb19a6e5c46af15eccfa4f7870eb0732bbcf..ab3997aeb90aa3550d4bdadf9721fd90ae5b0859 100644
--- a/components/viz/common/hit_test/aggregated_hit_test_region.h
+++ b/components/viz/common/hit_test/aggregated_hit_test_region.h
@@ -15,7 +15,7 @@ namespace viz {
// A AggregatedHitTestRegion element with child_count of kEndOfList indicates
// the last element and end of the list.
-constexpr int kEndOfList = -1;
+constexpr int32_t kEndOfList = -1;
// An array of AggregatedHitTestRegion elements is used to define the
// aggregated hit-test data for the Display.
@@ -41,7 +41,7 @@ struct AggregatedHitTestRegion {
// The number of children including their children below this entry.
// If this element is not matched then child_count elements can be skipped
// to move to the next entry.
- int child_count;
+ int32_t child_count;
};
} // namespace viz
« no previous file with comments | « no previous file | components/viz/host/BUILD.gn » ('j') | components/viz/service/hit_test/hit_test_aggregator_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698