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

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

Issue 1152733008: remove |level| in copyVideoTextureToPlatformTexture(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add TODO Created 5 years, 6 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 "platform/graphics/GraphicsTypes3D.h" 9 #include "platform/graphics/GraphicsTypes3D.h"
10 #include "third_party/khronos/GLES2/gl2.h" 10 #include "third_party/khronos/GLES2/gl2.h"
11 #include "third_party/khronos/GLES2/gl2ext.h" 11 #include "third_party/khronos/GLES2/gl2ext.h"
12 #include "wtf/HashSet.h" 12 #include "wtf/HashSet.h"
13 #include "wtf/text/WTFString.h" 13 #include "wtf/text/WTFString.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class WebGraphicsContext3D; 17 class WebGraphicsContext3D;
18 18
19 class PLATFORM_EXPORT Extensions3DUtil { 19 class PLATFORM_EXPORT Extensions3DUtil {
20 public: 20 public:
21 // Creates a new Extensions3DUtil. If the passed WebGraphicsContext3D has be en spontaneously lost, returns null. 21 // Creates a new Extensions3DUtil. If the passed WebGraphicsContext3D has be en spontaneously lost, returns null.
22 static PassOwnPtr<Extensions3DUtil> create(WebGraphicsContext3D*); 22 static PassOwnPtr<Extensions3DUtil> create(WebGraphicsContext3D*);
23 ~Extensions3DUtil(); 23 ~Extensions3DUtil();
24 24
25 bool supportsExtension(const String& name); 25 bool supportsExtension(const String& name);
26 bool ensureExtensionEnabled(const String& name); 26 bool ensureExtensionEnabled(const String& name);
27 bool isExtensionEnabled(const String& name); 27 bool isExtensionEnabled(const String& name);
28 28
29 static bool canUseCopyTextureCHROMIUM(GLenum destFormat, GLenum destType, GL int level); 29 static bool canUseCopyTextureCHROMIUM(GLenum destTarget, GLenum destFormat, GLenum destType, GLint level);
30 30
31 private: 31 private:
32 Extensions3DUtil(WebGraphicsContext3D*); 32 Extensions3DUtil(WebGraphicsContext3D*);
33 bool initializeExtensions(); 33 bool initializeExtensions();
34 34
35 WebGraphicsContext3D* m_context; 35 WebGraphicsContext3D* m_context;
36 HashSet<String> m_enabledExtensions; 36 HashSet<String> m_enabledExtensions;
37 HashSet<String> m_requestableExtensions; 37 HashSet<String> m_requestableExtensions;
38 }; 38 };
39 39
40 } // namespace blink 40 } // namespace blink
41 41
42 #endif // Extensions3DUtil_h 42 #endif // Extensions3DUtil_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/gpu/DrawingBuffer.cpp ('k') | Source/platform/graphics/gpu/Extensions3DUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698