Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: src/core/SkPictureShader.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkPictureShader.h ('k') | src/core/SkShader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 this->INHERITED::toString(str); 312 this->INHERITED::toString(str);
313 } 313 }
314 #endif 314 #endif
315 315
316 #if SK_SUPPORT_GPU 316 #if SK_SUPPORT_GPU
317 const GrFragmentProcessor* SkPictureShader::asFragmentProcessor( 317 const GrFragmentProcessor* SkPictureShader::asFragmentProcessor(
318 GrContext* context, 318 GrContext* context,
319 const SkMatrix& viewM, 319 const SkMatrix& viewM,
320 const SkMatrix* localMatrix, 320 const SkMatrix* localMatrix,
321 SkFilterQuality fq) const { 321 SkFilterQuality fq,
322 GrRenderTarget* dst) const {
322 int maxTextureSize = 0; 323 int maxTextureSize = 0;
323 if (context) { 324 if (context) {
324 maxTextureSize = context->caps()->maxTextureSize(); 325 maxTextureSize = context->caps()->maxTextureSize();
325 } 326 }
326 SkAutoTUnref<SkShader> bitmapShader(this->refBitmapShader(viewM, localMatrix , maxTextureSize)); 327 SkAutoTUnref<SkShader> bitmapShader(this->refBitmapShader(viewM, localMatrix , maxTextureSize));
327 if (!bitmapShader) { 328 if (!bitmapShader) {
328 return nullptr; 329 return nullptr;
329 } 330 }
330 return bitmapShader->asFragmentProcessor(context, viewM, nullptr, fq); 331 return bitmapShader->asFragmentProcessor(context, viewM, nullptr, fq, dst);
331 } 332 }
332 #endif 333 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureShader.h ('k') | src/core/SkShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698