/src/mozilla-central/dom/canvas/WebGLVertexArrayFake.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
3 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | | |
6 | | #ifndef WEBGL_VERTEX_ARRAY_FAKE_H_ |
7 | | #define WEBGL_VERTEX_ARRAY_FAKE_H_ |
8 | | |
9 | | #include "WebGLVertexArray.h" |
10 | | |
11 | | namespace mozilla { |
12 | | |
13 | | class WebGLVertexArrayFake final |
14 | | : public WebGLVertexArray |
15 | | { |
16 | | friend class WebGLVertexArray; |
17 | | |
18 | | protected: |
19 | | virtual void BindVertexArrayImpl() override; |
20 | | virtual void DeleteImpl() override; |
21 | 0 | virtual void GenVertexArray() override {}; |
22 | | virtual bool IsVertexArrayImpl() const override; |
23 | | |
24 | | private: |
25 | | explicit WebGLVertexArrayFake(WebGLContext* webgl); |
26 | | |
27 | 0 | ~WebGLVertexArrayFake() { |
28 | 0 | DeleteOnce(); |
29 | 0 | } |
30 | | |
31 | | bool mIsVAO; |
32 | | }; |
33 | | |
34 | | } // namespace mozilla |
35 | | |
36 | | #endif // WEBGL_VERTEX_ARRAY_FAKE_H_ |