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

Unified Diff: third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp

Issue 2859313003: Blink class layout optimization to reduce memory usage (Closed)
Patch Set: Resolved merge conflict and changed blink::ResourceStatus enum to be based on uint8_t 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/core/loader/resource/ImageResourceContent.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp b/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp
index b3f3a4f3f184e47f3be1b0653ba5d48861f8223a..221aca37be208398a987be1435928d4ab77884bc 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp
@@ -68,7 +68,7 @@ class NullImageResourceInfo final
} // namespace
ImageResourceContent::ImageResourceContent(PassRefPtr<blink::Image> image)
- : image_(std::move(image)), is_refetchable_data_from_disk_cache_(true) {
+ : is_refetchable_data_from_disk_cache_(true), image_(std::move(image)) {
DEFINE_STATIC_LOCAL(NullImageResourceInfo, null_info,
(new NullImageResourceInfo()));
info_ = &null_info;

Powered by Google App Engine
This is Rietveld 408576698