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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h

Issue 2080943002: gpu: Use a VAO as required by the core profile in ClearFramebuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698