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

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 1826893002: Switch new SkImageFilter internal methods over to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Change method name to drawSpriteWithFilter Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/SkGpuDevice.h ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGpuDevice.cpp
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index dc1edd4b9874f6e78ee1ab15e310b01e484f3fda..724d77b4c03479d1c9212095a2803ffd6aaa0195 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -226,10 +226,10 @@ GrRenderTarget* SkGpuDevice::CreateRenderTarget(
// gpu-specific paths. This mirrors SkCanvas::internalDrawDevice (the other
// use of SkImageFilter::filterImage) in that the source and dest will have
// homogenous backing (e.g., raster or gpu).
-void SkGpuDevice::drawBitmapAsSpriteWithImageFilter(const SkDraw& draw, const SkBitmap& bitmap,
- int x, int y, const SkPaint& paint) {
+void SkGpuDevice::drawSpriteWithFilter(const SkDraw& draw, const SkBitmap& bitmap,
+ int x, int y, const SkPaint& paint) {
if (bitmap.getTexture()) {
- INHERITED::drawBitmapAsSpriteWithImageFilter(draw, bitmap, x, y, paint);
+ INHERITED::drawSpriteWithFilter(draw, bitmap, x, y, paint);
return;
}
@@ -250,7 +250,7 @@ void SkGpuDevice::drawBitmapAsSpriteWithImageFilter(const SkDraw& draw, const Sk
GrWrapTextureInBitmap(texture, texture->width(), texture->height(),
bitmap.isOpaque(), &newBitmap);
- INHERITED::drawBitmapAsSpriteWithImageFilter(draw, newBitmap, x, y, paint);
+ INHERITED::drawSpriteWithFilter(draw, newBitmap, x, y, paint);
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « src/gpu/SkGpuDevice.h ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698