| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 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 #include "SkPictureShader.h" | 8 #include "SkPictureShader.h" |
| 9 | 9 |
| 10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 int maxTextureSize = 0; | 322 int maxTextureSize = 0; |
| 323 if (args.fContext) { | 323 if (args.fContext) { |
| 324 maxTextureSize = args.fContext->caps()->maxTextureSize(); | 324 maxTextureSize = args.fContext->caps()->maxTextureSize(); |
| 325 } | 325 } |
| 326 sk_sp<SkShader> bitmapShader(this->refBitmapShader(*args.fViewMatrix, args.f
LocalMatrix, | 326 sk_sp<SkShader> bitmapShader(this->refBitmapShader(*args.fViewMatrix, args.f
LocalMatrix, |
| 327 maxTextureSize)); | 327 maxTextureSize)); |
| 328 if (!bitmapShader) { | 328 if (!bitmapShader) { |
| 329 return nullptr; | 329 return nullptr; |
| 330 } | 330 } |
| 331 return bitmapShader->asFragmentProcessor(SkShader::AsFPArgs( | 331 return bitmapShader->asFragmentProcessor(SkShader::AsFPArgs( |
| 332 args.fContext, args.fViewMatrix, nullptr, args.fFilterQuality, args.fGam
maTreatment)); | 332 args.fContext, args.fViewMatrix, nullptr, args.fFilterQuality, args.fDst
ColorSpace, |
| 333 args.fGammaTreatment)); |
| 333 } | 334 } |
| 334 #endif | 335 #endif |
| OLD | NEW |