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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/client/buffer_tracker.h ('k') | gpu/command_buffer/client/query_tracker.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
7 7
8 #include <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 GLuint bound_texture_2d; 321 GLuint bound_texture_2d;
322 322
323 // texture currently bound to this unit's GL_TEXTURE_CUBE_MAP with 323 // texture currently bound to this unit's GL_TEXTURE_CUBE_MAP with
324 // glBindTexture 324 // glBindTexture
325 GLuint bound_texture_cube_map; 325 GLuint bound_texture_cube_map;
326 }; 326 };
327 327
328 // Checks for single threaded access. 328 // Checks for single threaded access.
329 class SingleThreadChecker { 329 class SingleThreadChecker {
330 public: 330 public:
331 SingleThreadChecker(GLES2Implementation* gles2_implementation); 331 explicit SingleThreadChecker(GLES2Implementation* gles2_implementation);
332 ~SingleThreadChecker(); 332 ~SingleThreadChecker();
333 333
334 private: 334 private:
335 GLES2Implementation* gles2_implementation_; 335 GLES2Implementation* gles2_implementation_;
336 }; 336 };
337 337
338 // Gets the value of the result. 338 // Gets the value of the result.
339 template <typename T> 339 template <typename T>
340 T GetResultAs() { 340 T GetResultAs() {
341 return static_cast<T>(GetResultBuffer()); 341 return static_cast<T>(GetResultBuffer());
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 624
625 inline bool GLES2Implementation::GetTexParameterivHelper( 625 inline bool GLES2Implementation::GetTexParameterivHelper(
626 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 626 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
627 return false; 627 return false;
628 } 628 }
629 629
630 } // namespace gles2 630 } // namespace gles2
631 } // namespace gpu 631 } // namespace gpu
632 632
633 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 633 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/buffer_tracker.h ('k') | gpu/command_buffer/client/query_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698