Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.h

Issue 2670213005: Hook ANGLE_request_extension up to the passthrough cmd decoder. (Closed)
Patch Set: Address zmo's comments. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "third_party/khronos/GLES2/gl2.h" 9 #include "third_party/khronos/GLES2/gl2.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 19 matching lines...) Expand all
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.
32 static std::unique_ptr<Extensions3DUtil> create(gpu::gles2::GLES2Interface*); 32 static std::unique_ptr<Extensions3DUtil> create(gpu::gles2::GLES2Interface*);
33 ~Extensions3DUtil(); 33 ~Extensions3DUtil();
34 34
35 bool isValid() { return m_isValid; } 35 bool isValid() { return m_isValid; }
36 36
37 bool supportsExtension(const String& name); 37 bool supportsExtension(const String& name);
38 bool ensureExtensionEnabled(const String& name); 38 bool ensureExtensionEnabled(const String& name);
39 bool isExtensionEnabled(const String& name); 39 bool isExtensionEnabled(const String& name);
40 bool isExtensionRequestable(const String& name);
40 41
41 static bool canUseCopyTextureCHROMIUM(GLenum destTarget, 42 static bool canUseCopyTextureCHROMIUM(GLenum destTarget,
42 GLenum destFormat, 43 GLenum destFormat,
43 GLenum destType, 44 GLenum destType,
44 GLint level); 45 GLint level);
45 46
46 private: 47 private:
47 Extensions3DUtil(gpu::gles2::GLES2Interface*); 48 Extensions3DUtil(gpu::gles2::GLES2Interface*);
48 void initializeExtensions(); 49 void initializeExtensions();
49 50
50 gpu::gles2::GLES2Interface* m_gl; 51 gpu::gles2::GLES2Interface* m_gl;
51 HashSet<String> m_enabledExtensions; 52 HashSet<String> m_enabledExtensions;
52 HashSet<String> m_requestableExtensions; 53 HashSet<String> m_requestableExtensions;
53 bool m_isValid; 54 bool m_isValid;
54 }; 55 };
55 56
56 } // namespace blink 57 } // namespace blink
57 58
58 #endif // Extensions3DUtil_h 59 #endif // Extensions3DUtil_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698