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

Side by Side Diff: src/animator/SkDrawBitmap.cpp

Issue 12772003: Removed unused parameters (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « src/animator/SkDisplayMovie.cpp ('k') | src/animator/SkDrawColor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkDrawBitmap.h" 10 #include "SkDrawBitmap.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 case 1: formatName = "A1"; break; 78 case 1: formatName = "A1"; break;
79 case 2: formatName = "A8"; break; 79 case 2: formatName = "A8"; break;
80 case 3: formatName = "Index8"; break; 80 case 3: formatName = "Index8"; break;
81 case 4: formatName = "RGB16"; break; 81 case 4: formatName = "RGB16"; break;
82 case 5: formatName = "RGB32"; break; 82 case 5: formatName = "RGB32"; break;
83 } 83 }
84 SkDebugf("format=\"%s\" />\n", formatName); 84 SkDebugf("format=\"%s\" />\n", formatName);
85 } 85 }
86 #endif 86 #endif
87 87
88 void SkDrawBitmap::onEndElement(SkAnimateMaker& maker) { 88 void SkDrawBitmap::onEndElement(SkAnimateMaker&) {
89 SkASSERT(format != (SkBitmap::Config) -1); 89 SkASSERT(format != (SkBitmap::Config) -1);
90 SkASSERT(width != -1); 90 SkASSERT(width != -1);
91 SkASSERT(height != -1); 91 SkASSERT(height != -1);
92 SkASSERT(rowBytes >= 0); 92 SkASSERT(rowBytes >= 0);
93 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes); 93 fBitmap.setConfig((SkBitmap::Config) format, width, height, rowBytes);
94 fBitmap.allocPixels(); 94 fBitmap.allocPixels();
95 if (fColorSet) 95 if (fColorSet)
96 fBitmap.eraseColor(fColor); 96 fBitmap.eraseColor(fColor);
97 } 97 }
98 98
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 fLast.set(src); 189 fLast.set(src);
190 fBitmap.reset(); 190 fBitmap.reset();
191 191
192 //SkStream* stream = SkStream::GetURIStream(fUriBase, src.c_str()); 192 //SkStream* stream = SkStream::GetURIStream(fUriBase, src.c_str());
193 SkStream* stream = new SkFILEStream(src.c_str()); 193 SkStream* stream = new SkFILEStream(src.c_str());
194 194
195 SkAutoTDelete<SkStream> autoDel(stream); 195 SkAutoTDelete<SkStream> autoDel(stream);
196 SkImageDecoder::DecodeStream(stream, &fBitmap); 196 SkImageDecoder::DecodeStream(stream, &fBitmap);
197 } 197 }
198 } 198 }
OLDNEW
« no previous file with comments | « src/animator/SkDisplayMovie.cpp ('k') | src/animator/SkDrawColor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698