OLD | NEW |
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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 * Note: if this returns true, the returned color will always be opaque, as
only the RGB | 396 * Note: if this returns true, the returned color will always be opaque, as
only the RGB |
397 * components are used to compute luminance. | 397 * components are used to compute luminance. |
398 */ | 398 */ |
399 bool asLuminanceColor(SkColor*) const; | 399 bool asLuminanceColor(SkColor*) const; |
400 | 400 |
401 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 401 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
402 /** | 402 /** |
403 * If the shader is a custom shader which has data the caller might want, c
all this function | 403 * If the shader is a custom shader which has data the caller might want, c
all this function |
404 * to get that data. | 404 * to get that data. |
405 */ | 405 */ |
406 virtual bool asACustomShader(void** customData) const { return false; } | 406 virtual bool asACustomShader(void** /* customData */) const { return false;
} |
407 #endif | 407 #endif |
408 | 408 |
409 ////////////////////////////////////////////////////////////////////////// | 409 ////////////////////////////////////////////////////////////////////////// |
410 // Factory methods for stock shaders | 410 // Factory methods for stock shaders |
411 | 411 |
412 /** | 412 /** |
413 * Call this to create a new "empty" shader, that will not draw anything. | 413 * Call this to create a new "empty" shader, that will not draw anything. |
414 */ | 414 */ |
415 static SkShader* CreateEmptyShader(); | 415 static SkShader* CreateEmptyShader(); |
416 | 416 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 // constructors. | 500 // constructors. |
501 SkMatrix fLocalMatrix; | 501 SkMatrix fLocalMatrix; |
502 | 502 |
503 // So the SkLocalMatrixShader can whack fLocalMatrix in its SkReadBuffer con
structor. | 503 // So the SkLocalMatrixShader can whack fLocalMatrix in its SkReadBuffer con
structor. |
504 friend class SkLocalMatrixShader; | 504 friend class SkLocalMatrixShader; |
505 | 505 |
506 typedef SkFlattenable INHERITED; | 506 typedef SkFlattenable INHERITED; |
507 }; | 507 }; |
508 | 508 |
509 #endif | 509 #endif |
OLD | NEW |