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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageSource.h

Issue 1309393007: [poc] redecode Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resetColorProfileForTesting rename Created 5 years, 1 month 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/ImageSource.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.h b/third_party/WebKit/Source/platform/graphics/ImageSource.h
index a04cc45c8931b2ec6ed366b273c770785e6b7ee3..d93a90334bdc7c73efda2c2c1055eeee289d5811 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.h
@@ -27,10 +27,12 @@
#define ImageSource_h
#include "platform/PlatformExport.h"
+#include "platform/graphics/ColorSpaceProfile.h"
#include "platform/graphics/ImageOrientation.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
+#include "wtf/RefPtr.h"
class SkImage;
@@ -71,8 +73,12 @@ public:
void setData(SharedBuffer& data, bool allDataReceived);
String filenameExtension() const;
+ void resetDecoder();
bool isSizeAvailable();
bool hasColorProfile() const;
+ PassRefPtr<ColorSpaceProfile> colorProfile() const;
+ void setDeviceProfile(ColorSpaceProfile*);
+ ColorSpaceProfile* deviceProfile() const { return m_deviceProfile.get(); }
IntSize size(RespectImageOrientationEnum = DoNotRespectImageOrientation) const;
IntSize frameSizeAtIndex(size_t, RespectImageOrientationEnum = DoNotRespectImageOrientation) const;
@@ -95,6 +101,7 @@ public:
private:
OwnPtr<DeferredImageDecoder> m_decoder;
+ RefPtr<ColorSpaceProfile> m_deviceProfile;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698