diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-14 08:53:02 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-14 13:41:21 +0000 |
commit | b66b42f1749a7a23fd610d90605978537bf4fbb7 (patch) | |
tree | 1e2218cd3de45e6bfe8578f7db93890019e6eaa7 /src/gpu/effects/GrTextureDomain.cpp | |
parent | f85f2a9c9314242a727afcaee00d07f14c6a48b0 (diff) |
Preparatory Proxification
This is pulled out of: https://skia-review.googlesource.com/c/8823/ (Remove GrFragmentProcessor-derived class' GrTexture-based ctors)
Change-Id: I93e233cd80d98c848d79272423cb58505d72ff3e
Reviewed-on: https://skia-review.googlesource.com/9559
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/effects/GrTextureDomain.cpp')
-rw-r--r-- | src/gpu/effects/GrTextureDomain.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/effects/GrTextureDomain.cpp b/src/gpu/effects/GrTextureDomain.cpp index 7a43328bc1..7bd41a7be4 100644 --- a/src/gpu/effects/GrTextureDomain.cpp +++ b/src/gpu/effects/GrTextureDomain.cpp @@ -8,6 +8,7 @@ #include "GrTextureDomain.h" #include "GrContext.h" +#include "GrResourceProvider.h" #include "GrShaderCaps.h" #include "GrSimpleTextureEffect.h" #include "GrSurfaceProxyPriv.h" @@ -19,8 +20,8 @@ #include "glsl/GrGLSLShaderBuilder.h" #include "glsl/GrGLSLUniformHandler.h" -static bool can_ignore_rect(GrSurfaceProxy* proxy, const SkRect& domain) { - if (proxy->priv().isExact()) { +static bool can_ignore_rect(GrTextureProxy* proxy, const SkRect& domain) { + if (GrResourceProvider::IsFunctionallyExact(proxy)) { const SkIRect kFullRect = SkIRect::MakeWH(proxy->width(), proxy->height()); return domain.contains(kFullRect); |