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

Side by Side Diff: src/core/SkRTreePicture.cpp

Issue 313613002: Remove legacy picture recording (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove dead files from core.gypi Created 6 years, 6 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
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 #ifdef SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES
9
10 #include "SkRTreePicture.h"
11
12 #include "SkRTree.h"
13
14 SkBBoxHierarchy* SkRTreePicture::createBBoxHierarchy() const {
15 // These values were empirically determined to produce reasonable
16 // performance in most cases.
17 static const int kRTreeMinChildren = 6;
18 static const int kRTreeMaxChildren = 11;
19
20 SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(fWidth),
21 SkIntToScalar(fHeight));
22 bool sortDraws = false; // Do not sort draw calls when bulk loading.
23
24 return SkRTree::Create(kRTreeMinChildren, kRTreeMaxChildren,
25 aspectRatio, sortDraws);
26 }
27
28 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698