summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/skia/src/gpu/GrRectanizer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/src/gpu/GrRectanizer.h')
-rw-r--r--chromium/third_party/skia/src/gpu/GrRectanizer.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/chromium/third_party/skia/src/gpu/GrRectanizer.h b/chromium/third_party/skia/src/gpu/GrRectanizer.h
index c1ac2c129ec..dc697c41d7d 100644
--- a/chromium/third_party/skia/src/gpu/GrRectanizer.h
+++ b/chromium/third_party/skia/src/gpu/GrRectanizer.h
@@ -8,14 +8,9 @@
#ifndef GrRectanizer_DEFINED
#define GrRectanizer_DEFINED
-#include "GrPoint.h"
+#include "GrTypes.h"
-class GrRectanizerPurgeListener {
-public:
- virtual ~GrRectanizerPurgeListener() {}
-
- virtual void notifyPurgeStrip(void*, int yCoord) = 0;
-};
+struct SkIPoint16;
class GrRectanizer {
public:
@@ -31,15 +26,11 @@ public:
int width() const { return fWidth; }
int height() const { return fHeight; }
- virtual bool addRect(int width, int height, GrIPoint16* loc) = 0;
+ // 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, SkIPoint16* loc) = 0;
virtual float percentFull() const = 0;
- // return the Y-coordinate of a strip that should be purged, given height
- // i.e. return the oldest such strip, or some other criteria. Return -1
- // if there is no candidate
- virtual int stripToPurge(int height) const = 0;
- virtual void purgeStripAtY(int yCoord) = 0;
-
/**
* Our factory, which returns the subclass du jour
*/