Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2007 The Android Open Source Project | 2 * Copyright 2007 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkBitmapProcState_DEFINED | 8 #ifndef SkBitmapProcState_DEFINED |
| 9 #define SkBitmapProcState_DEFINED | 9 #define SkBitmapProcState_DEFINED |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 class SkPaint; | 28 class SkPaint; |
| 29 | 29 |
| 30 struct SkBitmapProcInfo { | 30 struct SkBitmapProcInfo { |
| 31 SkBitmapProcInfo(const SkBitmapProvider&, SkShader::TileMode tmx, SkShader:: TileMode tmy); | 31 SkBitmapProcInfo(const SkBitmapProvider&, SkShader::TileMode tmx, SkShader:: TileMode tmy); |
| 32 SkBitmapProcInfo(const SkBitmap&, SkShader::TileMode tmx, SkShader::TileMode tmy); | 32 SkBitmapProcInfo(const SkBitmap&, SkShader::TileMode tmx, SkShader::TileMode tmy); |
| 33 ~SkBitmapProcInfo(); | 33 ~SkBitmapProcInfo(); |
| 34 | 34 |
| 35 const SkBitmapProvider fProvider; | 35 const SkBitmapProvider fProvider; |
| 36 | 36 |
| 37 SkPixmap fPixmap; | 37 SkPixmap fPixmap; |
| 38 SkMatrix fInvMatrix; // copy of what is in fBMState, can we remove the dup? | 38 SkMatrix fInvMatrix; // This changes based on tile mode. |
| 39 SkMatrix fRealInvMatrix; // The actual inverse matrix. | |
|
f(malita)
2016/03/22 20:55:26
Do we actually need/use the fInvMatrix adjustment
herb_g
2016/03/22 21:10:40
I'll add a todo to clean this up.
| |
| 39 SkColor fPaintColor; | 40 SkColor fPaintColor; |
| 40 SkShader::TileMode fTileModeX; | 41 SkShader::TileMode fTileModeX; |
| 41 SkShader::TileMode fTileModeY; | 42 SkShader::TileMode fTileModeY; |
| 42 SkFilterQuality fFilterQuality; | 43 SkFilterQuality fFilterQuality; |
| 43 SkMatrix::TypeMask fInvType; | 44 SkMatrix::TypeMask fInvType; |
| 44 | 45 |
| 45 bool init(const SkMatrix& inverse, const SkPaint&); | 46 bool init(const SkMatrix& inverse, const SkPaint&); |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 enum { | 49 enum { |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 253 SkFixed fixedY() const { return SkFractionalIntToFixed(fY); } | 254 SkFixed fixedY() const { return SkFractionalIntToFixed(fY); } |
| 254 | 255 |
| 255 int intX() const { return SkFractionalIntToInt(fX); } | 256 int intX() const { return SkFractionalIntToInt(fX); } |
| 256 int intY() const { return SkFractionalIntToInt(fY); } | 257 int intY() const { return SkFractionalIntToInt(fY); } |
| 257 | 258 |
| 258 private: | 259 private: |
| 259 SkFractionalInt fX, fY; | 260 SkFractionalInt fX, fY; |
| 260 }; | 261 }; |
| 261 | 262 |
| 262 #endif | 263 #endif |
| OLD | NEW |