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

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

Issue 379323002: Remove SK_SUPPORT_LEGACY_SHADER_LOCALMATRIX. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Comment about const-ness of fLocalMatrix. Created 6 years, 5 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 | « include/core/SkShader.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
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 "SkPaintPriv.h" 8 #include "SkPaintPriv.h"
9 9
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 bool NeedsDeepCopy(const SkPaint& paint) { 80 bool NeedsDeepCopy(const SkPaint& paint) {
81 /* 81 /*
82 * The types below are not yet immutable/reentrant-safe, and so we return 82 * The types below are not yet immutable/reentrant-safe, and so we return
83 * true if instances of them are present in the paint. 83 * true if instances of them are present in the paint.
84 * 84 *
85 * Eventually we hope this list will be empty, and we can always return 85 * Eventually we hope this list will be empty, and we can always return
86 * false. 86 * false.
87 */ 87 */
88 return false 88 return false
89 #ifdef SK_SUPPORT_LEGACY_SHADER_LOCALMATRIX
90 || paint.getShader()
91 #endif
92 #ifdef SK_SUPPORT_LEGACY_LAYERRASTERIZER_API 89 #ifdef SK_SUPPORT_LEGACY_LAYERRASTERIZER_API
93 || paint.getRasterizer() 90 || paint.getRasterizer()
94 #endif 91 #endif
95 || paint.getImageFilter() 92 || paint.getImageFilter()
96 ; 93 ;
97 } 94 }
OLDNEW
« no previous file with comments | « include/core/SkShader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698