OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
| 7 |
| 8 #include "SkBitmapProcShader.h" |
| 9 #include "SkBitmapProcState.h" |
8 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
| 11 #include "SkErrorInternals.h" |
| 12 #include "SkPixelRef.h" |
9 #include "SkReadBuffer.h" | 13 #include "SkReadBuffer.h" |
10 #include "SkWriteBuffer.h" | 14 #include "SkWriteBuffer.h" |
11 #include "SkPixelRef.h" | |
12 #include "SkErrorInternals.h" | |
13 #include "SkBitmapProcShader.h" | |
14 | 15 |
15 #if SK_SUPPORT_GPU | 16 #if SK_SUPPORT_GPU |
| 17 #include "effects/GrBicubicEffect.h" |
16 #include "effects/GrSimpleTextureEffect.h" | 18 #include "effects/GrSimpleTextureEffect.h" |
17 #include "effects/GrBicubicEffect.h" | |
18 #endif | 19 #endif |
19 | 20 |
20 SkBitmapProcShader::SkBitmapProcShader(const SkBitmap& src, TileMode tmx, TileMo
de tmy, | 21 SkBitmapProcShader::SkBitmapProcShader(const SkBitmap& src, TileMode tmx, TileMo
de tmy, |
21 const SkMatrix* localMatrix) | 22 const SkMatrix* localMatrix) |
22 : INHERITED(localMatrix) { | 23 : INHERITED(localMatrix) { |
23 fRawBitmap = src; | 24 fRawBitmap = src; |
24 fTileModeX = (uint8_t)tmx; | 25 fTileModeX = (uint8_t)tmx; |
25 fTileModeY = (uint8_t)tmy; | 26 fTileModeY = (uint8_t)tmy; |
26 } | 27 } |
27 | 28 |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 #else | 443 #else |
443 | 444 |
444 bool SkBitmapProcShader::asFragmentProcessor(GrContext*, const SkPaint&, const S
kMatrix&, | 445 bool SkBitmapProcShader::asFragmentProcessor(GrContext*, const SkPaint&, const S
kMatrix&, |
445 const SkMatrix*, GrColor*, GrProces
sorDataManager*, | 446 const SkMatrix*, GrColor*, GrProces
sorDataManager*, |
446 GrFragmentProcessor**) const { | 447 GrFragmentProcessor**) const { |
447 SkDEBUGFAIL("Should not call in GPU-less build"); | 448 SkDEBUGFAIL("Should not call in GPU-less build"); |
448 return false; | 449 return false; |
449 } | 450 } |
450 | 451 |
451 #endif | 452 #endif |
OLD | NEW |