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

Unified 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: Address comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h
diff --git a/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h b/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h
index 750b0d687b27bedc0ed8364f20a7ddce90ed819a..2095d80dfb5ec4df708e67ccc0411114980d82a5 100644
--- a/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h
+++ b/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h
@@ -6,6 +6,7 @@
#define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_
#include "base/macros.h"
+#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/service/gl_utils.h"
#include "gpu/gpu_export.h"
@@ -20,7 +21,9 @@ class GLES2Decoder;
class GPU_EXPORT ClearFramebufferResourceManager {
public:
- ClearFramebufferResourceManager(const gles2::GLES2Decoder* decoder);
+ ClearFramebufferResourceManager(
+ const gles2::GLES2Decoder* decoder,
+ const gles2::FeatureInfo::FeatureFlags& feature_flags);
~ClearFramebufferResourceManager();
@@ -35,7 +38,8 @@ class GPU_EXPORT ClearFramebufferResourceManager {
GLint clear_stencil_value);
private:
- void Initialize(const gles2::GLES2Decoder* decoder);
+ void Initialize(const gles2::GLES2Decoder* decoder,
+ const gles2::FeatureInfo::FeatureFlags& feature_flags);
void Destroy();
// The attributes used during invocation of the extension.
@@ -43,6 +47,7 @@ class GPU_EXPORT ClearFramebufferResourceManager {
bool initialized_;
GLuint program_;
+ GLuint vao_;
GLuint depth_handle_;
GLuint color_handle_;
GLuint buffer_id_;
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698