summaryrefslogtreecommitdiffstats
path: root/cc/IOSurfaceLayerChromium.h
blob: 9c353f51fee059f54f72c1e4ca6dc13e2dfe4ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.


#ifndef IOSurfaceLayerChromium_h
#define IOSurfaceLayerChromium_h

#if USE(ACCELERATED_COMPOSITING)

#include "LayerChromium.h"

namespace cc {

class IOSurfaceLayerChromium : public LayerChromium {
public:
    static scoped_refptr<IOSurfaceLayerChromium> create();

    void setIOSurfaceProperties(uint32_t ioSurfaceId, const IntSize&);

    virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
    virtual bool drawsContent() const OVERRIDE;
    virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE;

protected:
    IOSurfaceLayerChromium();

private:
    virtual ~IOSurfaceLayerChromium();

    uint32_t m_ioSurfaceId;
    IntSize m_ioSurfaceSize;
};

}
#endif // USE(ACCELERATED_COMPOSITING)

#endif