LCOV - code coverage report
Current view: top level - canvas/source/opengl - ogl_bitmapcanvashelper.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 25 0.0 %
Date: 2014-11-03 Functions: 0 11 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #include "ogl_bitmapcanvashelper.hxx"
      11             : 
      12             : #include <canvas/debug.hxx>
      13             : #include <canvas/canvastools.hxx>
      14             : #include <tools/diagnose_ex.h>
      15             : 
      16             : 
      17             : using namespace ::com::sun::star;
      18             : 
      19             : namespace oglcanvas
      20             : {
      21           0 :     BitmapCanvasHelper::BitmapCanvasHelper()
      22           0 :     {}
      23             : 
      24           0 :     void BitmapCanvasHelper::disposing()
      25             :     {
      26           0 :         CanvasHelper::disposing();
      27           0 :     }
      28             : 
      29           0 :     void BitmapCanvasHelper::init( rendering::XGraphicDevice&     rDevice,
      30             :                                    SpriteDeviceHelper&            rDeviceHelper,
      31             :                                    const geometry::IntegerSize2D& rSize )
      32             :     {
      33           0 :         maSize = rSize;
      34           0 :         CanvasHelper::init(rDevice,rDeviceHelper);
      35           0 :     }
      36             : 
      37           0 :     void BitmapCanvasHelper::copyRect( const rendering::XCanvas*                            /*pCanvas*/,
      38             :                                        const uno::Reference< rendering::XBitmapCanvas >&    /*sourceCanvas*/,
      39             :                                        const geometry::RealRectangle2D&                     /*sourceRect*/,
      40             :                                        const rendering::ViewState&                          /*sourceViewState*/,
      41             :                                        const rendering::RenderState&                        /*sourceRenderState*/,
      42             :                                        const geometry::RealRectangle2D&                     /*destRect*/,
      43             :                                        const rendering::ViewState&                          /*destViewState*/,
      44             :                                        const rendering::RenderState&                        /*destRenderState*/ )
      45             :     {
      46             :         // TODO(F2): copyRect NYI
      47           0 :     }
      48             : 
      49             : 
      50           0 :     uno::Reference< rendering::XBitmap > BitmapCanvasHelper::getScaledBitmap( const geometry::RealSize2D& /*newSize*/,
      51             :                                                                               bool                    /*beFast*/ )
      52             :     {
      53             :         // TODO(F1):
      54           0 :         return uno::Reference< rendering::XBitmap >();
      55             :     }
      56             : 
      57           0 :     uno::Sequence< sal_Int8 > BitmapCanvasHelper::getData( rendering::IntegerBitmapLayout&     /*bitmapLayout*/,
      58             :                                                            const geometry::IntegerRectangle2D& /*rect*/ )
      59             :     {
      60             :         // TODO(F2): NYI - and improbable to ever be
      61           0 :         return uno::Sequence< sal_Int8 >();
      62             :     }
      63             : 
      64           0 :     void BitmapCanvasHelper::setData( const uno::Sequence< sal_Int8 >&      /*data*/,
      65             :                                       const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
      66             :                                       const geometry::IntegerRectangle2D&   /*rect*/ )
      67             :     {
      68             :         // TODO(F2): NYI - and improbable to ever be
      69           0 :     }
      70             : 
      71           0 :     void BitmapCanvasHelper::setPixel( const uno::Sequence< sal_Int8 >&       /*color*/,
      72             :                                        const rendering::IntegerBitmapLayout&  /*bitmapLayout*/,
      73             :                                        const geometry::IntegerPoint2D&        /*pos*/ )
      74             :     {
      75             :         // TODO(F2): NYI - and improbable to ever be
      76           0 :     }
      77             : 
      78           0 :     uno::Sequence< sal_Int8 > BitmapCanvasHelper::getPixel( rendering::IntegerBitmapLayout&   /*bitmapLayout*/,
      79             :                                                             const geometry::IntegerPoint2D&   /*pos*/ )
      80             :     {
      81             :         // TODO(F2): NYI - and improbable to ever be
      82           0 :         return uno::Sequence< sal_Int8 >();
      83             :     }
      84             : 
      85           0 :     rendering::IntegerBitmapLayout BitmapCanvasHelper::getMemoryLayout()
      86             :     {
      87           0 :         return ::canvas::tools::getStdMemoryLayout(getSize());
      88             :     }
      89             : 
      90           0 :     bool BitmapCanvasHelper::hasAlpha() const
      91             :     {
      92           0 :         return true;
      93             :     }
      94             : 
      95             : }
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10