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

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

Issue 377503004: Make GrDrawState and GrPaint take GrEffect* instead of GrEffectRef*. (Closed) Base URL: https://skia.googlesource.com/skia.git@no_ref
Patch Set: Update YUV effect to reflect these changes. 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 | « src/core/SkBitmapProcShader.cpp ('k') | src/core/SkImageFilter.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 "SkColorFilter.h" 8 #include "SkColorFilter.h"
9 9
10 #include "SkReadBuffer.h" 10 #include "SkReadBuffer.h"
(...skipping 22 matching lines...) Expand all
33 memcpy(d, s, count * sizeof(uint16_t)); 33 memcpy(d, s, count * sizeof(uint16_t));
34 } 34 }
35 } 35 }
36 36
37 SkColor SkColorFilter::filterColor(SkColor c) const { 37 SkColor SkColorFilter::filterColor(SkColor c) const {
38 SkPMColor dst, src = SkPreMultiplyColor(c); 38 SkPMColor dst, src = SkPreMultiplyColor(c);
39 this->filterSpan(&src, 1, &dst); 39 this->filterSpan(&src, 1, &dst);
40 return SkUnPreMultiply::PMColorToColor(dst); 40 return SkUnPreMultiply::PMColorToColor(dst);
41 } 41 }
42 42
43 GrEffectRef* SkColorFilter::asNewEffect(GrContext*) const { 43 GrEffect* SkColorFilter::asNewEffect(GrContext*) const {
44 return NULL; 44 return NULL;
45 } 45 }
OLDNEW
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698