diff options
Diffstat (limited to 'src/effects/SkTransparentShader.cpp')
-rw-r--r-- | src/effects/SkTransparentShader.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/effects/SkTransparentShader.cpp b/src/effects/SkTransparentShader.cpp index 6e68b5e..486fc89 100644 --- a/src/effects/SkTransparentShader.cpp +++ b/src/effects/SkTransparentShader.cpp @@ -1,19 +1,11 @@ -/* libs/graphics/effects/SkTransparentShader.cpp -** -** Copyright 2006, The Android Open Source Project -** -** Licensed under the Apache License, Version 2.0 (the "License"); -** you may not use this file except in compliance with the License. -** You may obtain a copy of the License at -** -** http://www.apache.org/licenses/LICENSE-2.0 -** -** Unless required by applicable law or agreed to in writing, software -** distributed under the License is distributed on an "AS IS" BASIS, -** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -** See the License for the specific language governing permissions and -** limitations under the License. -*/ + +/* + * Copyright 2006 The Android Open Source Project + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + #include "SkTransparentShader.h" #include "SkColorPriv.h" @@ -102,7 +94,7 @@ void SkTransparentShader::shadeSpan(int x, int y, SkPMColor span[], int count) { break; } case SkBitmap::kIndex8_Config: - SkASSERT(!"index8 not supported as a destination device"); + SkDEBUGFAIL("index8 not supported as a destination device"); break; case SkBitmap::kA8_Config: { const uint8_t* src = fDevice->getAddr8(x, y); @@ -118,7 +110,7 @@ void SkTransparentShader::shadeSpan(int x, int y, SkPMColor span[], int count) { break; } case SkBitmap::kA1_Config: - SkASSERT(!"kA1_Config umimplemented at this time"); + SkDEBUGFAIL("kA1_Config umimplemented at this time"); break; default: // to avoid warnings break; @@ -134,3 +126,11 @@ void SkTransparentShader::shadeSpan16(int x, int y, uint16_t span[], int count) } } +SkFlattenable::Factory SkTransparentShader::getFactory() { + return Create; +} + +void SkTransparentShader::flatten(SkFlattenableWriteBuffer& buffer) { + this->INHERITED::flatten(buffer); +} + |