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

Side by Side Diff: command_buffer/service/win/d3d9/render_surface_d3d9.h

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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 27 matching lines...) Expand all
38 38
39 #include <d3d9.h> 39 #include <d3d9.h>
40 #include "base/scoped_ptr.h" 40 #include "base/scoped_ptr.h"
41 #include "command_buffer/common/cross/gapi_interface.h" 41 #include "command_buffer/common/cross/gapi_interface.h"
42 #include "command_buffer/service/cross/resource.h" 42 #include "command_buffer/service/cross/resource.h"
43 #include "command_buffer/service/win/d3d9/d3d9_utils.h" 43 #include "command_buffer/service/win/d3d9/d3d9_utils.h"
44 #include "command_buffer/service/win/d3d9/texture_d3d9.h" 44 #include "command_buffer/service/win/d3d9/texture_d3d9.h"
45 45
46 namespace o3d { 46 namespace o3d {
47 namespace command_buffer { 47 namespace command_buffer {
48 namespace o3d {
48 49
49 class GAPID3D9; 50 class GAPID3D9;
50 51
51 // The RenderSurfaceD3D class represents a render surface resource in the d3d 52 // The RenderSurfaceD3D class represents a render surface resource in the d3d
52 // backend of the command buffer server. 53 // backend of the command buffer server.
53 class RenderSurfaceD3D9 : public RenderSurface { 54 class RenderSurfaceD3D9 : public RenderSurface {
54 public: 55 public:
55 56
56 // Creates a render surface resource based on D3D. 57 // Creates a render surface resource based on D3D.
57 // Parameters: 58 // Parameters:
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 IDirect3DSurface9* direct3d_surface() const { 148 IDirect3DSurface9* direct3d_surface() const {
148 return direct3d_surface_; 149 return direct3d_surface_;
149 } 150 }
150 private: 151 private:
151 CComPtr<IDirect3DSurface9> direct3d_surface_; 152 CComPtr<IDirect3DSurface9> direct3d_surface_;
152 int width_; 153 int width_;
153 int height_; 154 int height_;
154 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceD3D9); 155 DISALLOW_COPY_AND_ASSIGN(RenderDepthStencilSurfaceD3D9);
155 }; 156 };
156 157
158 } // namespace o3d
157 } // namespace command_buffer 159 } // namespace command_buffer
158 } // namespace o3d 160 } // namespace o3d
159 161
160 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_RENDER_SURFACE_D3D9_H_ 162 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_RENDER_SURFACE_D3D9_H_
161 163
OLDNEW
« no previous file with comments | « command_buffer/service/win/d3d9/geometry_d3d9.cc ('k') | command_buffer/service/win/d3d9/render_surface_d3d9.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698