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

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

Issue 2738163002: Enable CopyTextureCHROMIUM in Blink for Tex{Sub}Image2D with more cases (Closed)
Patch Set: rebase only--blink renaming and formatting Created 3 years, 8 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 <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"
(...skipping 20 matching lines...) Expand all
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 is_valid_; } 35 bool IsValid() { return is_valid_; }
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 40
41 static bool CanUseCopyTextureCHROMIUM(GLenum dest_target, 41 static bool CanUseCopyTextureCHROMIUM(GLenum dest_target);
42 GLenum dest_format,
43 GLenum dest_type,
44 GLint level);
45 42
46 private: 43 private:
47 Extensions3DUtil(gpu::gles2::GLES2Interface*); 44 Extensions3DUtil(gpu::gles2::GLES2Interface*);
48 void InitializeExtensions(); 45 void InitializeExtensions();
49 46
50 gpu::gles2::GLES2Interface* gl_; 47 gpu::gles2::GLES2Interface* gl_;
51 HashSet<String> enabled_extensions_; 48 HashSet<String> enabled_extensions_;
52 HashSet<String> requestable_extensions_; 49 HashSet<String> requestable_extensions_;
53 bool is_valid_; 50 bool is_valid_;
54 }; 51 };
55 52
56 } // namespace blink 53 } // namespace blink
57 54
58 #endif // Extensions3DUtil_h 55 #endif // Extensions3DUtil_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698