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

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

Issue 1548993002: Switch to standard integer types in base/strings/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "modules/webgl/WebGL2RenderingContextBase.h" 5 #include "modules/webgl/WebGL2RenderingContextBase.h"
6 6
7 #include "bindings/modules/v8/WebGLAny.h" 7 #include "bindings/modules/v8/WebGLAny.h"
8 #include "core/html/HTMLCanvasElement.h" 8 #include "core/html/HTMLCanvasElement.h"
9 #include "core/html/HTMLImageElement.h" 9 #include "core/html/HTMLImageElement.h"
10 #include "core/html/HTMLVideoElement.h" 10 #include "core/html/HTMLVideoElement.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 GL_COMPRESSED_SRGB8_ETC2, 105 GL_COMPRESSED_SRGB8_ETC2,
106 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, 106 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
107 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, 107 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
108 GL_COMPRESSED_RGBA8_ETC2_EAC, 108 GL_COMPRESSED_RGBA8_ETC2_EAC,
109 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, 109 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
110 }; 110 };
111 111
112 WebGL2RenderingContextBase::WebGL2RenderingContextBase(HTMLCanvasElement* passed Canvas, PassOwnPtr<WebGraphicsContext3D> context, const WebGLContextAttributes& requestedAttributes) 112 WebGL2RenderingContextBase::WebGL2RenderingContextBase(HTMLCanvasElement* passed Canvas, PassOwnPtr<WebGraphicsContext3D> context, const WebGLContextAttributes& requestedAttributes)
113 : WebGLRenderingContextBase(passedCanvas, context, requestedAttributes) 113 : WebGLRenderingContextBase(passedCanvas, context, requestedAttributes)
114 { 114 {
115 m_supportedInternalFormatsStorage.insert(kSupportedInternalFormatsStorage, k SupportedInternalFormatsStorage + arraysize(kSupportedInternalFormatsStorage)); 115 m_supportedInternalFormatsStorage.insert(kSupportedInternalFormatsStorage, k SupportedInternalFormatsStorage + WTF_ARRAY_LENGTH(kSupportedInternalFormatsStor age));
116 m_supportedInternalFormatsStorage.insert(kCompressedTextureFormatsETC2EAC, k CompressedTextureFormatsETC2EAC + arraysize(kCompressedTextureFormatsETC2EAC)); 116 m_supportedInternalFormatsStorage.insert(kCompressedTextureFormatsETC2EAC, k CompressedTextureFormatsETC2EAC + WTF_ARRAY_LENGTH(kCompressedTextureFormatsETC2 EAC));
117 m_compressedTextureFormatsETC2EAC.insert(kCompressedTextureFormatsETC2EAC, k CompressedTextureFormatsETC2EAC + arraysize(kCompressedTextureFormatsETC2EAC)); 117 m_compressedTextureFormatsETC2EAC.insert(kCompressedTextureFormatsETC2EAC, k CompressedTextureFormatsETC2EAC + WTF_ARRAY_LENGTH(kCompressedTextureFormatsETC2 EAC));
118 m_compressedTextureFormats.append(kCompressedTextureFormatsETC2EAC, arraysiz e(kCompressedTextureFormatsETC2EAC)); 118 m_compressedTextureFormats.append(kCompressedTextureFormatsETC2EAC, WTF_ARRA Y_LENGTH(kCompressedTextureFormatsETC2EAC));
119 } 119 }
120 120
121 WebGL2RenderingContextBase::~WebGL2RenderingContextBase() 121 WebGL2RenderingContextBase::~WebGL2RenderingContextBase()
122 { 122 {
123 m_readFramebufferBinding = nullptr; 123 m_readFramebufferBinding = nullptr;
124 124
125 m_boundCopyReadBuffer = nullptr; 125 m_boundCopyReadBuffer = nullptr;
126 m_boundCopyWriteBuffer = nullptr; 126 m_boundCopyWriteBuffer = nullptr;
127 m_boundPixelPackBuffer = nullptr; 127 m_boundPixelPackBuffer = nullptr;
128 m_boundPixelUnpackBuffer = nullptr; 128 m_boundPixelUnpackBuffer = nullptr;
(...skipping 3363 matching lines...) Expand 10 before | Expand all | Expand 10 after
3492 3492
3493 WebGLSampler* sampler = m_samplerUnits[unit]; 3493 WebGLSampler* sampler = m_samplerUnits[unit];
3494 3494
3495 if (sampler) 3495 if (sampler)
3496 return sampler->getSamplerState(); 3496 return sampler->getSamplerState();
3497 3497
3498 return WebGLRenderingContextBase::getTextureUnitSamplerState(target, unit); 3498 return WebGLRenderingContextBase::getTextureUnitSamplerState(target, unit);
3499 } 3499 }
3500 3500
3501 } // namespace blink 3501 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698