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

Side by Side Diff: Source/core/html/canvas/WebGLGetInfo.cpp

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/core/html/canvas/WebGLGetInfo.h ('k') | Source/core/html/parser/HTMLParserIdioms.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 WebGLGetInfo::WebGLGetInfo(const String& value) 83 WebGLGetInfo::WebGLGetInfo(const String& value)
84 : m_type(kTypeString) 84 : m_type(kTypeString)
85 , m_bool(false) 85 , m_bool(false)
86 , m_float(0) 86 , m_float(0)
87 , m_int(0) 87 , m_int(0)
88 , m_string(value) 88 , m_string(value)
89 , m_unsignedInt(0) 89 , m_unsignedInt(0)
90 { 90 {
91 } 91 }
92 92
93 WebGLGetInfo::WebGLGetInfo(unsigned int value) 93 WebGLGetInfo::WebGLGetInfo(unsigned value)
94 : m_type(kTypeUnsignedInt) 94 : m_type(kTypeUnsignedInt)
95 , m_bool(false) 95 , m_bool(false)
96 , m_float(0) 96 , m_float(0)
97 , m_int(0) 97 , m_int(0)
98 , m_unsignedInt(value) 98 , m_unsignedInt(value)
99 { 99 {
100 } 100 }
101 101
102 WebGLGetInfo::WebGLGetInfo(PassRefPtr<WebGLBuffer> value) 102 WebGLGetInfo::WebGLGetInfo(PassRefPtr<WebGLBuffer> value)
103 : m_type(kTypeWebGLBuffer) 103 : m_type(kTypeWebGLBuffer)
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 ASSERT(getType() == kTypeInt); 227 ASSERT(getType() == kTypeInt);
228 return m_int; 228 return m_int;
229 } 229 }
230 230
231 const String& WebGLGetInfo::getString() const 231 const String& WebGLGetInfo::getString() const
232 { 232 {
233 ASSERT(getType() == kTypeString); 233 ASSERT(getType() == kTypeString);
234 return m_string; 234 return m_string;
235 } 235 }
236 236
237 unsigned int WebGLGetInfo::getUnsignedInt() const 237 unsigned WebGLGetInfo::getUnsignedInt() const
238 { 238 {
239 ASSERT(getType() == kTypeUnsignedInt); 239 ASSERT(getType() == kTypeUnsignedInt);
240 return m_unsignedInt; 240 return m_unsignedInt;
241 } 241 }
242 242
243 PassRefPtr<WebGLBuffer> WebGLGetInfo::getWebGLBuffer() const 243 PassRefPtr<WebGLBuffer> WebGLGetInfo::getWebGLBuffer() const
244 { 244 {
245 ASSERT(getType() == kTypeWebGLBuffer); 245 ASSERT(getType() == kTypeWebGLBuffer);
246 return m_webglBuffer; 246 return m_webglBuffer;
247 } 247 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 return m_webglUnsignedIntArray; 294 return m_webglUnsignedIntArray;
295 } 295 }
296 296
297 PassRefPtr<WebGLVertexArrayObjectOES> WebGLGetInfo::getWebGLVertexArrayObjectOES () const 297 PassRefPtr<WebGLVertexArrayObjectOES> WebGLGetInfo::getWebGLVertexArrayObjectOES () const
298 { 298 {
299 ASSERT(getType() == kTypeWebGLVertexArrayObjectOES); 299 ASSERT(getType() == kTypeWebGLVertexArrayObjectOES);
300 return m_webglVertexArrayObject; 300 return m_webglVertexArrayObject;
301 } 301 }
302 302
303 } // namespace WebCore 303 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLGetInfo.h ('k') | Source/core/html/parser/HTMLParserIdioms.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698