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

Side by Side Diff: sky/engine/platform/image-decoders/gif/GIFImageReader.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 5000 Arlington Center Boulevard 65 5000 Arlington Center Boulevard
66 Columbus, Ohio 43220 66 Columbus, Ohio 43220
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 "config.h" 75 #include "sky/engine/config.h"
76 #include "platform/image-decoders/gif/GIFImageReader.h" 76 #include "platform/image-decoders/gif/GIFImageReader.h"
77 77
78 #include <string.h> 78 #include <string.h>
79 #include "platform/graphics/ImageSource.h" 79 #include "sky/engine/platform/graphics/ImageSource.h"
80 80
81 namespace blink { 81 namespace blink {
82 82
83 using blink::GIFImageDecoder; 83 using blink::GIFImageDecoder;
84 84
85 // GETN(n, s) requests at least 'n' bytes available from 'q', at start of state 's'. 85 // GETN(n, s) requests at least 'n' bytes available from 'q', at start of state 's'.
86 // 86 //
87 // Note, the hold will never need to be bigger than 256 bytes to gather up in th e hold, 87 // Note, the hold will never need to be bigger than 256 bytes to gather up in th e hold,
88 // as each GIF block (except colormaps) can never be bigger than 256 bytes. 88 // as each GIF block (except colormaps) can never be bigger than 256 bytes.
89 // Colormaps are directly copied in the resp. global_colormap or dynamically all ocated local_colormap. 89 // Colormaps are directly copied in the resp. global_colormap or dynamically all ocated local_colormap.
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 795
796 // Clearing the whole suffix table lets us be more tolerant of bad data. 796 // Clearing the whole suffix table lets us be more tolerant of bad data.
797 for (int i = 0; i < clearCode; ++i) { 797 for (int i = 0; i < clearCode; ++i) {
798 suffix[i] = i; 798 suffix[i] = i;
799 suffixLength[i] = 1; 799 suffixLength[i] = 1;
800 } 800 }
801 return true; 801 return true;
802 } 802 }
803 803
804 } // namespace blink 804 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/platform/image-decoders/gif/GIFImageReader.h ('k') | sky/engine/platform/image-decoders/ico/ICOImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698