Home
last modified time | relevance | path

Searched refs:ImageDecoder (Results 1 – 25 of 75) sorted by relevance

123

/external/chromium_org/chrome/browser/
Dimage_decoder.cc16 ImageDecoder::ImageDecoder(Delegate* delegate, in ImageDecoder() function in ImageDecoder
25 ImageDecoder::~ImageDecoder() {} in ~ImageDecoder()
27 void ImageDecoder::Start(scoped_refptr<base::SequencedTaskRunner> task_runner) { in Start()
31 base::Bind(&ImageDecoder::DecodeImageInSandbox, this, image_data_)); in Start()
34 bool ImageDecoder::OnMessageReceived(const IPC::Message& message) { in OnMessageReceived()
36 IPC_BEGIN_MESSAGE_MAP(ImageDecoder, message) in OnMessageReceived()
46 void ImageDecoder::OnDecodeImageSucceeded(const SkBitmap& decoded_image) { in OnDecodeImageSucceeded()
52 void ImageDecoder::OnDecodeImageFailed() { in OnDecodeImageFailed()
58 void ImageDecoder::DecodeImageInSandbox( in DecodeImageInSandbox()
Dimage_decoder.h19 class ImageDecoder : public content::UtilityProcessHostClient {
26 virtual void OnImageDecoded(const ImageDecoder* decoder,
31 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) {} in OnDecodeImageFailed()
42 ImageDecoder(Delegate* delegate,
58 virtual ~ImageDecoder();
75 DISALLOW_COPY_AND_ASSIGN(ImageDecoder);
/external/chromium_org/content/child/
Dimage_decoder.cc21 ImageDecoder decoder(desired_image_size); in DecodeImage()
25 ImageDecoder::ImageDecoder() : desired_icon_size_(0, 0) { in ImageDecoder() function in content::ImageDecoder
28 ImageDecoder::ImageDecoder(const gfx::Size& desired_icon_size) in ImageDecoder() function in content::ImageDecoder
32 ImageDecoder::~ImageDecoder() { in ~ImageDecoder()
35 SkBitmap ImageDecoder::Decode(const unsigned char* data, size_t size) const { in Decode()
42 std::vector<SkBitmap> ImageDecoder::DecodeAll( in DecodeAll()
Dimage_decoder.h19 class ImageDecoder {
24 ImageDecoder();
25 ImageDecoder(const gfx::Size& desired_icon_size);
26 ~ImageDecoder();
41 DISALLOW_COPY_AND_ASSIGN(ImageDecoder);
/external/chromium_org/chrome/browser/android/
Dlogo_service.cc47 class LogoDecoderDelegate : public ImageDecoder::Delegate {
50 const scoped_refptr<ImageDecoder>& image_decoder, in LogoDecoderDelegate()
62 (const ImageDecoder*) NULL), in LogoDecoderDelegate()
71 virtual void OnImageDecoded(const ImageDecoder* decoder, in OnImageDecoded()
77 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE { in OnDecodeImageFailed()
83 scoped_refptr<ImageDecoder> image_decoder_;
99 scoped_refptr<ImageDecoder> image_decoder = new ImageDecoder( in DecodeUntrustedImage()
102 ImageDecoder::DEFAULT_CODEC); in DecodeUntrustedImage()
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/
DImageDecoder.cpp85 PassOwnPtr<ImageDecoder> ImageDecoder::create(const SharedBuffer& data, ImageSource::AlphaOption al… in create()
117 bool ImageDecoder::frameHasAlphaAtIndex(size_t index) const in frameHasAlphaAtIndex()
122 bool ImageDecoder::frameIsCompleteAtIndex(size_t index) const in frameIsCompleteAtIndex()
128 unsigned ImageDecoder::frameBytesAtIndex(size_t index) const in frameBytesAtIndex()
136 bool ImageDecoder::deferredImageDecodingEnabled() in deferredImageDecodingEnabled()
141 size_t ImageDecoder::clearCacheExceptFrame(size_t clearExceptFrame) in clearCacheExceptFrame()
157 void ImageDecoder::clearFrameBuffer(size_t frameIndex) in clearFrameBuffer()
162 size_t ImageDecoder::findRequiredPreviousFrame(size_t frameIndex, bool frameRectIsOpaque) in findRequiredPreviousFrame()
DImageDecoder.h55 class PLATFORM_EXPORT ImageDecoder {
56 WTF_MAKE_NONCOPYABLE(ImageDecoder); WTF_MAKE_FAST_ALLOCATED;
60ImageDecoder(ImageSource::AlphaOption alphaOption, ImageSource::GammaAndColorProfileOption gammaAn… in ImageDecoder() function
68 virtual ~ImageDecoder() { } in ~ImageDecoder()
74 …static PassOwnPtr<ImageDecoder> create(const SharedBuffer& data, ImageSource::AlphaOption, ImageSo…
77 …static PassOwnPtr<ImageDecoder> create(const SharedBuffer& data, ImageSource::AlphaOption, ImageSo…
/external/chromium_org/chrome/browser/chromeos/login/users/avatar/
Duser_image_loader.h29 public ImageDecoder::Delegate {
36 ImageDecoder::ImageCodec image_codec,
67 typedef std::map<const ImageDecoder*, ImageInfo> ImageInfoMap;
82 virtual void OnImageDecoded(const ImageDecoder* decoder,
84 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE;
95 const ImageDecoder::ImageCodec image_codec_;
Duser_image_manager_test_util.cc56 scoped_refptr<ImageDecoder> image_decoder = new ImageDecoder( in Load()
59 ImageDecoder::ROBUST_JPEG_CODEC); in Load()
65 void ImageLoader::OnImageDecoded(const ImageDecoder* decoder, in OnImageDecoded()
72 void ImageLoader::OnDecodeImageFailed(const ImageDecoder* decoder) { in OnDecodeImageFailed()
Duser_image_loader.cc35 ImageDecoder::ImageCodec image_codec, in UserImageLoader()
82 scoped_refptr<ImageDecoder> image_decoder = in DecodeImage()
83 new ImageDecoder(this, *data, image_codec_); in DecodeImage()
88 void UserImageLoader::OnImageDecoded(const ImageDecoder* decoder, in OnImageDecoded()
131 if (image_codec_ == ImageDecoder::ROBUST_JPEG_CODEC) in OnImageDecoded()
137 void UserImageLoader::OnDecodeImageFailed(const ImageDecoder* decoder) { in OnDecodeImageFailed()
Duser_image_manager_test_util.h34 class ImageLoader : public ImageDecoder::Delegate {
42 virtual void OnImageDecoded(const ImageDecoder* decoder,
44 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE;
/external/chromium_org/chrome/browser/chromeos/extensions/
Dwallpaper_function_base.cc44 : public ImageDecoder::Delegate {
57 unsafe_image_decoder_ = new ImageDecoder(this, image_data, in Start()
58 ImageDecoder::DEFAULT_CODEC); in Start()
68 virtual void OnImageDecoded(const ImageDecoder* decoder, in OnImageDecoded()
85 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE { in OnDecodeImageFailed()
93 scoped_refptr<ImageDecoder> unsafe_image_decoder_;
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/bmp/
DBMPImageDecoder.cpp47 : ImageDecoder(alphaOption, gammaAndColorProfileOption, maxDecodedBytes) in BMPImageDecoder()
57 ImageDecoder::setData(data, allDataReceived); in setData()
64 if (!ImageDecoder::isSizeAvailable()) in isSizeAvailable()
67 return ImageDecoder::isSizeAvailable(); in isSizeAvailable()
92 return ImageDecoder::setFailed(); in setFailed()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DImageDecodingStore.h116 bool lockDecoder(const ImageFrameGenerator*, const SkISize& scaledSize, ImageDecoder**);
117 void unlockDecoder(const ImageFrameGenerator*, const ImageDecoder*);
118 void insertDecoder(const ImageFrameGenerator*, PassOwnPtr<ImageDecoder>, bool isDiscardable);
119 void removeDecoder(const ImageFrameGenerator*, const ImageDecoder*);
225 …erCacheEntry> create(const ImageFrameGenerator* generator, PassOwnPtr<ImageDecoder> decoder, bool … in create()
230 …DecoderCacheEntry(const ImageFrameGenerator* generator, int count, PassOwnPtr<ImageDecoder> decode… in DecoderCacheEntry()
244 …tic DecoderCacheKey makeCacheKey(const ImageFrameGenerator* generator, const ImageDecoder* decoder) in makeCacheKey()
249 ImageDecoder* cachedDecoder() const { return m_cachedDecoder.get(); } in cachedDecoder()
252 OwnPtr<ImageDecoder> m_cachedDecoder;
DImageDecodingStoreTest.cpp247 OwnPtr<ImageDecoder> decoder = MockImageDecoder::create(this); in TEST_F()
259 OwnPtr<ImageDecoder> decoder = MockImageDecoder::create(this); in TEST_F()
261 const ImageDecoder* refDecoder = decoder.get(); in TEST_F()
266 ImageDecoder* testDecoder; in TEST_F()
276 OwnPtr<ImageDecoder> decoder1 = MockImageDecoder::create(this); in TEST_F()
277 OwnPtr<ImageDecoder> decoder2 = MockImageDecoder::create(this); in TEST_F()
278 OwnPtr<ImageDecoder> decoder3 = MockImageDecoder::create(this); in TEST_F()
303 OwnPtr<ImageDecoder> decoder1 = MockImageDecoder::create(this); in TEST_F()
304 OwnPtr<ImageDecoder> decoder2 = MockImageDecoder::create(this); in TEST_F()
305 OwnPtr<ImageDecoder> decoder3 = MockImageDecoder::create(this); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/bitmap_fetcher/
Dbitmap_fetcher.h26 public ImageDecoder::Delegate {
62 virtual void OnImageDecoded(const ImageDecoder* decoder,
66 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE;
73 scoped_refptr<ImageDecoder> image_decoder_;
Dbitmap_fetcher.cc49 new ImageDecoder(this, image_data, ImageDecoder::DEFAULT_CODEC); in OnURLFetchComplete()
67 void BitmapFetcher::OnImageDecoded(const ImageDecoder* decoder, in OnImageDecoded()
73 void BitmapFetcher::OnDecodeImageFailed(const ImageDecoder* decoder) { in OnDecodeImageFailed()
/external/chromium_org/chrome/browser/ui/app_list/search/common/
Durl_icon_source.h29 public ImageDecoder::Delegate {
54 virtual void OnImageDecoded(const ImageDecoder* decoder,
56 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE;
67 scoped_refptr<ImageDecoder> image_decoder_;
Durl_icon_source.cc76 new ImageDecoder(this, unsafe_icon_data, ImageDecoder::DEFAULT_CODEC); in OnURLFetchComplete()
81 void UrlIconSource::OnImageDecoded(const ImageDecoder* decoder, in OnImageDecoded()
92 const ImageDecoder* decoder) { in OnDecodeImageFailed()
/external/chromium_org/third_party/WebKit/Source/platform/image-decoders/webp/
DWEBPImageDecoder.cpp131 : ImageDecoder(alphaOption, gammaAndColorProfileOption, maxDecodedBytes) in WEBPImageDecoder()
177 if (!ImageDecoder::isSizeAvailable()) in isSizeAvailable()
180 return ImageDecoder::isSizeAvailable(); in isSizeAvailable()
241 ImageDecoder::setData(data, allDataReceived); in setData()
255 return ImageDecoder::frameIsCompleteAtIndex(index); in frameIsCompleteAtIndex()
289 if (!ImageDecoder::isSizeAvailable()) { in updateDemuxer()
304 ASSERT(ImageDecoder::isSizeAvailable()); in updateDemuxer()
399 return ImageDecoder::clearCacheExceptFrame(clearExceptFrame); in clearCacheExceptFrame()
408 ImageDecoder::clearFrameBuffer(frameIndex); in clearFrameBuffer()
419 qcms_profile* deviceProfile = ImageDecoder::qcmsOutputDeviceProfile(); in createColorTransform()
[all …]
/external/chromium_org/chrome/browser/media_galleries/fileapi/
Dsupported_image_type_validator.cc50 class ImageDecoderDelegateAdapter : public ImageDecoder::Delegate {
65 virtual void OnImageDecoded(const ImageDecoder* /*decoder*/, in OnImageDecoded() argument
71 virtual void OnDecodeImageFailed(const ImageDecoder* /*decoder*/) OVERRIDE { in OnDecodeImageFailed() argument
131 decoder_ = new ImageDecoder(adapter, adapter->data(), in OnFileOpen()
132 ImageDecoder::DEFAULT_CODEC); in OnFileOpen()
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/
Dchange_picture_options_handler.h32 public ImageDecoder::Delegate,
116 virtual void OnImageDecoded(const ImageDecoder* decoder,
118 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE;
143 scoped_refptr<ImageDecoder> image_decoder_;
/external/chromium_org/chrome/browser/apps/drive/
Ddrive_app_converter.cc35 public ImageDecoder::Delegate {
75 new ImageDecoder(this, unsafe_icon_data, ImageDecoder::DEFAULT_CODEC); in OnURLFetchComplete()
81 virtual void OnImageDecoded(const ImageDecoder* decoder, in OnImageDecoded()
88 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE { in OnDecodeImageFailed()
97 scoped_refptr<ImageDecoder> image_decoder_;
/external/chromium_org/chrome/browser/chromeos/login/screens/
Duser_image_screen.h32 public ImageDecoder::Delegate,
71 virtual void OnImageDecoded(const ImageDecoder* decoder,
73 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE;
118 scoped_refptr<ImageDecoder> image_decoder_;
/external/chromium_org/third_party/WebKit/Source/platform/graphics/test/
DMockImageDecoder.h50 class MockImageDecoder : public ImageDecoder {
55 …: ImageDecoder(ImageSource::AlphaPremultiplied, ImageSource::GammaAndColorProfileApplied, noDecode… in MockImageDecoder()
71 ImageDecoder::setSize(width, height); in setSize()
128 virtual PassOwnPtr<ImageDecoder> create() OVERRIDE in create()

123