aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrTextureDomain.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-03-14 08:53:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-14 13:41:21 +0000
commitb66b42f1749a7a23fd610d90605978537bf4fbb7 (patch)
tree1e2218cd3de45e6bfe8578f7db93890019e6eaa7 /src/gpu/effects/GrTextureDomain.cpp
parentf85f2a9c9314242a727afcaee00d07f14c6a48b0 (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.cpp5
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);