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

Side by Side Diff: Source/modules/webgl/WebGLCompressedTextureETC1.cpp

Issue 1234883002: [Oilpan] Migrate classes under module/webgl onto oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 4 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 #include "config.h" 5 #include "config.h"
6 6
7 #include "modules/webgl/WebGLCompressedTextureETC1.h" 7 #include "modules/webgl/WebGLCompressedTextureETC1.h"
8 8
9 #include "modules/webgl/WebGLRenderingContextBase.h" 9 #include "modules/webgl/WebGLRenderingContextBase.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 WebGLCompressedTextureETC1::WebGLCompressedTextureETC1(WebGLRenderingContextBase * context) 13 WebGLCompressedTextureETC1::WebGLCompressedTextureETC1(WebGLRenderingContextBase * context)
14 : WebGLExtension(context) 14 : WebGLExtension(context)
15 { 15 {
16 context->addCompressedTextureFormat(GL_ETC1_RGB8_OES); 16 context->addCompressedTextureFormat(GL_ETC1_RGB8_OES);
17 } 17 }
18 18
19 WebGLCompressedTextureETC1::~WebGLCompressedTextureETC1() 19 WebGLCompressedTextureETC1::~WebGLCompressedTextureETC1()
20 { 20 {
21 } 21 }
22 22
23 WebGLExtensionName WebGLCompressedTextureETC1::name() const 23 WebGLExtensionName WebGLCompressedTextureETC1::name() const
24 { 24 {
25 return WebGLCompressedTextureETC1Name; 25 return WebGLCompressedTextureETC1Name;
26 } 26 }
27 27
28 PassRefPtrWillBeRawPtr<WebGLCompressedTextureETC1> WebGLCompressedTextureETC1::c reate(WebGLRenderingContextBase* context) 28 WebGLCompressedTextureETC1* WebGLCompressedTextureETC1::create(WebGLRenderingCon textBase* context)
29 { 29 {
30 return adoptRefWillBeNoop(new WebGLCompressedTextureETC1(context)); 30 return new WebGLCompressedTextureETC1(context);
31 } 31 }
32 32
33 bool WebGLCompressedTextureETC1::supported(WebGLRenderingContextBase* context) 33 bool WebGLCompressedTextureETC1::supported(WebGLRenderingContextBase* context)
34 { 34 {
35 Extensions3DUtil* extensionsUtil = context->extensionsUtil(); 35 Extensions3DUtil* extensionsUtil = context->extensionsUtil();
36 return extensionsUtil->supportsExtension("GL_OES_compressed_ETC1_RGB8_textur e"); 36 return extensionsUtil->supportsExtension("GL_OES_compressed_ETC1_RGB8_textur e");
37 } 37 }
38 38
39 const char* WebGLCompressedTextureETC1::extensionName() 39 const char* WebGLCompressedTextureETC1::extensionName()
40 { 40 {
41 return "WEBGL_compressed_texture_etc1"; 41 return "WEBGL_compressed_texture_etc1";
42 } 42 }
43 43
44 } // namespace blink 44 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/webgl/WebGLCompressedTextureETC1.h ('k') | Source/modules/webgl/WebGLCompressedTextureETC1.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698