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

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

Issue 2286253003: remove dead code (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | 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
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkData.h" 9 #include "SkData.h"
10 #include "SkImageFilter.h" 10 #include "SkImageFilter.h"
11 #include "SkLiteDL.h" 11 #include "SkLiteDL.h"
12 #include "SkMath.h" 12 #include "SkMath.h"
13 #include "SkPicture.h" 13 #include "SkPicture.h"
14 #include "SkMutex.h"
15 #include "SkRSXform.h" 14 #include "SkRSXform.h"
16 #include "SkSpinlock.h"
17 #include "SkTextBlob.h" 15 #include "SkTextBlob.h"
18 16
19 #ifndef SKLITEDL_PAGE 17 #ifndef SKLITEDL_PAGE
20 #define SKLITEDL_PAGE 4096 18 #define SKLITEDL_PAGE 4096
21 #endif 19 #endif
22 20
23 // A stand-in for an optional SkRect which was not set, e.g. bounds for a saveLa yer(). 21 // A stand-in for an optional SkRect which was not set, e.g. bounds for a saveLa yer().
24 static const SkRect kUnset = { SK_ScalarInfinity, 0,0,0}; 22 static const SkRect kUnset = { SK_ScalarInfinity, 0,0,0};
25 static const SkRect* maybe_unset(const SkRect& r) { 23 static const SkRect* maybe_unset(const SkRect& r) {
26 return r.left() == SK_ScalarInfinity ? nullptr : &r; 24 return r.left() == SK_ScalarInfinity ? nullptr : &r;
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 } 783 }
786 784
787 void SkLiteDL::reset(SkRect bounds) { 785 void SkLiteDL::reset(SkRect bounds) {
788 SkASSERT(this->unique()); 786 SkASSERT(this->unique());
789 this->map(dtor_fns); 787 this->map(dtor_fns);
790 788
791 // Leave fBytes and fReserved alone. 789 // Leave fBytes and fReserved alone.
792 fUsed = 0; 790 fUsed = 0;
793 fBounds = bounds; 791 fBounds = bounds;
794 } 792 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698