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

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

Issue 266203003: Infrastructure changes to support pull saveLayers forward task (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fixed Android error Created 6 years, 7 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/SkPaintPriv.h ('k') | src/core/SkPicture.cpp » ('j') | 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 SkColorFilter::kAlphaUnchanged_Flag) == 0)) { 69 SkColorFilter::kAlphaUnchanged_Flag) == 0)) {
70 break; 70 break;
71 } 71 }
72 return true; 72 return true;
73 default: 73 default:
74 break; 74 break;
75 } 75 }
76 } 76 }
77 return false; 77 return false;
78 } 78 }
79
80 bool NeedsDeepCopy(const SkPaint& paint) {
81 /*
82 * These fields are known to be immutable, and so can be shallow-copied
83 *
84 * getTypeface()
85 * getAnnotation()
86 * paint.getColorFilter()
87 * getXfermode()
88 * getPathEffect()
89 * getMaskFilter()
90 */
91
92 return paint.getShader() ||
93 #ifdef SK_SUPPORT_LEGACY_LAYERRASTERIZER_API
94 paint.getRasterizer() ||
95 #endif
96 paint.getLooper() || // needs to hide its addLayer...
97 paint.getImageFilter();
98 }
99
OLDNEW
« no previous file with comments | « src/core/SkPaintPriv.h ('k') | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698