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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 #else | 412 #else |
412 | 413 |
413 bool SkBitmapProcShader::asFragmentProcessor(GrContext*, const SkPaint&, const S
kMatrix&, | 414 bool SkBitmapProcShader::asFragmentProcessor(GrContext*, const SkPaint&, const S
kMatrix&, |
414 const SkMatrix*, GrColor*, GrProces
sorDataManager*, | 415 const SkMatrix*, GrColor*, GrProces
sorDataManager*, |
415 GrFragmentProcessor**) const { | 416 GrFragmentProcessor**) const { |
416 SkDEBUGFAIL("Should not call in GPU-less build"); | 417 SkDEBUGFAIL("Should not call in GPU-less build"); |
417 return false; | 418 return false; |
418 } | 419 } |
419 | 420 |
420 #endif | 421 #endif |
OLD | NEW |