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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ImageSource.h

Issue 2530443004: Add target color profile to BitmapImage::draw (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 IntSize frameSizeAtIndex( 83 IntSize frameSizeAtIndex(
84 size_t, 84 size_t,
85 RespectImageOrientationEnum = DoNotRespectImageOrientation) const; 85 RespectImageOrientationEnum = DoNotRespectImageOrientation) const;
86 86
87 bool getHotSpot(IntPoint&) const; 87 bool getHotSpot(IntPoint&) const;
88 int repetitionCount(); 88 int repetitionCount();
89 89
90 size_t frameCount() const; 90 size_t frameCount() const;
91 91
92 // Attempts to create the requested frame. 92 // Attempts to create the requested frame.
93 sk_sp<SkImage> createFrameAtIndex(size_t); 93 sk_sp<SkImage> createFrameAtIndex(size_t, sk_sp<SkColorSpace>);
94 94
95 float frameDurationAtIndex(size_t) const; 95 float frameDurationAtIndex(size_t) const;
96 bool frameHasAlphaAtIndex( 96 bool frameHasAlphaAtIndex(
97 size_t) const; // Whether or not the frame actually used any alpha. 97 size_t) const; // Whether or not the frame actually used any alpha.
98 bool frameIsCompleteAtIndex( 98 bool frameIsCompleteAtIndex(
99 size_t) const; // Whether or not the frame is fully received. 99 size_t) const; // Whether or not the frame is fully received.
100 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation 100 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation
101 101
102 // Returns the number of bytes in the decoded frame. May return 0 if the 102 // Returns the number of bytes in the decoded frame. May return 0 if the
103 // frame has not yet begun to decode. 103 // frame has not yet begun to decode.
104 size_t frameBytesAtIndex(size_t) const; 104 size_t frameBytesAtIndex(size_t) const;
105 105
106 private: 106 private:
107 std::unique_ptr<DeferredImageDecoder> m_decoder; 107 std::unique_ptr<DeferredImageDecoder> m_decoder;
108 RefPtr<SharedBuffer> m_data;
109 bool m_allDataReceived = false;
108 }; 110 };
109 111
110 } // namespace blink 112 } // namespace blink
111 113
112 #endif 114 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.cpp ('k') | third_party/WebKit/Source/platform/graphics/ImageSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698