Don't consider a Bluetooth adapter present until it has an address.
[chromium-blink-merge.git] / cc / VideoLayerChromium.h
blob88671d00c6f725f7b75c32deb9e818c253c592b5
1 // Copyright 2010 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 VideoLayerChromium_h
7 #define VideoLayerChromium_h
9 #if USE(ACCELERATED_COMPOSITING)
11 #include "LayerChromium.h"
13 namespace WebKit {
14 class WebVideoFrameProvider;
17 namespace WebCore {
19 class CCVideoLayerImpl;
21 // A Layer that contains a Video element.
22 class VideoLayerChromium : public LayerChromium {
23 public:
25 static PassRefPtr<VideoLayerChromium> create(WebKit::WebVideoFrameProvider*);
26 virtual ~VideoLayerChromium();
28 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
30 private:
31 explicit VideoLayerChromium(WebKit::WebVideoFrameProvider*);
33 // This pointer is only for passing to CCVideoLayerImpl's constructor. It should never be dereferenced by this class.
34 WebKit::WebVideoFrameProvider* m_provider;
38 #endif // USE(ACCELERATED_COMPOSITING)
40 #endif