Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Unified Diff: src/gpu/GrRectanizer.h

Issue 303263005: Add Sample slide for Rectanizers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment change Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samplecode/SampleRectanizer.cpp ('k') | src/gpu/GrRectanizer_pow2.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrRectanizer.h
diff --git a/src/gpu/GrRectanizer.h b/src/gpu/GrRectanizer.h
index 2c290e9153ab20fd4cbc2b4d404e3012956dd205..0f9d8fdfb62ddd6bee739bee0a940792e6f43843 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;
« no previous file with comments | « samplecode/SampleRectanizer.cpp ('k') | src/gpu/GrRectanizer_pow2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698