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

Unified Diff: tools/PictureRenderer.cpp

Issue 239703006: Retract SkPicture::kOptimizeForClippedPlayback_RecordingFlag from public API (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 8 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 | « tests/TileGridTest.cpp ('k') | tools/bench_record.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/PictureRenderer.cpp
===================================================================
--- tools/PictureRenderer.cpp (revision 14216)
+++ tools/PictureRenderer.cpp (working copy)
@@ -28,7 +28,7 @@
#include "SkPixelRef.h"
#include "SkQuadTree.h"
#include "SkQuadTreePicture.h"
-#include "SkRTree.h"
+#include "SkRTreePicture.h"
#include "SkScalar.h"
#include "SkStream.h"
#include "SkString.h"
@@ -319,9 +319,9 @@
}
uint32_t PictureRenderer::recordFlags() {
- return ((kNone_BBoxHierarchyType == fBBoxHierarchyType) ? 0 :
- SkPicture::kOptimizeForClippedPlayback_RecordingFlag) |
- SkPicture::kUsePathBoundsForClip_RecordingFlag;
+ return (kNone_BBoxHierarchyType == fBBoxHierarchyType)
+ ? 0
+ : SkPicture::kUsePathBoundsForClip_RecordingFlag;
}
/**
@@ -975,29 +975,6 @@
///////////////////////////////////////////////////////////////////////////////////////////////
// SkPicture variants for each BBoxHierarchy type
-class RTreePicture : public SkPicture {
-public:
- virtual SkBBoxHierarchy* createBBoxHierarchy() const SK_OVERRIDE {
- static const int kRTreeMinChildren = 6;
- static const int kRTreeMaxChildren = 11;
- SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(fWidth),
- SkIntToScalar(fHeight));
- bool sortDraws = false;
- return SkRTree::Create(kRTreeMinChildren, kRTreeMaxChildren,
- aspectRatio, sortDraws);
- }
-};
-
-class SkRTreePictureFactory : public SkPictureFactory {
-private:
- virtual SkPicture* create(int width, int height) SK_OVERRIDE {
- return SkNEW(RTreePicture);
- }
-
-private:
- typedef SkPictureFactory INHERITED;
-};
-
SkPictureFactory* PictureRenderer::getFactory() {
switch (fBBoxHierarchyType) {
case kNone_BBoxHierarchyType:
« no previous file with comments | « tests/TileGridTest.cpp ('k') | tools/bench_record.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698