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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.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
Index: third_party/WebKit/Source/platform/graphics/Image.h
diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h
index 869a047723665282e36ae97a980cdff80f53a49a..534b5057d09efaf4c2d6ea79479cd7a634cf72da 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.h
+++ b/third_party/WebKit/Source/platform/graphics/Image.h
@@ -209,6 +209,7 @@ class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> {
const FloatSize& repeat_spacing = FloatSize());
private:
+ bool image_observer_disabled_;
RefPtr<SharedBuffer> encoded_image_data_;
// TODO(Oilpan): consider having Image on the Oilpan heap and
// turn this into a Member<>.
@@ -216,7 +217,6 @@ class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> {
// The observer (an ImageResourceContent) is an untraced member, with the
// ImageResourceContent being responsible for clearing itself out.
UntracedMember<ImageObserver> image_observer_;
- bool image_observer_disabled_;
};
#define DEFINE_IMAGE_TYPE_CASTS(typeName) \

Powered by Google App Engine
This is Rietveld 408576698