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

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

Issue 1253963004: Move non-trivial constructors out-of-line. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: duh Created 5 years, 4 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
« src/core/SkRecords.h ('K') | « src/core/SkRecords.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 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 "SkPathPriv.h"
9 #include "SkRecords.h"
10
11 namespace SkRecords {
12 ImmutableBitmap::ImmutableBitmap(const SkBitmap& bitmap) {
13 if (bitmap.isImmutable()) {
14 fBitmap = bitmap;
15 } else {
16 bitmap.copyTo(&fBitmap);
17 }
18 fBitmap.setImmutable();
19 }
20
21 PreCachedPath::PreCachedPath(const SkPath& path) : SkPath(path) {
22 this->updateBoundsCache();
23 #if 0 // Disabled to see if we ever really race on this. It costs time, chromi um:496982.
24 SkPathPriv::FirstDirection junk;
25 (void)SkPathPriv::CheapComputeFirstDirection(*this, &junk);
26 #endif
27 }
28
29 TypedMatrix::TypedMatrix(const SkMatrix& matrix) : SkMatrix(matrix) {
30 (void)this->getType();
31 }
32 }
OLDNEW
« src/core/SkRecords.h ('K') | « src/core/SkRecords.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698