aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkClipStackDevice.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-02-22 15:21:35 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-23 01:16:23 +0000
commitfa24d344882b8009a1fe25cf110c0e75e552a6ff (patch)
treed236f57e0e5e92ecfa569c6a12cf29752c6590ef /src/core/SkClipStackDevice.h
parent9cd21683cae5c575be102f072d2718bab37eac9c (diff)
abstract access to device-clip-bounds
apply this to GpuDevice. Should allow us to switch to per-device-clipping with minimal change (since we've abstracted how the device sees its clip-bounds.) BUG=skia: Change-Id: I5245d90f308c21abdb58d441c326670b65e9179d Reviewed-on: https://skia-review.googlesource.com/8884 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkClipStackDevice.h')
-rw-r--r--src/core/SkClipStackDevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkClipStackDevice.h b/src/core/SkClipStackDevice.h
index ef18a0009a..1836821fc0 100644
--- a/src/core/SkClipStackDevice.h
+++ b/src/core/SkClipStackDevice.h
@@ -19,6 +19,8 @@ public:
const SkClipStack& cs() const { return fClipStack; }
+ SkIRect devClipBounds(const SkDraw&) const;
+
protected:
void onSave() override;
void onRestore() override;