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

Side by Side Diff: include/core/SkShader.h

Issue 288713002: Add ownership dox for SkShader::asACompose. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « no previous file | 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 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 8
9 #ifndef SkShader_DEFINED 9 #ifndef SkShader_DEFINED
10 #define SkShader_DEFINED 10 #define SkShader_DEFINED
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 SkScalar fRadius[2]; //!< Type specific, see above. 352 SkScalar fRadius[2]; //!< Type specific, see above.
353 TileMode fTileMode; //!< The tile mode used. 353 TileMode fTileMode; //!< The tile mode used.
354 uint32_t fGradientFlags; //!< see SkGradientShader::Flags 354 uint32_t fGradientFlags; //!< see SkGradientShader::Flags
355 }; 355 };
356 356
357 virtual GradientType asAGradient(GradientInfo* info) const; 357 virtual GradientType asAGradient(GradientInfo* info) const;
358 358
359 /** 359 /**
360 * If the shader subclass is composed of two shaders, return true, and if r ec is not NULL, 360 * If the shader subclass is composed of two shaders, return true, and if r ec is not NULL,
361 * fill it out with info about the shader. 361 * fill it out with info about the shader.
362 *
363 * These are bare pointers; the ownership and reference count are unchanged .
362 */ 364 */
363 365
364 struct ComposeRec { 366 struct ComposeRec {
365 const SkShader* fShaderA; 367 const SkShader* fShaderA;
366 const SkShader* fShaderB; 368 const SkShader* fShaderB;
367 const SkXfermode* fMode; 369 const SkXfermode* fMode;
368 }; 370 };
369 371
370 virtual bool asACompose(ComposeRec* rec) const { return false; } 372 virtual bool asACompose(ComposeRec* rec) const { return false; }
371 373
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 */ 461 */
460 virtual Context* onCreateContext(const ContextRec&, void* storage) const; 462 virtual Context* onCreateContext(const ContextRec&, void* storage) const;
461 463
462 private: 464 private:
463 SkMatrix fLocalMatrix; 465 SkMatrix fLocalMatrix;
464 466
465 typedef SkFlattenable INHERITED; 467 typedef SkFlattenable INHERITED;
466 }; 468 };
467 469
468 #endif 470 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698