1 /* 2 * Copyright (C) 2006 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // This file was generated from the C++ include file: SkXfermode.h 18 // Any changes made to this file will be discarded by the build. 19 // To change this file, either edit the include, or device/tools/gluemaker/main.cpp, 20 // or one of the auxilary file specifications in device/tools/gluemaker. 21 22 package android.graphics; 23 24 import android.compat.annotation.UnsupportedAppUsage; 25 import android.os.Build; 26 27 /** 28 * Xfermode is the base class for objects that are called to implement custom 29 * "transfer-modes" in the drawing pipeline. The static function Create(Modes) 30 * can be called to return an instance of any of the predefined subclasses as 31 * specified in the Modes enum. When an Xfermode is assigned to an Paint, then 32 * objects drawn with that paint have the xfermode applied. 33 */ 34 public class Xfermode { 35 static final int DEFAULT = PorterDuff.Mode.SRC_OVER.nativeInt; 36 @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) 37 int porterDuffMode = DEFAULT; 38 } 39