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

Side by Side Diff: Source/core/platform/image-decoders/webp/WEBPImageDecoder.h

Issue 23068027: Animated WebP: Optimize decoding in case of seeking (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@add_noblend_image
Patch Set: Fix assert fail on debug Created 7 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #if USE(QCMSLIB) 62 #if USE(QCMSLIB)
63 qcms_transform* colorTransform() const { return m_transform; } 63 qcms_transform* colorTransform() const { return m_transform; }
64 void createColorTransform(const char* data, size_t); 64 void createColorTransform(const char* data, size_t);
65 void readColorProfile(); 65 void readColorProfile();
66 66
67 bool m_haveReadProfile; 67 bool m_haveReadProfile;
68 qcms_transform* m_transform; 68 qcms_transform* m_transform;
69 #endif 69 #endif
70 70
71 bool updateDemuxer(); 71 bool updateDemuxer();
72 bool initFrameBuffer(const WebPIterator&, size_t frameIndex); 72 bool initFrameBuffer(size_t frameIndex);
73 void applyPostProcessing(size_t frameIndex); 73 void applyPostProcessing(size_t frameIndex);
74 virtual void clearFrameBuffer(size_t frameIndex) OVERRIDE; 74 virtual void clearFrameBuffer(size_t frameIndex) OVERRIDE;
75 75
76 WebPDemuxer* m_demux; 76 WebPDemuxer* m_demux;
77 WebPDemuxState m_demuxState; 77 WebPDemuxState m_demuxState;
78 bool m_haveAlreadyParsedThisData; 78 bool m_haveAlreadyParsedThisData;
79 bool m_haveReadAnimationParameters; 79 bool m_haveReadAnimationParameters;
80 int m_repetitionCount; 80 int m_repetitionCount;
81 int m_decodedHeight; 81 int m_decodedHeight;
82 82
83 void clear(); 83 void clear();
84 void clearDecoder(); 84 void clearDecoder();
85 }; 85 };
86 86
87 } // namespace WebCore 87 } // namespace WebCore
88 88
89 #endif 89 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698