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

Side by Side Diff: src/images/SkScaledBitmapSampler.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/SkMovie_gif.cpp ('k') | src/images/SkScaledBitmapSampler.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 2011 Google Inc. 3 * Copyright 2011 Google Inc.
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 #ifndef SkScaledBitmapSampler_DEFINED 8 #ifndef SkScaledBitmapSampler_DEFINED
9 #define SkScaledBitmapSampler_DEFINED 9 #define SkScaledBitmapSampler_DEFINED
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 : fDither(dec.getDitherImage()) 42 : fDither(dec.getDitherImage())
43 , fPremultiplyAlpha(!dec.getRequireUnpremultipliedColors()) 43 , fPremultiplyAlpha(!dec.getRequireUnpremultipliedColors())
44 , fSkipZeros(dec.getSkipWritingZeroes()) 44 , fSkipZeros(dec.getSkipWritingZeroes())
45 { } 45 { }
46 }; 46 };
47 47
48 // Given a dst bitmap (with pixels already allocated) and a src-config, 48 // Given a dst bitmap (with pixels already allocated) and a src-config,
49 // prepares iterator to process the src colors and write them into dst. 49 // prepares iterator to process the src colors and write them into dst.
50 // Returns false if the request cannot be fulfulled. 50 // Returns false if the request cannot be fulfulled.
51 bool begin(SkBitmap* dst, SrcConfig sc, const SkImageDecoder& decoder, 51 bool begin(SkBitmap* dst, SrcConfig sc, const SkImageDecoder& decoder,
52 const SkPMColor* = NULL); 52 const SkPMColor* = nullptr);
53 bool begin(SkBitmap* dst, SrcConfig sc, const Options& opts, 53 bool begin(SkBitmap* dst, SrcConfig sc, const Options& opts,
54 const SkPMColor* = NULL); 54 const SkPMColor* = nullptr);
55 // call with row of src pixels, for y = 0...scaledHeight-1. 55 // call with row of src pixels, for y = 0...scaledHeight-1.
56 // returns true if the row had non-opaque alpha in it 56 // returns true if the row had non-opaque alpha in it
57 bool next(const uint8_t* SK_RESTRICT src); 57 bool next(const uint8_t* SK_RESTRICT src);
58 58
59 // Like next(), but specifies the y value of the source row, so the 59 // Like next(), but specifies the y value of the source row, so the
60 // rows can come in any order. If the row is not part of the output 60 // rows can come in any order. If the row is not part of the output
61 // sample, it will be skipped. Only sampleInterlaced OR next should 61 // sample, it will be skipped. Only sampleInterlaced OR next should
62 // be called for one SkScaledBitmapSampler. 62 // be called for one SkScaledBitmapSampler.
63 bool sampleInterlaced(const uint8_t* SK_RESTRICT src, int srcY); 63 bool sampleInterlaced(const uint8_t* SK_RESTRICT src, int srcY);
64 64
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // optional reference to the src colors if the src is a palette model 98 // optional reference to the src colors if the src is a palette model
99 const SkPMColor* fCTable; 99 const SkPMColor* fCTable;
100 100
101 #ifdef SK_DEBUG 101 #ifdef SK_DEBUG
102 // Helper class allowing a test to have access to fRowProc. 102 // Helper class allowing a test to have access to fRowProc.
103 friend class RowProcTester; 103 friend class RowProcTester;
104 #endif 104 #endif
105 }; 105 };
106 106
107 #endif 107 #endif
OLDNEW
« no previous file with comments | « src/images/SkMovie_gif.cpp ('k') | src/images/SkScaledBitmapSampler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698