LCOV - code coverage report
Current view: top level - canvas/source/opengl - ogl_bitmapcanvashelper.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 0 27 0.0 %
Date: 2014-04-11 Functions: 0 12 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           0 :     geometry::IntegerSize2D BitmapCanvasHelper::getSize()
      50             :     {
      51           0 :         return maSize;
      52             :     }
      53             : 
      54           0 :     uno::Reference< rendering::XBitmap > BitmapCanvasHelper::getScaledBitmap( const geometry::RealSize2D& /*newSize*/,
      55             :                                                                               sal_Bool                    /*beFast*/ )
      56             :     {
      57             :         // TODO(F1):
      58           0 :         return uno::Reference< rendering::XBitmap >();
      59             :     }
      60             : 
      61           0 :     uno::Sequence< sal_Int8 > BitmapCanvasHelper::getData( rendering::IntegerBitmapLayout&     /*bitmapLayout*/,
      62             :                                                            const geometry::IntegerRectangle2D& /*rect*/ )
      63             :     {
      64             :         // TODO(F2): NYI - and improbable to ever be
      65           0 :         return uno::Sequence< sal_Int8 >();
      66             :     }
      67             : 
      68           0 :     void BitmapCanvasHelper::setData( const uno::Sequence< sal_Int8 >&      /*data*/,
      69             :                                       const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
      70             :                                       const geometry::IntegerRectangle2D&   /*rect*/ )
      71             :     {
      72             :         // TODO(F2): NYI - and improbable to ever be
      73           0 :     }
      74             : 
      75           0 :     void BitmapCanvasHelper::setPixel( const uno::Sequence< sal_Int8 >&       /*color*/,
      76             :                                        const rendering::IntegerBitmapLayout&  /*bitmapLayout*/,
      77             :                                        const geometry::IntegerPoint2D&        /*pos*/ )
      78             :     {
      79             :         // TODO(F2): NYI - and improbable to ever be
      80           0 :     }
      81             : 
      82           0 :     uno::Sequence< sal_Int8 > BitmapCanvasHelper::getPixel( rendering::IntegerBitmapLayout&   /*bitmapLayout*/,
      83             :                                                             const geometry::IntegerPoint2D&   /*pos*/ )
      84             :     {
      85             :         // TODO(F2): NYI - and improbable to ever be
      86           0 :         return uno::Sequence< sal_Int8 >();
      87             :     }
      88             : 
      89           0 :     rendering::IntegerBitmapLayout BitmapCanvasHelper::getMemoryLayout()
      90             :     {
      91           0 :         return ::canvas::tools::getStdMemoryLayout(getSize());
      92             :     }
      93             : 
      94           0 :     bool BitmapCanvasHelper::hasAlpha() const
      95             :     {
      96           0 :         return true;
      97             :     }
      98             : 
      99             : }
     100             : 
     101             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10