aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/image_pict.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-03-09 16:36:32 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-10 15:02:11 +0000
commitb726d58efc91c4eefa5cea0881a823ee108db8fd (patch)
tree2d43fa8827137d7491f6030c8f99d138e7100d5d /gm/image_pict.cpp
parentf7005200725f1a96c7174be3e9a3175f9aa19151 (diff)
Partially defer SkImage_Gpu
One of SkImageCacherator, GrBitmapTextureMaker, GrImageTextureMaker, GrTextureAdjuster, GrTextureProducer or SkImage has to take the first step. This is probably the least odd of the options. Change-Id: Ie167034553451f4b3633a5a1548dbd4d75839b3d Reviewed-on: https://skia-review.googlesource.com/9488 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r--gm/image_pict.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp
index 1f273dc615..a6e0bdfcdd 100644
--- a/gm/image_pict.cpp
+++ b/gm/image_pict.cpp
@@ -360,8 +360,7 @@ protected:
return;
}
// No API to draw a GrTexture directly, so we cheat and create a private image subclass
- sk_sp<SkImage> image(new SkImage_Gpu(cache->info().width(), cache->info().height(),
- cache->uniqueID(), kPremul_SkAlphaType,
+ sk_sp<SkImage> image(new SkImage_Gpu(cache->uniqueID(), kPremul_SkAlphaType,
std::move(texture), std::move(texColorSpace),
SkBudgeted::kNo));
canvas->drawImage(image.get(), x, y);