Branch libreoffice-5-0-4
[LibreOffice.git] / canvas / source / opengl / ogl_bitmapcanvashelper.cxx
blob715cbdca5a35a91f584821c0f37884a617b52ec6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #include "ogl_bitmapcanvashelper.hxx"
12 #include <canvas/debug.hxx>
13 #include <canvas/canvastools.hxx>
14 #include <tools/diagnose_ex.h>
17 using namespace ::com::sun::star;
19 namespace oglcanvas
21 BitmapCanvasHelper::BitmapCanvasHelper()
24 void BitmapCanvasHelper::disposing()
26 CanvasHelper::disposing();
29 void BitmapCanvasHelper::init( rendering::XGraphicDevice& rDevice,
30 SpriteDeviceHelper& rDeviceHelper,
31 const geometry::IntegerSize2D& rSize )
33 maSize = rSize;
34 CanvasHelper::init(rDevice,rDeviceHelper);
37 uno::Reference< rendering::XBitmap > BitmapCanvasHelper::getScaledBitmap( const geometry::RealSize2D& /*newSize*/,
38 bool /*beFast*/ )
40 // TODO(F1):
41 return uno::Reference< rendering::XBitmap >();
44 uno::Sequence< sal_Int8 > BitmapCanvasHelper::getData( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
45 const geometry::IntegerRectangle2D& /*rect*/ )
47 // TODO(F2): NYI - and improbable to ever be
48 return uno::Sequence< sal_Int8 >();
51 uno::Sequence< sal_Int8 > BitmapCanvasHelper::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
52 const geometry::IntegerPoint2D& /*pos*/ )
54 // TODO(F2): NYI - and improbable to ever be
55 return uno::Sequence< sal_Int8 >();
58 rendering::IntegerBitmapLayout BitmapCanvasHelper::getMemoryLayout()
60 return ::canvas::tools::getStdMemoryLayout(getSize());
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */