| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 WebGLCompressedTexturePVRTC::WebGLCompressedTexturePVRTC( | 32 WebGLCompressedTexturePVRTC::WebGLCompressedTexturePVRTC( |
| 33 WebGLRenderingContextBase* context) | 33 WebGLRenderingContextBase* context) |
| 34 : WebGLExtension(context) { | 34 : WebGLExtension(context) { |
| 35 context->addCompressedTextureFormat(GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG); | 35 context->addCompressedTextureFormat(GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG); |
| 36 context->addCompressedTextureFormat(GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG); | 36 context->addCompressedTextureFormat(GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG); |
| 37 context->addCompressedTextureFormat(GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG); | 37 context->addCompressedTextureFormat(GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG); |
| 38 context->addCompressedTextureFormat(GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG); | 38 context->addCompressedTextureFormat(GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG); |
| 39 } | 39 } |
| 40 | 40 |
| 41 WebGLCompressedTexturePVRTC::~WebGLCompressedTexturePVRTC() {} | |
| 42 | |
| 43 WebGLExtensionName WebGLCompressedTexturePVRTC::name() const { | 41 WebGLExtensionName WebGLCompressedTexturePVRTC::name() const { |
| 44 return WebGLCompressedTexturePVRTCName; | 42 return WebGLCompressedTexturePVRTCName; |
| 45 } | 43 } |
| 46 | 44 |
| 47 WebGLCompressedTexturePVRTC* WebGLCompressedTexturePVRTC::create( | 45 WebGLCompressedTexturePVRTC* WebGLCompressedTexturePVRTC::create( |
| 48 WebGLRenderingContextBase* context) { | 46 WebGLRenderingContextBase* context) { |
| 49 return new WebGLCompressedTexturePVRTC(context); | 47 return new WebGLCompressedTexturePVRTC(context); |
| 50 } | 48 } |
| 51 | 49 |
| 52 bool WebGLCompressedTexturePVRTC::supported( | 50 bool WebGLCompressedTexturePVRTC::supported( |
| 53 WebGLRenderingContextBase* context) { | 51 WebGLRenderingContextBase* context) { |
| 54 return context->extensionsUtil()->supportsExtension( | 52 return context->extensionsUtil()->supportsExtension( |
| 55 "GL_IMG_texture_compression_pvrtc"); | 53 "GL_IMG_texture_compression_pvrtc"); |
| 56 } | 54 } |
| 57 | 55 |
| 58 const char* WebGLCompressedTexturePVRTC::extensionName() { | 56 const char* WebGLCompressedTexturePVRTC::extensionName() { |
| 59 return "WEBGL_compressed_texture_pvrtc"; | 57 return "WEBGL_compressed_texture_pvrtc"; |
| 60 } | 58 } |
| 61 | 59 |
| 62 } // namespace blink | 60 } // namespace blink |
| OLD | NEW |