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

Side by Side Diff: src/effects/SkGaussianEdgeShader.cpp

Issue 2316303002: Revert of Add GM/slide to simulate Android-style reveal clip (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 | « include/effects/SkGaussianEdgeShader.h ('k') | src/ports/SkGlobalInitialization_default.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 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 "SkGaussianEdgeShader.h" 8 #include "SkGaussianEdgeShader.h"
9 #include "SkReadBuffer.h" 9 #include "SkReadBuffer.h"
10 #include "SkWriteBuffer.h" 10 #include "SkWriteBuffer.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void SkGaussianEdgeShaderImpl::toString(SkString* str) const { 126 void SkGaussianEdgeShaderImpl::toString(SkString* str) const {
127 str->appendf("GaussianEdgeShader: ()"); 127 str->appendf("GaussianEdgeShader: ()");
128 } 128 }
129 #endif 129 #endif
130 130
131 sk_sp<SkFlattenable> SkGaussianEdgeShaderImpl::CreateProc(SkReadBuffer& buf) { 131 sk_sp<SkFlattenable> SkGaussianEdgeShaderImpl::CreateProc(SkReadBuffer& buf) {
132 return sk_make_sp<SkGaussianEdgeShaderImpl>(); 132 return sk_make_sp<SkGaussianEdgeShaderImpl>();
133 } 133 }
134 134
135 void SkGaussianEdgeShaderImpl::flatten(SkWriteBuffer& buf) const { 135 void SkGaussianEdgeShaderImpl::flatten(SkWriteBuffer& buf) const {
136 this->INHERITED::flatten(buf);
136 } 137 }
137 138
138 /////////////////////////////////////////////////////////////////////////////// 139 ///////////////////////////////////////////////////////////////////////////////
139 140
140 sk_sp<SkShader> SkGaussianEdgeShader::Make() { 141 sk_sp<SkShader> SkGaussianEdgeShader::Make() {
141 return sk_make_sp<SkGaussianEdgeShaderImpl>(); 142 return sk_make_sp<SkGaussianEdgeShaderImpl>();
142 } 143 }
143 144
144 /////////////////////////////////////////////////////////////////////////////// 145 ///////////////////////////////////////////////////////////////////////////////
145 146
146 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkGaussianEdgeShader) 147 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkGaussianEdgeShader)
147 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkGaussianEdgeShaderImpl) 148 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkGaussianEdgeShaderImpl)
148 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 149 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
149 150
150 /////////////////////////////////////////////////////////////////////////////// 151 ///////////////////////////////////////////////////////////////////////////////
OLDNEW
« no previous file with comments | « include/effects/SkGaussianEdgeShader.h ('k') | src/ports/SkGlobalInitialization_default.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698