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

Side by Side Diff: command_buffer/service/win/d3d9/sampler_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 24 matching lines...) Expand all
35 35
36 #ifndef O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ 36 #ifndef O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_
37 #define O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ 37 #define O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_
38 38
39 #include "command_buffer/common/cross/gapi_interface.h" 39 #include "command_buffer/common/cross/gapi_interface.h"
40 #include "command_buffer/service/win/d3d9/d3d9_utils.h" 40 #include "command_buffer/service/win/d3d9/d3d9_utils.h"
41 #include "command_buffer/service/cross/resource.h" 41 #include "command_buffer/service/cross/resource.h"
42 42
43 namespace o3d { 43 namespace o3d {
44 namespace command_buffer { 44 namespace command_buffer {
45 namespace o3d {
45 46
46 class GAPID3D9; 47 class GAPID3D9;
47 48
48 // D3D9 version of Sampler. 49 // D3D9 version of Sampler.
49 class SamplerD3D9 : public Sampler { 50 class SamplerD3D9 : public Sampler {
50 public: 51 public:
51 SamplerD3D9(); 52 SamplerD3D9();
52 53
53 // Applies sampler states to D3D. 54 // Applies sampler states to D3D.
54 bool ApplyStates(GAPID3D9 *gapi, unsigned int unit) const; 55 bool ApplyStates(GAPID3D9 *gapi, unsigned int unit) const;
(...skipping 17 matching lines...) Expand all
72 D3DTEXTUREADDRESS d3d_address_v_; 73 D3DTEXTUREADDRESS d3d_address_v_;
73 D3DTEXTUREADDRESS d3d_address_w_; 74 D3DTEXTUREADDRESS d3d_address_w_;
74 D3DTEXTUREFILTERTYPE d3d_mag_filter_; 75 D3DTEXTUREFILTERTYPE d3d_mag_filter_;
75 D3DTEXTUREFILTERTYPE d3d_min_filter_; 76 D3DTEXTUREFILTERTYPE d3d_min_filter_;
76 D3DTEXTUREFILTERTYPE d3d_mip_filter_; 77 D3DTEXTUREFILTERTYPE d3d_mip_filter_;
77 DWORD d3d_max_anisotropy_; 78 DWORD d3d_max_anisotropy_;
78 D3DCOLOR d3d_border_color_; 79 D3DCOLOR d3d_border_color_;
79 ResourceId texture_id_; 80 ResourceId texture_id_;
80 }; 81 };
81 82
83 } // namespace o3d
82 } // namespace command_buffer 84 } // namespace command_buffer
83 } // namespace o3d 85 } // namespace o3d
84 86
85 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_ 87 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_SAMPLER_D3D9_H_
OLDNEW
« no previous file with comments | « command_buffer/service/win/d3d9/render_surface_d3d9.cc ('k') | command_buffer/service/win/d3d9/sampler_d3d9.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698