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

Side by Side Diff: core/win/d3d9/texture_d3d9.h

Issue 150058: expose bitmap in js. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/win/d3d9/renderer_d3d9.cc ('k') | core/win/d3d9/texture_d3d9.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool enable_render_surfaces); 103 bool enable_render_surfaces);
104 104
105 // Updates a mip level, sending it from the backing bitmap to Direct3D, 105 // Updates a mip level, sending it from the backing bitmap to Direct3D,
106 // rescaling it if resize_to_pot_ is set. 106 // rescaling it if resize_to_pot_ is set.
107 bool UpdateBackedMipLevel(unsigned int level); 107 bool UpdateBackedMipLevel(unsigned int level);
108 108
109 // A pointer to the Direct3D 2D texture object containing this texture. 109 // A pointer to the Direct3D 2D texture object containing this texture.
110 CComPtr<IDirect3DTexture9> d3d_texture_; 110 CComPtr<IDirect3DTexture9> d3d_texture_;
111 111
112 // A bitmap used to back the NPOT textures on POT-only hardware. 112 // A bitmap used to back the NPOT textures on POT-only hardware.
113 Bitmap backing_bitmap_; 113 Bitmap::Ref backing_bitmap_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(Texture2DD3D9); 115 DISALLOW_COPY_AND_ASSIGN(Texture2DD3D9);
116 }; 116 };
117 117
118 // TextureCUBED3D9 implements the TextureCUBE interface with DX9. 118 // TextureCUBED3D9 implements the TextureCUBE interface with DX9.
119 class TextureCUBED3D9 : public TextureCUBE { 119 class TextureCUBED3D9 : public TextureCUBE {
120 public: 120 public:
121 typedef SmartPointer<TextureCUBED3D9> Ref; 121 typedef SmartPointer<TextureCUBED3D9> Ref;
122 122
123 // Creates a new TextureCUBED3D9 with the given specs. If the D3D9 texture 123 // Creates a new TextureCUBED3D9 with the given specs. If the D3D9 texture
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 bool enable_render_surfaces); 171 bool enable_render_surfaces);
172 172
173 // Updates a mip level, sending it from the backing bitmap to Direct3D, 173 // Updates a mip level, sending it from the backing bitmap to Direct3D,
174 // rescaling it if resize_to_pot_ is set. 174 // rescaling it if resize_to_pot_ is set.
175 bool UpdateBackedMipLevel(unsigned int level, CubeFace face); 175 bool UpdateBackedMipLevel(unsigned int level, CubeFace face);
176 176
177 // A pointer to the Direct3D cube texture object containing this texture. 177 // A pointer to the Direct3D cube texture object containing this texture.
178 CComPtr<IDirect3DCubeTexture9> d3d_cube_texture_; 178 CComPtr<IDirect3DCubeTexture9> d3d_cube_texture_;
179 179
180 // A bitmap used to back the NPOT textures on POT-only hardware. 180 // A bitmap used to back the NPOT textures on POT-only hardware.
181 Bitmap backing_bitmap_; 181 Bitmap::Ref backing_bitmap_;
182 182
183 DISALLOW_COPY_AND_ASSIGN(TextureCUBED3D9); 183 DISALLOW_COPY_AND_ASSIGN(TextureCUBED3D9);
184 }; 184 };
185 185
186 } // namespace o3d 186 } // namespace o3d
187 187
188 #endif // O3D_CORE_WIN_D3D9_TEXTURE_D3D9_H__ 188 #endif // O3D_CORE_WIN_D3D9_TEXTURE_D3D9_H__
OLDNEW
« no previous file with comments | « core/win/d3d9/renderer_d3d9.cc ('k') | core/win/d3d9/texture_d3d9.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698