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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

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 | « gpu/command_buffer/service/gles2_cmd_decoder.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 6934e8bc58baacbe074b94a54cc01b6e8f939737..54b6fbe1f08c1fbec22eebf48fefcdea38f25c02 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -591,7 +591,8 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
ErrorState* GetErrorState() override;
const ContextState* GetContextState() override { return &state_; }
- scoped_refptr<ShaderTranslatorInterface> GetTranslator(GLenum type) override;
+ scoped_refptr<ShaderTranslatorInterface> GetTranslator(
+ GLenum type) const override;
void SetShaderCacheCallback(const ShaderCacheCallback& callback) override;
void SetFenceSyncReleaseCallback(
@@ -3609,7 +3610,8 @@ bool GLES2DecoderImpl::Initialize(
if (workarounds().gl_clear_broken) {
DCHECK(!clear_framebuffer_blit_.get());
LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit");
- clear_framebuffer_blit_.reset(new ClearFramebufferResourceManager(this));
+ clear_framebuffer_blit_.reset(
+ new ClearFramebufferResourceManager(this, gl_version_info()));
if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR)
return false;
}
@@ -10452,7 +10454,7 @@ void GLES2DecoderImpl::DoTransformFeedbackVaryings(
}
scoped_refptr<ShaderTranslatorInterface> GLES2DecoderImpl::GetTranslator(
- GLenum type) {
+ GLenum type) const {
return type == GL_VERTEX_SHADER ? vertex_translator_ : fragment_translator_;
}
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698