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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLCompressedTextureATC.cpp

Issue 2547813002: Remove WebGLObject maps from WebGLRenderingContextBase and WebGLContextGroup. (Closed)
Patch Set: Fixed WebGLContextObject::validate. Made WebGLExtension non-finalized. Created 4 years 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 /* 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 19 matching lines...) Expand all
30 WebGLCompressedTextureATC::WebGLCompressedTextureATC( 30 WebGLCompressedTextureATC::WebGLCompressedTextureATC(
31 WebGLRenderingContextBase* context) 31 WebGLRenderingContextBase* context)
32 : WebGLExtension(context) { 32 : WebGLExtension(context) {
33 context->addCompressedTextureFormat(GC3D_COMPRESSED_ATC_RGB_AMD); 33 context->addCompressedTextureFormat(GC3D_COMPRESSED_ATC_RGB_AMD);
34 context->addCompressedTextureFormat( 34 context->addCompressedTextureFormat(
35 GC3D_COMPRESSED_ATC_RGBA_EXPLICIT_ALPHA_AMD); 35 GC3D_COMPRESSED_ATC_RGBA_EXPLICIT_ALPHA_AMD);
36 context->addCompressedTextureFormat( 36 context->addCompressedTextureFormat(
37 GC3D_COMPRESSED_ATC_RGBA_INTERPOLATED_ALPHA_AMD); 37 GC3D_COMPRESSED_ATC_RGBA_INTERPOLATED_ALPHA_AMD);
38 } 38 }
39 39
40 WebGLCompressedTextureATC::~WebGLCompressedTextureATC() {}
41
42 WebGLExtensionName WebGLCompressedTextureATC::name() const { 40 WebGLExtensionName WebGLCompressedTextureATC::name() const {
43 return WebGLCompressedTextureATCName; 41 return WebGLCompressedTextureATCName;
44 } 42 }
45 43
46 WebGLCompressedTextureATC* WebGLCompressedTextureATC::create( 44 WebGLCompressedTextureATC* WebGLCompressedTextureATC::create(
47 WebGLRenderingContextBase* context) { 45 WebGLRenderingContextBase* context) {
48 return new WebGLCompressedTextureATC(context); 46 return new WebGLCompressedTextureATC(context);
49 } 47 }
50 48
51 bool WebGLCompressedTextureATC::supported(WebGLRenderingContextBase* context) { 49 bool WebGLCompressedTextureATC::supported(WebGLRenderingContextBase* context) {
52 return context->extensionsUtil()->supportsExtension( 50 return context->extensionsUtil()->supportsExtension(
53 "GL_AMD_compressed_ATC_texture"); 51 "GL_AMD_compressed_ATC_texture");
54 } 52 }
55 53
56 const char* WebGLCompressedTextureATC::extensionName() { 54 const char* WebGLCompressedTextureATC::extensionName() {
57 return "WEBGL_compressed_texture_atc"; 55 return "WEBGL_compressed_texture_atc";
58 } 56 }
59 57
60 } // namespace blink 58 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698