OLD | NEW |
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 // This file contains the GLES2Decoder class. | 5 // This file contains the GLES2Decoder class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 typedef base::Callback<bool(uint32 id)> WaitSyncPointCallback; | 61 typedef base::Callback<bool(uint32 id)> WaitSyncPointCallback; |
62 | 62 |
63 // The default stencil mask, which has all bits set. This really should be a | 63 // The default stencil mask, which has all bits set. This really should be a |
64 // GLuint, but we can't #include gl_bindings.h in this file without causing | 64 // GLuint, but we can't #include gl_bindings.h in this file without causing |
65 // macro redefinitions. | 65 // macro redefinitions. |
66 static const unsigned int kDefaultStencilMask; | 66 static const unsigned int kDefaultStencilMask; |
67 | 67 |
68 // Creates a decoder. | 68 // Creates a decoder. |
69 static GLES2Decoder* Create(ContextGroup* group); | 69 static GLES2Decoder* Create(ContextGroup* group); |
70 | 70 |
71 virtual ~GLES2Decoder(); | 71 ~GLES2Decoder() override; |
72 | 72 |
73 bool initialized() const { | 73 bool initialized() const { |
74 return initialized_; | 74 return initialized_; |
75 } | 75 } |
76 | 76 |
77 void set_initialized() { | 77 void set_initialized() { |
78 initialized_ = true; | 78 initialized_ = true; |
79 } | 79 } |
80 | 80 |
81 bool debug() const { | 81 bool debug() const { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 bool debug_; | 252 bool debug_; |
253 bool log_commands_; | 253 bool log_commands_; |
254 | 254 |
255 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 255 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
256 }; | 256 }; |
257 | 257 |
258 } // namespace gles2 | 258 } // namespace gles2 |
259 } // namespace gpu | 259 } // namespace gpu |
260 | 260 |
261 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 261 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |