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

Side by Side Diff: command_buffer/service/win/d3d9/texture_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 26 matching lines...) Expand all
37 // resource classes. 37 // resource classes.
38 #include <atlbase.h> 38 #include <atlbase.h>
39 39
40 #include "command_buffer/common/cross/gapi_interface.h" 40 #include "command_buffer/common/cross/gapi_interface.h"
41 #include "command_buffer/service/win/d3d9/d3d9_utils.h" 41 #include "command_buffer/service/win/d3d9/d3d9_utils.h"
42 #include "command_buffer/service/cross/resource.h" 42 #include "command_buffer/service/cross/resource.h"
43 #include "command_buffer/service/cross/texture_utils.h" 43 #include "command_buffer/service/cross/texture_utils.h"
44 44
45 namespace o3d { 45 namespace o3d {
46 namespace command_buffer { 46 namespace command_buffer {
47 namespace o3d {
47 48
48 class GAPID3D9; 49 class GAPID3D9;
49 50
50 // The base class for a D3D texture resource, providing access to the base D3D 51 // The base class for a D3D texture resource, providing access to the base D3D
51 // texture that can be assigned to an effect parameter or a sampler unit. 52 // texture that can be assigned to an effect parameter or a sampler unit.
52 class TextureD3D9 : public Texture { 53 class TextureD3D9 : public Texture {
53 public: 54 public:
54 TextureD3D9(texture::Type type, 55 TextureD3D9(texture::Type type,
55 unsigned int levels, 56 unsigned int levels,
56 texture::Format format, 57 texture::Format format,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 virtual IDirect3DBaseTexture9 *d3d_base_texture() const { 270 virtual IDirect3DBaseTexture9 *d3d_base_texture() const {
270 return d3d_texture_; 271 return d3d_texture_;
271 } 272 }
272 private: 273 private:
273 unsigned int side_; 274 unsigned int side_;
274 CComPtr<IDirect3DCubeTexture9> d3d_texture_; 275 CComPtr<IDirect3DCubeTexture9> d3d_texture_;
275 IDirect3DCubeTexture9 *d3d_shadow_; 276 IDirect3DCubeTexture9 *d3d_shadow_;
276 DISALLOW_COPY_AND_ASSIGN(TextureCubeD3D9); 277 DISALLOW_COPY_AND_ASSIGN(TextureCubeD3D9);
277 }; 278 };
278 279
280 } // namespace o3d
279 } // namespace command_buffer 281 } // namespace command_buffer
280 } // namespace o3d 282 } // namespace o3d
281 283
282 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_TEXTURE_D3D9_H_ 284 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_TEXTURE_D3D9_H_
OLDNEW
« no previous file with comments | « command_buffer/service/win/d3d9/states_d3d9.cc ('k') | command_buffer/service/win/d3d9/texture_d3d9.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698