Don't consider a Bluetooth adapter present until it has an address.
[chromium-blink-merge.git] / cc / CCStreamVideoDrawQuad.cpp
blobc766f98862e622836a33e00d8dbfb713968bf77e
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.
5 #include "config.h"
7 #include "CCStreamVideoDrawQuad.h"
9 namespace WebCore {
11 PassOwnPtr<CCStreamVideoDrawQuad> CCStreamVideoDrawQuad::create(const CCSharedQuadState* sharedQuadState, const IntRect& quadRect, unsigned textureId, const WebKit::WebTransformationMatrix& matrix)
13 return adoptPtr(new CCStreamVideoDrawQuad(sharedQuadState, quadRect, textureId, matrix));
16 CCStreamVideoDrawQuad::CCStreamVideoDrawQuad(const CCSharedQuadState* sharedQuadState, const IntRect& quadRect, unsigned textureId, const WebKit::WebTransformationMatrix& matrix)
17 : CCDrawQuad(sharedQuadState, CCDrawQuad::StreamVideoContent, quadRect)
18 , m_textureId(textureId)
19 , m_matrix(matrix)
23 const CCStreamVideoDrawQuad* CCStreamVideoDrawQuad::materialCast(const CCDrawQuad* quad)
25 ASSERT(quad->material() == CCDrawQuad::StreamVideoContent);
26 return static_cast<const CCStreamVideoDrawQuad*>(quad);