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

Unified Diff: gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h

Issue 2764833003: Make gl_clear_broken workaround support core profile and use it under AMD Linux Catalyst driver (Closed)
Patch Set: fix compile error Created 3 years, 9 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
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 18196663c9af2fa9cc0332bba312e3b5d54f2dde..cf4571d77f7a867d1da057af436653aacba1727e 100644
--- a/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h
+++ b/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.h
@@ -5,6 +5,9 @@
#ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_
#define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_CLEAR_FRAMEBUFFER_H_
+#include <string>
+
+#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "gpu/command_buffer/service/gl_utils.h"
#include "gpu/gpu_export.h"
@@ -19,7 +22,8 @@ class GLES2Decoder;
class GPU_EXPORT ClearFramebufferResourceManager {
public:
- ClearFramebufferResourceManager(const gles2::GLES2Decoder* decoder);
+ ClearFramebufferResourceManager(const gles2::GLES2Decoder* decoder,
+ const gl::GLVersionInfo& gl_version_info);
~ClearFramebufferResourceManager();
@@ -35,16 +39,22 @@ class GPU_EXPORT ClearFramebufferResourceManager {
private:
void Initialize(const gles2::GLES2Decoder* decoder);
+ void InitShader(const gles2::GLES2Decoder* decoder, GLenum type);
void Destroy();
// The attributes used during invocation of the extension.
static const GLuint kVertexPositionAttrib = 0;
bool initialized_;
+ bool is_desktop_core_profile_;
GLuint program_;
+ GLuint vao_;
GLuint depth_handle_;
GLuint color_handle_;
GLuint buffer_id_;
+ base::hash_map<std::string, std::string> name_map_;
+ std::string vertex_shader_source_;
+ std::string fragment_shader_source_;
DISALLOW_COPY_AND_ASSIGN(ClearFramebufferResourceManager);
};

Powered by Google App Engine
This is Rietveld 408576698