aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureContentInfo.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@google.com>2014-08-11 15:20:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-11 15:20:23 -0700
commit3b73e0163c03a2cb1ee9efa9fddb931751415026 (patch)
treec4ff484f4a5097daa7af5628b073899e14e2ab46 /src/core/SkPictureContentInfo.h
parent4a2b2e8ed2e35171bf98bad68a69daaced11ec7c (diff)
Revert of Add layer counting to SkPictureRecord (https://codereview.chromium.org/464433002/)
Reason for revert: DM's all segfaulty http://108.170.220.120:10117/builders/Test-Mac10.7-MacMini4.1-GeForce320M-x86_64-Debug/builds/3866/steps/RunDM/logs/stdio Original issue's description: > Add layer counting to SkPictureRecord > > This will be used for a SkPicture::suitableForOptimization entry point. > > Committed: https://skia.googlesource.com/skia/+/4a2b2e8ed2e35171bf98bad68a69daaced11ec7c R=bsalomon@google.com, robertphillips@google.com TBR=bsalomon@google.com, robertphillips@google.com NOTREECHECKS=true NOTRY=true Author: mtklein@google.com Review URL: https://codereview.chromium.org/452673003
Diffstat (limited to 'src/core/SkPictureContentInfo.h')
-rw-r--r--src/core/SkPictureContentInfo.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/core/SkPictureContentInfo.h b/src/core/SkPictureContentInfo.h
index d4d1d4fc5f..cfeedcf483 100644
--- a/src/core/SkPictureContentInfo.h
+++ b/src/core/SkPictureContentInfo.h
@@ -17,11 +17,6 @@ public:
int numOperations() const { return fNumOperations; }
bool hasText() const { return fNumTexts > 0; }
-
- int numLayers() const { return fNumLayers; }
- int numInteriorLayers() const { return fNumInteriorLayers; }
- int numLeafLayers() const { return fNumLeafLayers; }
-
bool suitableForGpuRasterization(GrContext* context, const char **reason,
int sampleCount) const;
@@ -32,12 +27,6 @@ public:
void onAddPaintPtr(const SkPaint* paint);
void onDrawText() { ++fNumTexts; }
- void onSaveLayer();
- void onSave();
- void onRestore();
- void rescindLastSave();
- void rescindLastSaveLayer();
-
void set(const SkPictureContentInfo& src);
void reset();
void swap(SkPictureContentInfo* other);
@@ -60,25 +49,6 @@ private:
// This field is incremented every time a drawPath call is
// issued for a hairline stroked concave path.
int fNumAAHairlineConcavePaths;
- // These fields track the different layer flavors. fNumLayers is just
- // a count of all saveLayers, fNumInteriorLayers is the number of layers
- // with a layer inside them, fNumLeafLayers is the number of layers with
- // no layer inside them.
- int fNumLayers;
- int fNumInteriorLayers;
- int fNumLeafLayers;
-
- enum Flags {
- kSave_Flag = 0x1,
- kSaveLayer_Flag = 0x2,
-
- // Did the current save or saveLayer contain another saveLayer.
- // Percolated back down the save stack.
- kContainedSaveLayer_Flag = 0x4
- };
-
- // Stack of save vs saveLayer information to track nesting
- SkTDArray<uint32_t> fSaveStack;
};
#endif