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

Unified Diff: command_buffer/service/win/d3d9/texture_d3d9.cc

Issue 212018: Change command buffer client code to use structures.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 3 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 | « command_buffer/service/win/d3d9/sampler_d3d9.cc ('k') | core/cross/command_buffer/buffer_cb.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: command_buffer/service/win/d3d9/texture_d3d9.cc
===================================================================
--- command_buffer/service/win/d3d9/texture_d3d9.cc (revision 26638)
+++ command_buffer/service/win/d3d9/texture_d3d9.cc (working copy)
@@ -612,8 +612,8 @@
// Dirty effect, because this texture id may be used
DirtyEffect();
return textures_.Destroy(id) ?
- BufferSyncInterface::PARSE_NO_ERROR :
- BufferSyncInterface::PARSE_INVALID_ARGUMENTS;
+ BufferSyncInterface::kParseNoError :
+ BufferSyncInterface::kParseInvalidArguments;
}
// Creates a 2D texture resource.
@@ -628,11 +628,11 @@
Texture2DD3D9 *texture = Texture2DD3D9::Create(this, width, height, levels,
format, flags,
enable_render_surfaces);
- if (!texture) return BufferSyncInterface::PARSE_INVALID_ARGUMENTS;
+ if (!texture) return BufferSyncInterface::kParseInvalidArguments;
// Dirty effect, because this texture id may be used
DirtyEffect();
textures_.Assign(id, texture);
- return BufferSyncInterface::PARSE_NO_ERROR;
+ return BufferSyncInterface::kParseNoError;
}
// Creates a 3D texture resource.
@@ -648,11 +648,11 @@
Texture3DD3D9 *texture = Texture3DD3D9::Create(this, width, height, depth,
levels, format, flags,
enable_render_surfaces);
- if (!texture) return BufferSyncInterface::PARSE_INVALID_ARGUMENTS;
+ if (!texture) return BufferSyncInterface::kParseInvalidArguments;
// Dirty effect, because this texture id may be used
DirtyEffect();
textures_.Assign(id, texture);
- return BufferSyncInterface::PARSE_NO_ERROR;
+ return BufferSyncInterface::kParseNoError;
}
// Creates a cube map texture resource.
@@ -666,11 +666,11 @@
TextureCubeD3D9 *texture = TextureCubeD3D9::Create(this, side, levels,
format, flags,
enable_render_surfaces);
- if (!texture) return BufferSyncInterface::PARSE_INVALID_ARGUMENTS;
+ if (!texture) return BufferSyncInterface::kParseInvalidArguments;
// Dirty effect, because this texture id may be used
DirtyEffect();
textures_.Assign(id, texture);
- return BufferSyncInterface::PARSE_NO_ERROR;
+ return BufferSyncInterface::kParseNoError;
}
// Copies the data into a texture resource.
@@ -690,12 +690,12 @@
const void *data) {
TextureD3D9 *texture = textures_.Get(id);
if (!texture)
- return BufferSyncInterface::PARSE_INVALID_ARGUMENTS;
+ return BufferSyncInterface::kParseInvalidArguments;
Volume volume = {x, y, z, width, height, depth};
return texture->SetData(this, volume, level, face, row_pitch, slice_pitch,
size, data) ?
- BufferSyncInterface::PARSE_NO_ERROR :
- BufferSyncInterface::PARSE_INVALID_ARGUMENTS;
+ BufferSyncInterface::kParseNoError :
+ BufferSyncInterface::kParseInvalidArguments;
}
// Copies the data from a texture resource.
@@ -715,12 +715,12 @@
void *data) {
TextureD3D9 *texture = textures_.Get(id);
if (!texture)
- return BufferSyncInterface::PARSE_INVALID_ARGUMENTS;
+ return BufferSyncInterface::kParseInvalidArguments;
Volume volume = {x, y, z, width, height, depth};
return texture->GetData(this, volume, level, face, row_pitch, slice_pitch,
size, data) ?
- BufferSyncInterface::PARSE_NO_ERROR :
- BufferSyncInterface::PARSE_INVALID_ARGUMENTS;
+ BufferSyncInterface::kParseNoError :
+ BufferSyncInterface::kParseInvalidArguments;
}
} // namespace command_buffer
« no previous file with comments | « command_buffer/service/win/d3d9/sampler_d3d9.cc ('k') | core/cross/command_buffer/buffer_cb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698