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

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

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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h b/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
index 6351b931253d66bdb82d1dbb5af93471842d7295..cd70475f0640b95062f29eb111a8a503f3f58f41 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
@@ -202,22 +202,23 @@ class CORE_EXPORT ImageResourceContent final
: AutoReset(&content->is_add_remove_observer_prohibited_, true) {}
};
- Member<ImageResourceInfo> info_;
ResourceStatus content_status_ = ResourceStatus::kNotStarted;
- RefPtr<blink::Image> image_;
-
- HashCountedSet<ImageResourceObserver*> observers_;
- HashCountedSet<ImageResourceObserver*> finished_observers_;
-
- Image::SizeAvailability size_available_ = Image::kSizeUnavailable;
-
// Indicates if this resource's encoded image data can be purged and refetched
// from disk cache to save memory usage. See crbug/664437.
bool is_refetchable_data_from_disk_cache_;
mutable bool is_add_remove_observer_prohibited_ = false;
+ Image::SizeAvailability size_available_ = Image::kSizeUnavailable;
+
+ Member<ImageResourceInfo> info_;
+
+ RefPtr<blink::Image> image_;
+
+ HashCountedSet<ImageResourceObserver*> observers_;
+ HashCountedSet<ImageResourceObserver*> finished_observers_;
+
#if DCHECK_IS_ON()
bool is_update_image_being_called_ = false;
#endif
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698