aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-06-29 17:16:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-29 17:16:27 -0700
commite462f2bed33283862bb983c67776a47c5a6acb01 (patch)
treee7aa3ecfa6e9d211461a0be6624b4f3cf42de55b /include/gpu
parentd9cf38aeaf64a23c26f3927f97c33e14fbefad35 (diff)
Reason for revert: Sigh Original issue's description: > Begin atlasing > > This CL makes it possible for pulled-forward-layers to be atlased. It currently has a couple glaring limitations (which is why it is disabled): > > 1) the atlased layers cannot be purged nor aged out > 2) the texture backing the atlas is not pulled from (or returned to) the resource cache > > #1 is on hold until we have a recycling rectanizer > > A separate major limitation (the non-atlased layers aren't cached) is blocked until we can transmute entries in the resource cache from scratch to non-scratch while potentially preserving their contents. > > Committed: https://skia.googlesource.com/skia/+/55e61f0ef4e5c8c34ac107deaadc9b4ffef3111b R=bsalomon@google.com TBR=bsalomon@google.com NOTREECHECKS=true NOTRY=true Author: robertphillips@google.com Review URL: https://codereview.chromium.org/359953002
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrRect.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/gpu/GrRect.h b/include/gpu/GrRect.h
index 14130f831c..ddb23b5a19 100644
--- a/include/gpu/GrRect.h
+++ b/include/gpu/GrRect.h
@@ -20,18 +20,6 @@ struct GrIRect16 {
return r;
}
- static GrIRect16 SK_WARN_UNUSED_RESULT MakeWH(int16_t w, int16_t h) {
- GrIRect16 r;
- r.set(0, 0, w, h);
- return r;
- }
-
- static GrIRect16 SK_WARN_UNUSED_RESULT MakeXYWH(int16_t x, int16_t y, int16_t w, int16_t h) {
- GrIRect16 r;
- r.set(x, y, x + w, y + h);
- return r;
- }
-
int width() const { return fRight - fLeft; }
int height() const { return fBottom - fTop; }
int area() const { return this->width() * this->height(); }
@@ -39,13 +27,6 @@ struct GrIRect16 {
void setEmpty() { memset(this, 0, sizeof(*this)); }
- void set(int16_t left, int16_t top, int16_t right, int16_t bottom) {
- fLeft = left;
- fTop = top;
- fRight = right;
- fBottom = bottom;
- }
-
void set(const SkIRect& r) {
fLeft = SkToS16(r.fLeft);
fTop = SkToS16(r.fTop);