LCOV - code coverage report
Current view: directory - gfx/skia/src/core - SkMaskFilter.cpp (source / functions) Found Hit Coverage
Test: app.info Lines: 22 0 0.0 %
Date: 2012-06-02 Functions: 3 0 0.0 %

       1                 : 
       2                 : /*
       3                 :  * Copyright 2006 The Android Open Source Project
       4                 :  *
       5                 :  * Use of this source code is governed by a BSD-style license that can be
       6                 :  * found in the LICENSE file.
       7                 :  */
       8                 : 
       9                 : 
      10                 : #include "SkMaskFilter.h"
      11                 : #include "SkBlitter.h"
      12                 : #include "SkBounder.h"
      13                 : #include "SkBuffer.h"
      14                 : #include "SkDraw.h"
      15                 : #include "SkRasterClip.h"
      16                 : 
      17               0 : bool SkMaskFilter::filterMask(SkMask*, const SkMask&, const SkMatrix&,
      18                 :                               SkIPoint*) {
      19               0 :     return false;
      20                 : }
      21                 : 
      22               0 : bool SkMaskFilter::filterPath(const SkPath& devPath, const SkMatrix& matrix,
      23                 :                               const SkRasterClip& clip, SkBounder* bounder,
      24                 :                               SkBlitter* blitter) {
      25                 :     SkMask  srcM, dstM;
      26                 : 
      27               0 :     if (!SkDraw::DrawToMask(devPath, &clip.getBounds(), this, &matrix, &srcM,
      28               0 :                             SkMask::kComputeBoundsAndRenderImage_CreateMode)) {
      29               0 :         return false;
      30                 :     }
      31               0 :     SkAutoMaskFreeImage autoSrc(srcM.fImage);
      32                 : 
      33               0 :     if (!this->filterMask(&dstM, srcM, matrix, NULL)) {
      34               0 :         return false;
      35                 :     }
      36               0 :     SkAutoMaskFreeImage autoDst(dstM.fImage);
      37                 : 
      38                 :     // if we get here, we need to (possibly) resolve the clip and blitter
      39               0 :     SkAAClipBlitterWrapper wrapper(clip, blitter);
      40               0 :     blitter = wrapper.getBlitter();
      41                 : 
      42               0 :     SkRegion::Cliperator clipper(wrapper.getRgn(), dstM.fBounds);
      43                 : 
      44               0 :     if (!clipper.done() && (bounder == NULL || bounder->doIRect(dstM.fBounds))) {
      45               0 :         const SkIRect& cr = clipper.rect();
      46               0 :         do {
      47               0 :             blitter->blitMask(dstM, cr);
      48               0 :             clipper.next();
      49               0 :         } while (!clipper.done());
      50                 :     }
      51                 : 
      52               0 :     return true;
      53                 : }
      54                 : 
      55               0 : SkMaskFilter::BlurType SkMaskFilter::asABlur(BlurInfo*) const {
      56               0 :     return kNone_BlurType;
      57                 : }
      58                 : 
      59                 : 

Generated by: LCOV version 1.7