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

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

Issue 99523008: Make GrBicubicEffect take tile modes rather than GrTextureParams. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: small simplification Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « include/gpu/GrTextureAccess.h ('k') | src/gpu/SkGpuDevice.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 /* 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
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
OLDNEW
« no previous file with comments | « include/gpu/GrTextureAccess.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698