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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C; tab-width: 2; 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 U. S. A. 67 U. S. A.
68 68
69 CompuServe Incorporated maintains a mailing list with all those individuals and 69 CompuServe Incorporated maintains a mailing list with all those individuals and
70 organizations who wish to receive copies of this document when it is corrected 70 organizations who wish to receive copies of this document when it is corrected
71 or revised. This service is offered free of charge; please provide us with your 71 or revised. This service is offered free of charge; please provide us with your
72 mailing address. 72 mailing address.
73 */ 73 */
74 74
75 #include "platform/image-decoders/gif/GIFImageReader.h" 75 #include "platform/image-decoders/gif/GIFImageReader.h"
76 76
77 #include <string.h>
77 #include "wtf/PtrUtil.h" 78 #include "wtf/PtrUtil.h"
78 #include <string.h>
79 79
80 using blink::GIFImageDecoder; 80 using blink::GIFImageDecoder;
81 81
82 // GETN(n, s) requests at least 'n' bytes available from 'q', at start of state 82 // GETN(n, s) requests at least 'n' bytes available from 'q', at start of state
83 // 's'. 83 // 's'.
84 // 84 //
85 // Note: the hold will never need to be bigger than 256 bytes, as each GIF block 85 // Note: the hold will never need to be bigger than 256 bytes, as each GIF block
86 // (except colormaps) can never be bigger than 256 bytes. Colormaps are directly 86 // (except colormaps) can never be bigger than 256 bytes. Colormaps are directly
87 // copied in the resp. global_colormap or dynamically allocated local_colormap, 87 // copied in the resp. global_colormap or dynamically allocated local_colormap,
88 // so a fixed buffer in GIFImageReader is good enough. This buffer is only 88 // so a fixed buffer in GIFImageReader is good enough. This buffer is only
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 rowIter = rowBuffer.begin(); 881 rowIter = rowBuffer.begin();
882 rowsRemaining = m_frameContext->height(); 882 rowsRemaining = m_frameContext->height();
883 883
884 // Clearing the whole suffix table lets us be more tolerant of bad data. 884 // Clearing the whole suffix table lets us be more tolerant of bad data.
885 for (int i = 0; i < clearCode; ++i) { 885 for (int i = 0; i < clearCode; ++i) {
886 suffix[i] = i; 886 suffix[i] = i;
887 suffixLength[i] = 1; 887 suffixLength[i] = 1;
888 } 888 }
889 return true; 889 return true;
890 } 890 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698