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

Side by Side Diff: gm/dcshader.cpp

Issue 872043002: Add patheffects to debugger printout (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix merge conflict Created 5 years, 11 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 | include/core/SkPathEffect.h » ('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 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "gm.h" 9 #include "gm.h"
10 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
(...skipping 18 matching lines...) Expand all
29 29
30 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(DCShader); 30 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(DCShader);
31 31
32 void flatten(SkWriteBuffer& buf) const SK_OVERRIDE { 32 void flatten(SkWriteBuffer& buf) const SK_OVERRIDE {
33 buf.writeMatrix(fDeviceMatrix); 33 buf.writeMatrix(fDeviceMatrix);
34 } 34 }
35 35
36 bool asFragmentProcessor(GrContext*, const SkPaint& paint, const SkMatrix& v iewM, 36 bool asFragmentProcessor(GrContext*, const SkPaint& paint, const SkMatrix& v iewM,
37 const SkMatrix* localMatrix, GrColor* color, 37 const SkMatrix* localMatrix, GrColor* color,
38 GrFragmentProcessor** fp) const SK_OVERRIDE; 38 GrFragmentProcessor** fp) const SK_OVERRIDE;
39
40 #ifndef SK_IGNORE_TO_STRING
41 void toString(SkString* str) const SK_OVERRIDE {
42 str->appendf("DCShader: ()");
43 }
44 #endif
45
39 private: 46 private:
40 const SkMatrix fDeviceMatrix; 47 const SkMatrix fDeviceMatrix;
41 }; 48 };
42 49
43 SkFlattenable* DCShader::CreateProc(SkReadBuffer& buf) { 50 SkFlattenable* DCShader::CreateProc(SkReadBuffer& buf) {
44 SkMatrix matrix; 51 SkMatrix matrix;
45 buf.readMatrix(&matrix); 52 buf.readMatrix(&matrix);
46 return SkNEW_ARGS(DCShader, (matrix)); 53 return SkNEW_ARGS(DCShader, (matrix));
47 } 54 }
48 55
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 }; 305 };
299 306
300 SkTArray<Prim*> fPrims; 307 SkTArray<Prim*> fPrims;
301 308
302 typedef GM INHERITED; 309 typedef GM INHERITED;
303 }; 310 };
304 311
305 DEF_GM( return SkNEW(DCShaderGM); ) 312 DEF_GM( return SkNEW(DCShaderGM); )
306 } 313 }
307 #endif 314 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkPathEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698