LCOV - code coverage report
Current view: top level - canvas/source/opengl - ogl_canvasbitmap.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 2 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             : #ifndef INCLUDED_CANVAS_SOURCE_OPENGL_OGL_CANVASBITMAP_HXX
      11             : #define INCLUDED_CANVAS_SOURCE_OPENGL_OGL_CANVASBITMAP_HXX
      12             : 
      13             : #include <cppuhelper/compbase2.hxx>
      14             : 
      15             : #include <com/sun/star/rendering/XBitmapCanvas.hpp>
      16             : #include <com/sun/star/rendering/XIntegerBitmap.hpp>
      17             : 
      18             : #include <canvas/base/integerbitmapbase.hxx>
      19             : #include <canvas/base/basemutexhelper.hxx>
      20             : #include <basegfx/vector/b2isize.hxx>
      21             : 
      22             : #include <boost/shared_ptr.hpp>
      23             : 
      24             : #include "ogl_bitmapcanvashelper.hxx"
      25             : #include "ogl_spritecanvas.hxx"
      26             : 
      27             : 
      28             : /* Definition of CanvasBitmap class */
      29             : 
      30             : namespace oglcanvas
      31             : {
      32             :     typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XBitmapCanvas,
      33             :                                               ::com::sun::star::rendering::XIntegerBitmap > CanvasBitmapBase_Base;
      34             :     typedef ::canvas::IntegerBitmapBase<
      35             :         canvas::BitmapCanvasBase2<
      36             :             ::canvas::BaseMutexHelper< CanvasBitmapBase_Base >,
      37             :             BitmapCanvasHelper,
      38             :             ::osl::MutexGuard,
      39             :             ::cppu::OWeakObject> > CanvasBitmapBaseT;
      40             : 
      41           0 :     class CanvasBitmap : public CanvasBitmapBaseT
      42             :     {
      43             :     public:
      44             :         /** Create a canvas bitmap for the given surface
      45             : 
      46             :             @param rSize
      47             :             Size of the bitmap
      48             : 
      49             :             @param rDevice
      50             :             Reference device, with which bitmap should be compatible
      51             :          */
      52             :         CanvasBitmap( const ::com::sun::star::geometry::IntegerSize2D& rSize,
      53             :                       const SpriteCanvasRef&                           rDevice,
      54             :                       SpriteDeviceHelper&                              rDeviceHelper,
      55             :                       bool                                             bHasAlpha );
      56             : 
      57             :         /** Create verbatim copy (including all recorded actions)
      58             :          */
      59             :         CanvasBitmap( const CanvasBitmap& rSrc );
      60             : 
      61             :         /// Dispose all internal references
      62             :         virtual void disposeThis() SAL_OVERRIDE;
      63             : 
      64             :         /** Write out recorded actions
      65             :          */
      66             :         bool renderRecordedActions() const;
      67             : 
      68             :     private:
      69             :         /** MUST hold here, too, since CanvasHelper only contains a
      70             :             raw pointer (without refcounting)
      71             :         */
      72             :         SpriteCanvasRef mpDevice;
      73             :         bool            mbHasAlpha;
      74             :     };
      75             : }
      76             : 
      77             : #endif
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11