OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "gpu/command_buffer/service/gl_utils.h" | 9 #include "gpu/command_buffer/service/gl_utils.h" |
10 #include "gpu/gpu_export.h" | 10 #include "gpu/gpu_export.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 private: | 37 private: |
38 void Initialize(const gles2::GLES2Decoder* decoder); | 38 void Initialize(const gles2::GLES2Decoder* decoder); |
39 void Destroy(); | 39 void Destroy(); |
40 | 40 |
41 // The attributes used during invocation of the extension. | 41 // The attributes used during invocation of the extension. |
42 static const GLuint kVertexPositionAttrib = 0; | 42 static const GLuint kVertexPositionAttrib = 0; |
43 | 43 |
44 bool initialized_; | 44 bool initialized_; |
45 GLuint program_; | 45 GLuint program_; |
| 46 GLuint vao_; |
46 GLuint depth_handle_; | 47 GLuint depth_handle_; |
47 GLuint color_handle_; | 48 GLuint color_handle_; |
48 GLuint buffer_id_; | 49 GLuint buffer_id_; |
49 | 50 |
50 DISALLOW_COPY_AND_ASSIGN(ClearFramebufferResourceManager); | 51 DISALLOW_COPY_AND_ASSIGN(ClearFramebufferResourceManager); |
51 }; | 52 }; |
52 | 53 |
53 } // namespace gpu. | 54 } // namespace gpu. |
54 | 55 |
55 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_ | 56 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_ |
OLD | NEW |