1/*
2 * Copyright (C) 2011, 2012 Igalia S.L.
3 *
4 *  This library is free software; you can redistribute it and/or
5 *  modify it under the terms of the GNU Lesser General Public
6 *  License as published by the Free Software Foundation; either
7 *  version 2 of the License, or (at your option) any later version.
8 *
9 *  This library is distributed in the hope that it will be useful,
10 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 *  Lesser General Public License for more details.
13 *
14 *  You should have received a copy of the GNU Lesser General Public
15 *  License along with this library; if not, write to the Free
16 *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 *  Boston, MA 02110-1301 USA
18 */
19
20#include "config.h"
21#include "GraphicsContext3DPrivate.h"
22
23#if USE(3D_GRAPHICS)
24
25#include "HostWindow.h"
26#include "NotImplemented.h"
27#include "TransformationMatrix.h"
28
29namespace WebCore {
30
31PassOwnPtr<GraphicsContext3DPrivate> GraphicsContext3DPrivate::create(GraphicsContext3D* context, HostWindow* window)
32{
33    return adoptPtr(new GraphicsContext3DPrivate(context, window));
34}
35
36GraphicsContext3DPrivate::GraphicsContext3DPrivate(GraphicsContext3D* context, HostWindow* window)
37    : m_context(context)
38    , m_window(window)
39{
40}
41
42GraphicsContext3DPrivate::~GraphicsContext3DPrivate()
43{
44}
45
46bool GraphicsContext3DPrivate::makeContextCurrent()
47{
48    return false;
49}
50
51PlatformGraphicsContext3D GraphicsContext3DPrivate::platformContext()
52{
53    return 0;
54}
55
56#if USE(ACCELERATED_COMPOSITING) && USE(CLUTTER)
57void GraphicsContext3DPrivate::paintToGraphicsLayerActor(ClutterActor*, const FloatRect& target, const TransformationMatrix& matrix, float opacity)
58{
59}
60#endif // USE(ACCELERATED_COMPOSITING)
61
62} // namespace WebCore
63
64#endif // USE(3D_GRAPHICS)
65