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

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

Issue 757633002: Remove android-framework-only unused parameter. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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