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

Unified Diff: cc/playback/largest_display_item.cc

Issue 2090203002: Remove antialiasing from views bounds rects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: std::max is bad apparently Created 4 years, 6 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/playback/display_item_list_unittest.cc ('k') | cc/proto/display_item.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/largest_display_item.cc
diff --git a/cc/playback/largest_display_item.cc b/cc/playback/largest_display_item.cc
index 7c761141c30a0597cf97b017309718583d48dc14..9e0661c88a1bc5c171e1356284a1f728018cd08e 100644
--- a/cc/playback/largest_display_item.cc
+++ b/cc/playback/largest_display_item.cc
@@ -19,7 +19,12 @@
#include "third_party/skia/include/core/SkPicture.h"
namespace {
-const size_t kLargestDisplayItemSize = sizeof(cc::TransformDisplayItem);
+// Either ClipDisplayItem or TransformDisplayItem is largest. It depends on the
+// platform.
+constexpr size_t kLargestDisplayItemSize =
+ sizeof(cc::ClipDisplayItem) > sizeof(cc::TransformDisplayItem)
+ ? sizeof(cc::ClipDisplayItem)
+ : sizeof(cc::TransformDisplayItem);
} // namespace
namespace cc {
« no previous file with comments | « cc/playback/display_item_list_unittest.cc ('k') | cc/proto/display_item.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698