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

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

Issue 332036: move all O3D specific command buffer stuff to command_buffer::o3d... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 2 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/gapi_d3d9.h ('k') | command_buffer/service/win/d3d9/geometry_d3d9.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: command_buffer/service/win/d3d9/gapi_d3d9.cc
===================================================================
--- command_buffer/service/win/d3d9/gapi_d3d9.cc (revision 30103)
+++ command_buffer/service/win/d3d9/gapi_d3d9.cc (working copy)
@@ -36,6 +36,7 @@
namespace o3d {
namespace command_buffer {
+namespace o3d {
GAPID3D9::GAPID3D9()
: d3d_module_(NULL),
@@ -309,19 +310,19 @@
// Converts a GAPID3D9::PrimitiveType to a D3DPRIMITIVETYPE.
static D3DPRIMITIVETYPE D3DPrimitive(
- command_buffer::PrimitiveType primitive_type) {
+ PrimitiveType primitive_type) {
switch (primitive_type) {
- case command_buffer::kPoints:
+ case kPoints:
return D3DPT_POINTLIST;
- case command_buffer::kLines:
+ case kLines:
return D3DPT_LINELIST;
- case command_buffer::kLineStrips:
+ case kLineStrips:
return D3DPT_LINESTRIP;
- case command_buffer::kTriangles:
+ case kTriangles:
return D3DPT_TRIANGLELIST;
- case command_buffer::kTriangleStrips:
+ case kTriangleStrips:
return D3DPT_TRIANGLESTRIP;
- case command_buffer::kTriangleFans:
+ case kTriangleFans:
return D3DPT_TRIANGLEFAN;
default:
LOG(FATAL) << "Invalid primitive type";
@@ -388,5 +389,6 @@
return parse_error::kParseNoError;
}
+} // namespace o3d
} // namespace command_buffer
} // namespace o3d
« no previous file with comments | « command_buffer/service/win/d3d9/gapi_d3d9.h ('k') | command_buffer/service/win/d3d9/geometry_d3d9.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698