ccpr: Prefer atlas sizes under 4k on ARM
Bug: skia:
Change-Id: Ib5afb84647efe2e64a3ec2f9da422b39228431e9
Reviewed-on: https://skia-review.googlesource.com/108871
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/ccpr/GrCCAtlas.h b/src/gpu/ccpr/GrCCAtlas.h
index cac82af..184022e 100644
--- a/src/gpu/ccpr/GrCCAtlas.h
+++ b/src/gpu/ccpr/GrCCAtlas.h
@@ -26,11 +26,9 @@
*/
class GrCCAtlas {
public:
- static constexpr int kMinSize = 1024;
-
using CoverageCountBatchID = int;
- GrCCAtlas(const GrCaps&, int minWidth, int minHeight);
+ GrCCAtlas(const GrCaps&, int minSize);
~GrCCAtlas();
bool addRect(int devWidth, int devHeight, SkIPoint16* loc);
@@ -55,10 +53,9 @@
const int fMaxAtlasSize;
- int fWidth;
- int fHeight;
- SkISize fDrawBounds;
+ int fWidth, fHeight;
std::unique_ptr<Node> fTopNode;
+ SkISize fDrawBounds = {0, 0};
CoverageCountBatchID fCoverageCountBatchID SkDEBUGCODE(= 0);
sk_sp<GrTextureProxy> fTextureProxy;