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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 12326146: Refactor/Rename a bunch of GPU stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index e046f4c9af47e3c5762b51a7cd3b8bad48cc0002..b6c354819ce5d556ff91f7b5273875c3cec83f7a 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -337,7 +337,7 @@ GLenum GLES2Implementation::GetClientSideGLError() {
GLenum GLES2Implementation::GetGLError() {
TRACE_EVENT0("gpu", "GLES2::GetGLError");
// Check the GL error first, then our wrapped error.
- typedef gles2::GetError::Result Result;
+ typedef cmds::GetError::Result Result;
Result* result = GetResultAs<Result*>();
// If we couldn't allocate a result the context is lost.
if (!result) {
@@ -522,7 +522,7 @@ GLboolean GLES2Implementation::IsEnabled(GLenum cap) {
<< GLES2Util::GetStringCapability(cap) << ")");
bool state = false;
if (!state_.GetEnabled(cap, &state)) {
- typedef IsEnabled::Result Result;
+ typedef cmds::IsEnabled::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return GL_FALSE;
@@ -657,7 +657,7 @@ bool GLES2Implementation::GetIntegervHelper(GLenum pname, GLint* params) {
GLuint GLES2Implementation::GetMaxValueInBufferCHROMIUMHelper(
GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) {
- typedef GetMaxValueInBufferCHROMIUM::Result Result;
+ typedef cmds::GetMaxValueInBufferCHROMIUM::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return 0;
@@ -905,7 +905,7 @@ void GLES2Implementation::GetVertexAttribPointerv(
GPU_CLIENT_LOG_CODE_BLOCK(int32 num_results = 1);
if (!vertex_array_object_manager_->GetAttribPointer(index, pname, ptr)) {
TRACE_EVENT0("gpu", "GLES2::GetVertexAttribPointerv");
- typedef gles2::GetVertexAttribPointerv::Result Result;
+ typedef cmds::GetVertexAttribPointerv::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return;
@@ -967,7 +967,7 @@ void GLES2Implementation::DeleteShaderStub(
GLint GLES2Implementation::GetAttribLocationHelper(
GLuint program, const char* name) {
- typedef GetAttribLocationBucket::Result Result;
+ typedef cmds::GetAttribLocationBucket::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return -1;
@@ -996,7 +996,7 @@ GLint GLES2Implementation::GetAttribLocation(
GLint GLES2Implementation::GetUniformLocationHelper(
GLuint program, const char* name) {
- typedef GetUniformLocationBucket::Result Result;
+ typedef cmds::GetUniformLocationBucket::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return -1;
@@ -1751,7 +1751,7 @@ bool GLES2Implementation::GetActiveAttribHelper(
GLenum* type, char* name) {
// Clear the bucket so if the command fails nothing will be in it.
helper_->SetBucketSize(kResultBucketId, 0);
- typedef gles2::GetActiveAttrib::Result Result;
+ typedef cmds::GetActiveAttrib::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return false;
@@ -1822,7 +1822,7 @@ bool GLES2Implementation::GetActiveUniformHelper(
GLenum* type, char* name) {
// Clear the bucket so if the command fails nothing will be in it.
helper_->SetBucketSize(kResultBucketId, 0);
- typedef gles2::GetActiveUniform::Result Result;
+ typedef cmds::GetActiveUniform::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return false;
@@ -1900,7 +1900,7 @@ void GLES2Implementation::GetAttachedShaders(
return;
}
TRACE_EVENT0("gpu", "GLES2::GetAttachedShaders");
- typedef gles2::GetAttachedShaders::Result Result;
+ typedef cmds::GetAttachedShaders::Result Result;
uint32 size = Result::ComputeSize(maxcount);
Result* result = static_cast<Result*>(transfer_buffer_->Alloc(size));
if (!result) {
@@ -1936,7 +1936,7 @@ void GLES2Implementation::GetShaderPrecisionFormat(
<< static_cast<const void*>(range) << ", "
<< static_cast<const void*>(precision) << ", ");
TRACE_EVENT0("gpu", "GLES2::GetShaderPrecisionFormat");
- typedef gles2::GetShaderPrecisionFormat::Result Result;
+ typedef cmds::GetShaderPrecisionFormat::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return;
@@ -2023,7 +2023,7 @@ void GLES2Implementation::GetUniformfv(
<< program << ", " << location << ", "
<< static_cast<const void*>(params) << ")");
TRACE_EVENT0("gpu", "GLES2::GetUniformfv");
- typedef gles2::GetUniformfv::Result Result;
+ typedef cmds::GetUniformfv::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return;
@@ -2048,7 +2048,7 @@ void GLES2Implementation::GetUniformiv(
<< program << ", " << location << ", "
<< static_cast<const void*>(params) << ")");
TRACE_EVENT0("gpu", "GLES2::GetUniformiv");
- typedef gles2::GetUniformiv::Result Result;
+ typedef cmds::GetUniformiv::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return;
@@ -2057,7 +2057,7 @@ void GLES2Implementation::GetUniformiv(
helper_->GetUniformiv(
program, location, GetResultShmId(), GetResultShmOffset());
WaitForCmd();
- GetResultAs<gles2::GetUniformfv::Result*>()->CopyResult(params);
+ GetResultAs<cmds::GetUniformfv::Result*>()->CopyResult(params);
GPU_CLIENT_LOG_CODE_BLOCK({
for (int32 i = 0; i < result->GetNumResults(); ++i) {
GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
@@ -2091,7 +2091,7 @@ void GLES2Implementation::ReadPixels(
// write those padding bytes but leave them as they are.
TRACE_EVENT0("gpu", "GLES2::ReadPixels");
- typedef gles2::ReadPixels::Result Result;
+ typedef cmds::ReadPixels::Result Result;
int8* dest = reinterpret_cast<int8*>(pixels);
uint32 temp_size;
@@ -2517,7 +2517,7 @@ void GLES2Implementation::GetVertexAttribfv(
return;
}
TRACE_EVENT0("gpu", "GLES2::GetVertexAttribfv");
- typedef GetVertexAttribfv::Result Result;
+ typedef cmds::GetVertexAttribfv::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return;
@@ -2548,7 +2548,7 @@ void GLES2Implementation::GetVertexAttribiv(
return;
}
TRACE_EVENT0("gpu", "GLES2::GetVertexAttribiv");
- typedef GetVertexAttribiv::Result Result;
+ typedef cmds::GetVertexAttribiv::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return;
@@ -2572,7 +2572,7 @@ GLboolean GLES2Implementation::EnableFeatureCHROMIUM(
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glEnableFeatureCHROMIUM("
<< feature << ")");
TRACE_EVENT0("gpu", "GLES2::EnableFeatureCHROMIUM");
- typedef EnableFeatureCHROMIUM::Result Result;
+ typedef cmds::EnableFeatureCHROMIUM::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return false;
@@ -2908,7 +2908,7 @@ GLuint GLES2Implementation::CreateStreamTextureCHROMIUM(GLuint texture) {
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] CreateStreamTextureCHROMIUM("
<< texture << ")");
TRACE_EVENT0("gpu", "GLES2::CreateStreamTextureCHROMIUM");
- typedef CreateStreamTextureCHROMIUM::Result Result;
+ typedef cmds::CreateStreamTextureCHROMIUM::Result Result;
Result* result = GetResultAs<Result*>();
if (!result) {
return GL_ZERO;
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_impl_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698