OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef Extensions3DUtil_h | 5 #ifndef Extensions3DUtil_h |
6 #define Extensions3DUtil_h | 6 #define Extensions3DUtil_h |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
10 #include "platform/wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
11 #include "platform/wtf/HashSet.h" | 11 #include "platform/wtf/HashSet.h" |
12 #include "platform/wtf/Noncopyable.h" | 12 #include "platform/wtf/Noncopyable.h" |
13 #include "platform/wtf/text/StringHash.h" | 13 #include "platform/wtf/text/StringHash.h" |
14 #include "platform/wtf/text/WTFString.h" | 14 #include "platform/wtf/text/WTFString.h" |
15 #include "third_party/khronos/GLES2/gl2.h" | 15 #include "third_party/khronos/GLES2/gl2.h" |
16 | 16 |
17 namespace gpu { | 17 namespace gpu { |
18 namespace gles2 { | 18 namespace gles2 { |
19 class GLES2Interface; | 19 class GLES2Interface; |
20 } | 20 } |
21 } | 21 } // namespace gpu |
22 | 22 |
23 namespace blink { | 23 namespace blink { |
24 | 24 |
25 class PLATFORM_EXPORT Extensions3DUtil final { | 25 class PLATFORM_EXPORT Extensions3DUtil final { |
26 USING_FAST_MALLOC(Extensions3DUtil); | 26 USING_FAST_MALLOC(Extensions3DUtil); |
27 WTF_MAKE_NONCOPYABLE(Extensions3DUtil); | 27 WTF_MAKE_NONCOPYABLE(Extensions3DUtil); |
28 | 28 |
29 public: | 29 public: |
30 // Creates a new Extensions3DUtil. If the passed GLES2Interface has been | 30 // Creates a new Extensions3DUtil. If the passed GLES2Interface has been |
31 // spontaneously lost, returns null. | 31 // spontaneously lost, returns null. |
(...skipping 14 matching lines...) Expand all Loading... |
46 | 46 |
47 gpu::gles2::GLES2Interface* gl_; | 47 gpu::gles2::GLES2Interface* gl_; |
48 HashSet<String> enabled_extensions_; | 48 HashSet<String> enabled_extensions_; |
49 HashSet<String> requestable_extensions_; | 49 HashSet<String> requestable_extensions_; |
50 bool is_valid_; | 50 bool is_valid_; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace blink | 53 } // namespace blink |
54 | 54 |
55 #endif // Extensions3DUtil_h | 55 #endif // Extensions3DUtil_h |
OLD | NEW |