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

Side by Side Diff: src/core/SkRTreePicture.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/core/SkQuadTreePicture.h ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkRTreePicture.h"
9
10 #include "SkRTree.h"
11
12
13 SkBBoxHierarchy* SkRTreePicture::createBBoxHierarchy() const {
14 // These values were empirically determined to produce reasonable
15 // performance in most cases.
16 static const int kRTreeMinChildren = 6;
17 static const int kRTreeMaxChildren = 11;
18
19 SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(fWidth),
20 SkIntToScalar(fHeight));
21 bool sortDraws = false; // Do not sort draw calls when bulk loading.
22
23 return SkRTree::Create(kRTreeMinChildren, kRTreeMaxChildren,
24 aspectRatio, sortDraws);
25 }
OLDNEW
« no previous file with comments | « src/core/SkQuadTreePicture.h ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698