aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/GrSurfaceProxy.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-10-10 10:42:19 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-10 15:41:42 +0000
commita108c92ae5868ca99759a872edddb377f31ad1be (patch)
tree09b54a3c7782921c96933dd0e7f0fd7d9ce5a9c0 /include/private/GrSurfaceProxy.h
parente0240455a84d530e5f5a5c1525e31341938c9207 (diff)
Fix drawSpecialImage
W/o this fix the strict constraint on the specialImage draws can sometimes be removed. This CL ensures that the temporary SkImage always has the actual dimensions of the special Image. Note: the replacement of full screen clears w/ draws revealed this bug b.c. the image filters were only drawing a rect for the content area of the special images. Thus when the final DAG result was drawn to the canvas some of the bleed through (from the removal of the strict constraint) was showing. Bug: 755871, 768134 skbug.com/7122 Change-Id: Id67b7143225c24b716e260c973f3bbf68f20188a Reviewed-on: https://skia-review.googlesource.com/57660 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/private/GrSurfaceProxy.h')
-rw-r--r--include/private/GrSurfaceProxy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/private/GrSurfaceProxy.h b/include/private/GrSurfaceProxy.h
index 57724c4e2b..fcccd36b44 100644
--- a/include/private/GrSurfaceProxy.h
+++ b/include/private/GrSurfaceProxy.h
@@ -217,6 +217,8 @@ public:
}
int width() const { return fWidth; }
int height() const { return fHeight; }
+ int worstCaseWidth() const;
+ int worstCaseHeight() const;
GrPixelConfig config() const { return fConfig; }
class UniqueID {