aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-06-13 15:28:19 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-13 21:53:36 +0000
commit42c2115fc32e43c252284082a6e2473cef76e401 (patch)
treeadddeb33229a57e95992c8cad6da609b3c9862a8 /include/private
parent527a297d6e2410277ff41c40dcbb56410d6a9118 (diff)
ccpr: Initialize the atlas size more intelligently
Rather than always starting the atlas at 1024 x 1024, begin with the first pow2 dimensions whose area is theoretically large enough to contain the pending paths. Bug: skia: Change-Id: I263e77ff6a697e865f6b3b62b9df7002225f9544 Reviewed-on: https://skia-review.googlesource.com/133660 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/private')
-rw-r--r--include/private/GrCCClipPath.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/private/GrCCClipPath.h b/include/private/GrCCClipPath.h
index f15cc9c756..d845e3e6df 100644
--- a/include/private/GrCCClipPath.h
+++ b/include/private/GrCCClipPath.h
@@ -11,6 +11,7 @@
#include "GrTextureProxy.h"
#include "SkPath.h"
+struct GrCCPerFlushResourceSpecs;
class GrCCAtlas;
class GrCCPerFlushResources;
class GrOnFlushResourceProvider;
@@ -55,6 +56,7 @@ public:
return fPathDevIBounds;
}
+ void accountForOwnPath(GrCCPerFlushResourceSpecs*) const;
void renderPathInAtlas(GrCCPerFlushResources*, GrOnFlushResourceProvider*);
const SkVector& atlasScale() const { SkASSERT(fHasAtlasTransform); return fAtlasScale; }