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

Side by Side Diff: src/images/bmpdecoderhelper.h

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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/SkScaledBitmapSampler.cpp ('k') | src/images/bmpdecoderhelper.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 #ifndef IMAGE_CODEC_BMPDECODERHELPER_H__ 10 #ifndef IMAGE_CODEC_BMPDECODERHELPER_H__
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 namespace image_codec { 50 namespace image_codec {
51 51
52 class BmpDecoderCallback { 52 class BmpDecoderCallback {
53 public: 53 public:
54 BmpDecoderCallback() { } 54 BmpDecoderCallback() { }
55 virtual ~BmpDecoderCallback() {} 55 virtual ~BmpDecoderCallback() {}
56 56
57 /** 57 /**
58 * This is called once for an image. It is passed the width and height and 58 * This is called once for an image. It is passed the width and height and
59 * should return the address of a buffer that is large enough to store 59 * should return the address of a buffer that is large enough to store
60 * all of the resulting pixels (widht * height * 3 bytes). If it returns NULL, 60 * all of the resulting pixels (widht * height * 3 bytes). If it returns nullp tr,
61 * then the decoder will abort, but return true, as the caller has received 61 * then the decoder will abort, but return true, as the caller has received
62 * valid dimensions. 62 * valid dimensions.
63 */ 63 */
64 virtual uint8* SetSize(int width, int height) = 0; 64 virtual uint8* SetSize(int width, int height) = 0;
65 65
66 private: 66 private:
67 DISALLOW_EVIL_CONSTRUCTORS(BmpDecoderCallback); 67 DISALLOW_EVIL_CONSTRUCTORS(BmpDecoderCallback);
68 }; 68 };
69 69
70 class BmpDecoderHelper { 70 class BmpDecoderHelper {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 int redShiftLeft_; 107 int redShiftLeft_;
108 int greenShiftLeft_; 108 int greenShiftLeft_;
109 int blueShiftLeft_; 109 int blueShiftLeft_;
110 uint8* output_; 110 uint8* output_;
111 bool inverted_; 111 bool inverted_;
112 }; 112 };
113 113
114 } // namespace 114 } // namespace
115 115
116 #endif 116 #endif
OLDNEW
« no previous file with comments | « src/images/SkScaledBitmapSampler.cpp ('k') | src/images/bmpdecoderhelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698