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

Unified Diff: include/core/SkRTreePicture.h

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 | « include/core/SkPicture.h ('k') | include/core/SkTileGridPicture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkRTreePicture.h
===================================================================
--- include/core/SkRTreePicture.h (revision 0)
+++ include/core/SkRTreePicture.h (revision 0)
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkRTreePicture_DEFINED
+#define SkRTreePicture_DEFINED
+
+#include "SkPicture.h"
+
+/**
+ * Subclass of SkPicture that creates an RTree acceleration structure.
+ */
+class SkRTreePicture : public SkPicture {
+public:
+ virtual SkBBoxHierarchy* createBBoxHierarchy() const SK_OVERRIDE;
+
+private:
+ typedef SkPicture INHERITED;
+};
+
+class SkRTreePictureFactory : public SkPictureFactory {
+public:
+ SkRTreePictureFactory() {}
+
+ virtual SkPicture* create(int width, int height) SK_OVERRIDE {
+ return SkNEW(SkRTreePicture);
+ }
+
+private:
+ typedef SkPictureFactory INHERITED;
+};
+
+#endif
Property changes on: include\core\SkRTreePicture.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « include/core/SkPicture.h ('k') | include/core/SkTileGridPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698