| OLD | NEW |
| 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 #include "SkColorPriv.h" | 8 #include "SkColorPriv.h" |
| 9 #include "SkFlattenableBuffers.h" | 9 #include "SkFlattenableBuffers.h" |
| 10 #include "SkPixelRef.h" | 10 #include "SkPixelRef.h" |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 GrTexture* texture = GrLockAndRefCachedBitmapTexture(context, fRawBitmap, &p
arams); | 401 GrTexture* texture = GrLockAndRefCachedBitmapTexture(context, fRawBitmap, &p
arams); |
| 402 | 402 |
| 403 if (NULL == texture) { | 403 if (NULL == texture) { |
| 404 SkErrorInternals::SetError( kInternalError_SkError, | 404 SkErrorInternals::SetError( kInternalError_SkError, |
| 405 "Couldn't convert bitmap to texture."); | 405 "Couldn't convert bitmap to texture."); |
| 406 return NULL; | 406 return NULL; |
| 407 } | 407 } |
| 408 | 408 |
| 409 GrEffectRef* effect = NULL; | 409 GrEffectRef* effect = NULL; |
| 410 if (paintFilterLevel == SkPaint::kHigh_FilterLevel) { | 410 if (paintFilterLevel == SkPaint::kHigh_FilterLevel) { |
| 411 effect = GrBicubicEffect::Create(texture, matrix, params); | 411 effect = GrBicubicEffect::Create(texture, matrix, tm); |
| 412 } else { | 412 } else { |
| 413 effect = GrSimpleTextureEffect::Create(texture, matrix, params); | 413 effect = GrSimpleTextureEffect::Create(texture, matrix, params); |
| 414 } | 414 } |
| 415 GrUnlockAndUnrefCachedBitmapTexture(texture); | 415 GrUnlockAndUnrefCachedBitmapTexture(texture); |
| 416 return effect; | 416 return effect; |
| 417 } | 417 } |
| 418 #endif | 418 #endif |
| OLD | NEW |