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

Side by Side Diff: WebCore/platform/image-decoders/gif/GIFImageReader.h

Issue 521039: Merge 52833 - Public GIF decoder should stop decoding when allocation fails... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/249/
Patch Set: Created 10 years, 11 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 | Annotate | Revision Log
OLDNEW
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK ***** 2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * 4 *
5 * The contents of this file are subject to the Mozilla Public License Version 5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with 6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at 7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/ 8 * http://www.mozilla.org/MPL/
9 * 9 *
10 * Software distributed under the License is distributed on an "AS IS" basis, 10 * Software distributed under the License is distributed on an "AS IS" basis,
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 delete []global_colormap; 201 delete []global_colormap;
202 global_colormap = 0; 202 global_colormap = 0;
203 delete frame_reader; 203 delete frame_reader;
204 frame_reader = 0; 204 frame_reader = 0;
205 } 205 }
206 206
207 bool read(const unsigned char * buf, unsigned int numbytes, 207 bool read(const unsigned char * buf, unsigned int numbytes,
208 WebCore::GIFImageDecoder::GIFQuery query = WebCore::GIFImageDecode r::GIFFullQuery, unsigned haltAtFrame = -1); 208 WebCore::GIFImageDecoder::GIFQuery query = WebCore::GIFImageDecode r::GIFFullQuery, unsigned haltAtFrame = -1);
209 209
210 private: 210 private:
211 void output_row(); 211 bool output_row();
212 int do_lzw(const unsigned char *q); 212 bool do_lzw(const unsigned char *q);
213 }; 213 };
214 214
215 #endif 215 #endif
OLDNEW
« no previous file with comments | « WebCore/platform/image-decoders/gif/GIFImageDecoder.cpp ('k') | WebCore/platform/image-decoders/gif/GIFImageReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698