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

Side by Side Diff: sky/engine/core/html/canvas/WebGLCompressedTextureETC1.cpp

Issue 1001913003: Remove <canvas> (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "sky/engine/config.h"
6
7 #include "sky/engine/core/html/canvas/WebGLCompressedTextureETC1.h"
8
9 #include "sky/engine/core/html/canvas/WebGLRenderingContextBase.h"
10
11 namespace blink {
12
13 WebGLCompressedTextureETC1::WebGLCompressedTextureETC1(WebGLRenderingContextBase * context)
14 : WebGLExtension(context)
15 {
16 context->addCompressedTextureFormat(GL_ETC1_RGB8_OES);
17 }
18
19 WebGLCompressedTextureETC1::~WebGLCompressedTextureETC1()
20 {
21 }
22
23 WebGLExtensionName WebGLCompressedTextureETC1::name() const
24 {
25 return WebGLCompressedTextureETC1Name;
26 }
27
28 PassRefPtr<WebGLCompressedTextureETC1> WebGLCompressedTextureETC1::create(WebGLR enderingContextBase* context)
29 {
30 return adoptRef(new WebGLCompressedTextureETC1(context));
31 }
32
33 bool WebGLCompressedTextureETC1::supported(WebGLRenderingContextBase* context)
34 {
35 Extensions3DUtil* extensionsUtil = context->extensionsUtil();
36 return extensionsUtil->supportsExtension("GL_OES_compressed_ETC1_RGB8_textur e");
37 }
38
39 const char* WebGLCompressedTextureETC1::extensionName()
40 {
41 return "WEBGL_compressed_texture_etc1";
42 }
43
44 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/WebGLCompressedTextureETC1.h ('k') | sky/engine/core/html/canvas/WebGLCompressedTextureETC1.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698