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

Side by Side Diff: src/images/SkImageDecoder_libbmp.cpp

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 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
« no previous file with comments | « src/images/SkImageDecoder_ktx.cpp ('k') | src/images/SkImageDecoder_libgif.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 2007 The Android Open Source Project 3 * Copyright 2007 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 "bmpdecoderhelper.h" 10 #include "bmpdecoderhelper.h"
11 #include "SkColorPriv.h" 11 #include "SkColorPriv.h"
12 #include "SkImageDecoder.h" 12 #include "SkImageDecoder.h"
13 #include "SkScaledBitmapSampler.h" 13 #include "SkScaledBitmapSampler.h"
14 #include "SkStream.h" 14 #include "SkStream.h"
15 #include "SkStreamPriv.h" 15 #include "SkStreamPriv.h"
16 #include "SkTDArray.h" 16 #include "SkTDArray.h"
17 17
18 class SkBMPImageDecoder : public SkImageDecoder { 18 class SkBMPImageDecoder : public SkImageDecoder {
19 public: 19 public:
20 SkBMPImageDecoder() {} 20 SkBMPImageDecoder() {}
21 21
22 virtual Format getFormat() const SK_OVERRIDE { 22 Format getFormat() const SK_OVERRIDE {
23 return kBMP_Format; 23 return kBMP_Format;
24 } 24 }
25 25
26 protected: 26 protected:
27 virtual Result onDecode(SkStream* stream, SkBitmap* bm, Mode mode) SK_OVERRI DE; 27 Result onDecode(SkStream* stream, SkBitmap* bm, Mode mode) SK_OVERRIDE;
28 28
29 private: 29 private:
30 typedef SkImageDecoder INHERITED; 30 typedef SkImageDecoder INHERITED;
31 }; 31 };
32 32
33 /////////////////////////////////////////////////////////////////////////////// 33 ///////////////////////////////////////////////////////////////////////////////
34 DEFINE_DECODER_CREATOR(BMPImageDecoder); 34 DEFINE_DECODER_CREATOR(BMPImageDecoder);
35 /////////////////////////////////////////////////////////////////////////////// 35 ///////////////////////////////////////////////////////////////////////////////
36 36
37 static bool is_bmp(SkStreamRewindable* stream) { 37 static bool is_bmp(SkStreamRewindable* stream) {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 const int dstHeight = sampler.scaledHeight(); 153 const int dstHeight = sampler.scaledHeight();
154 const uint8_t* srcRow = callback.rgb(); 154 const uint8_t* srcRow = callback.rgb();
155 155
156 srcRow += sampler.srcY0() * srcRowBytes; 156 srcRow += sampler.srcY0() * srcRowBytes;
157 for (int y = 0; y < dstHeight; y++) { 157 for (int y = 0; y < dstHeight; y++) {
158 sampler.next(srcRow); 158 sampler.next(srcRow);
159 srcRow += sampler.srcDY() * srcRowBytes; 159 srcRow += sampler.srcDY() * srcRowBytes;
160 } 160 }
161 return kSuccess; 161 return kSuccess;
162 } 162 }
OLDNEW
« no previous file with comments | « src/images/SkImageDecoder_ktx.cpp ('k') | src/images/SkImageDecoder_libgif.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698