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

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: uniform location should be GLint 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
« 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 18196663c9af2fa9cc0332bba312e3b5d54f2dde..ece7218532b5ee5c004ce56b3f18e22c6cfe76ad 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 depth_handle_;
- GLuint color_handle_;
+ GLuint vao_;
+ GLint depth_handle_;
+ GLint 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);
};
« 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