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

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

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests: cc, skcanvas_video_renderer, wrtcrecorder... Fake capture supports Y16. Created 4 years, 2 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 18 matching lines...) Expand all
29 // Creates a new Extensions3DUtil. If the passed GLES2Interface has been spo ntaneously lost, returns null. 29 // Creates a new Extensions3DUtil. If the passed GLES2Interface has been spo ntaneously lost, returns null.
30 static std::unique_ptr<Extensions3DUtil> create(gpu::gles2::GLES2Interface*) ; 30 static std::unique_ptr<Extensions3DUtil> create(gpu::gles2::GLES2Interface*) ;
31 ~Extensions3DUtil(); 31 ~Extensions3DUtil();
32 32
33 bool isValid() { return m_isValid; } 33 bool isValid() { return m_isValid; }
34 34
35 bool supportsExtension(const String& name); 35 bool supportsExtension(const String& name);
36 bool ensureExtensionEnabled(const String& name); 36 bool ensureExtensionEnabled(const String& name);
37 bool isExtensionEnabled(const String& name); 37 bool isExtensionEnabled(const String& name);
38 38
39 static bool canUseCopyTextureCHROMIUM(GLenum destTarget, GLenum destFormat, GLenum destType, GLint level); 39 bool canUseCopyTextureCHROMIUM(GLenum destTarget, GLenum destFormat, GLenum destType, GLint level);
40 40
41 private: 41 private:
42 Extensions3DUtil(gpu::gles2::GLES2Interface*); 42 Extensions3DUtil(gpu::gles2::GLES2Interface*);
43 void initializeExtensions(); 43 void initializeExtensions();
44 44
45 gpu::gles2::GLES2Interface* m_gl; 45 gpu::gles2::GLES2Interface* m_gl;
46 HashSet<String> m_enabledExtensions; 46 HashSet<String> m_enabledExtensions;
47 HashSet<String> m_requestableExtensions; 47 HashSet<String> m_requestableExtensions;
48 bool m_isValid; 48 bool m_isValid;
49 }; 49 };
50 50
51 } // namespace blink 51 } // namespace blink
52 52
53 #endif // Extensions3DUtil_h 53 #endif // Extensions3DUtil_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698