1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #ifndef IOSurfaceLayerChromium_h
7 #define IOSurfaceLayerChromium_h
9 #if USE(ACCELERATED_COMPOSITING)
11 #include "LayerChromium.h"
15 class IOSurfaceLayerChromium
: public LayerChromium
{
17 static scoped_refptr
<IOSurfaceLayerChromium
> create();
19 void setIOSurfaceProperties(uint32_t ioSurfaceId
, const IntSize
&);
21 virtual PassOwnPtr
<CCLayerImpl
> createCCLayerImpl() OVERRIDE
;
22 virtual bool drawsContent() const OVERRIDE
;
23 virtual void pushPropertiesTo(CCLayerImpl
*) OVERRIDE
;
26 IOSurfaceLayerChromium();
29 virtual ~IOSurfaceLayerChromium();
31 uint32_t m_ioSurfaceId
;
32 IntSize m_ioSurfaceSize
;
36 #endif // USE(ACCELERATED_COMPOSITING)