aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGpuDevice.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-03-16 07:51:56 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-16 12:31:50 +0000
commit0c984a0af30989fe20b1f8af18867983a88c48b6 (patch)
tree5504e293a1c0d864d4c35a481d31beb55acb0c6b /src/gpu/SkGpuDevice.cpp
parentf49b1e0ad955c437675eae6e8bd64a2e0941e204 (diff)
More pre-emptive proxification
These methods are not called yet. This CL is broken out of: https://skia-review.googlesource.com/c/8823/ (Remove GrFragmentProcessor-derived class' GrTexture-based ctors) Change-Id: I2bf38202750e91e66a8044a790ccfe34d59e08a7 Reviewed-on: https://skia-review.googlesource.com/9683 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r--src/gpu/SkGpuDevice.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 93d0e8fc2e..597d272c29 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -1362,7 +1362,8 @@ void SkGpuDevice::drawImage(const SkImage* image, SkScalar x, SkScalar y,
uint32_t pinnedUniqueID;
if (sk_sp<GrTexture> tex = as_IB(image)->refPinnedTexture(&pinnedUniqueID)) {
CHECK_SHOULD_DRAW();
- GrTextureAdjuster adjuster(tex.get(), image->alphaType(), image->bounds(), pinnedUniqueID,
+ GrTextureAdjuster adjuster(this->context(), tex.get(), image->alphaType(),
+ image->bounds(), pinnedUniqueID,
as_IB(image)->onImageInfo().colorSpace());
this->drawTextureProducer(&adjuster, nullptr, nullptr, SkCanvas::kFast_SrcRectConstraint,
viewMatrix, this->clip(), paint);
@@ -1394,7 +1395,8 @@ void SkGpuDevice::drawImageRect(const SkImage* image, const SkRect* src,
uint32_t pinnedUniqueID;
if (sk_sp<GrTexture> tex = as_IB(image)->refPinnedTexture(&pinnedUniqueID)) {
CHECK_SHOULD_DRAW();
- GrTextureAdjuster adjuster(tex.get(), image->alphaType(), image->bounds(), pinnedUniqueID,
+ GrTextureAdjuster adjuster(this->context(), tex.get(), image->alphaType(),
+ image->bounds(), pinnedUniqueID,
as_IB(image)->onImageInfo().colorSpace());
this->drawTextureProducer(&adjuster, src, &dst, constraint, this->ctm(), this->clip(),
paint);
@@ -1469,7 +1471,8 @@ void SkGpuDevice::drawImageNine(const SkImage* image,
uint32_t pinnedUniqueID;
if (sk_sp<GrTexture> tex = as_IB(image)->refPinnedTexture(&pinnedUniqueID)) {
CHECK_SHOULD_DRAW();
- GrTextureAdjuster adjuster(tex.get(), image->alphaType(), image->bounds(), pinnedUniqueID,
+ GrTextureAdjuster adjuster(this->context(), tex.get(), image->alphaType(),
+ image->bounds(), pinnedUniqueID,
as_IB(image)->onImageInfo().colorSpace());
this->drawProducerNine(&adjuster, center, dst, paint);
} else {
@@ -1524,7 +1527,8 @@ void SkGpuDevice::drawImageLattice(const SkImage* image,
uint32_t pinnedUniqueID;
if (sk_sp<GrTexture> tex = as_IB(image)->refPinnedTexture(&pinnedUniqueID)) {
CHECK_SHOULD_DRAW();
- GrTextureAdjuster adjuster(tex.get(), image->alphaType(), image->bounds(), pinnedUniqueID,
+ GrTextureAdjuster adjuster(this->context(), tex.get(), image->alphaType(),
+ image->bounds(), pinnedUniqueID,
as_IB(image)->onImageInfo().colorSpace());
this->drawProducerLattice(&adjuster, lattice, dst, paint);
} else {