aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRectanizer.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-06-02 07:15:18 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-02 07:15:18 -0700
commit901e96df6916e6f8ba95a4ea85a2ceac31e7d633 (patch)
treecd71e8f7860295756a76c2bfe351be2e791f67ac /src/gpu/GrRectanizer.h
parenta6a8f00a3977e71dbce9da50a32c5e9a51c49285 (diff)
Add Sample slide for Rectanizers
R=jvanverth@google.com, bsalomon@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/303263005
Diffstat (limited to 'src/gpu/GrRectanizer.h')
-rw-r--r--src/gpu/GrRectanizer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrRectanizer.h b/src/gpu/GrRectanizer.h
index 2c290e9153..0f9d8fdfb6 100644
--- a/src/gpu/GrRectanizer.h
+++ b/src/gpu/GrRectanizer.h
@@ -24,6 +24,8 @@ public:
int width() const { return fWidth; }
int height() const { return fHeight; }
+ // Attempt to add a rect. Return true on success; false on failure. If
+ // successful the position in the atlas is returned in 'loc'.
virtual bool addRect(int width, int height, GrIPoint16* loc) = 0;
virtual float percentFull() const = 0;