| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |