• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2012 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #include "SkSingleInputImageFilter.h"
9 #include "SkBitmap.h"
10 #include "SkFlattenableBuffers.h"
11 #include "SkMatrix.h"
12 
SkSingleInputImageFilter(SkImageFilter * input)13 SkSingleInputImageFilter::SkSingleInputImageFilter(SkImageFilter* input) : INHERITED(input) {
14 }
15 
~SkSingleInputImageFilter()16 SkSingleInputImageFilter::~SkSingleInputImageFilter() {
17 }
18 
SkSingleInputImageFilter(SkFlattenableReadBuffer & rb)19 SkSingleInputImageFilter::SkSingleInputImageFilter(SkFlattenableReadBuffer& rb)
20     : INHERITED(rb) {
21 }
22 
flatten(SkFlattenableWriteBuffer & wb) const23 void SkSingleInputImageFilter::flatten(SkFlattenableWriteBuffer& wb) const {
24     this->INHERITED::flatten(wb);
25 }
26 
getInputResult(Proxy * proxy,const SkBitmap & src,const SkMatrix & ctm,SkIPoint * offset)27 SkBitmap SkSingleInputImageFilter::getInputResult(Proxy* proxy,
28                                                   const SkBitmap& src,
29                                                   const SkMatrix& ctm,
30                                                   SkIPoint* offset) {
31     return this->INHERITED::getInputResult(0, proxy, src, ctm, offset);
32 }
33