OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Helper functions that Direct3D 9Ex code a little easier to work with for | 5 // Helper functions that Direct3D 9Ex code a little easier to work with for |
6 // the ui/surface code. | 6 // the ui/surface code. |
7 | 7 |
8 #ifndef UI_SURFACE_D3D9_UTILS_WIN_H_ | 8 #ifndef UI_SURFACE_D3D9_UTILS_WIN_H_ |
9 #define UI_SURFACE_D3D9_UTILS_WIN_H_ | 9 #define UI_SURFACE_D3D9_UTILS_WIN_H_ |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 // as well as the surface object for the texture's level 0 is returned (callers | 59 // as well as the surface object for the texture's level 0 is returned (callers |
60 // almost always need to use both). | 60 // almost always need to use both). |
61 // | 61 // |
62 // Returns true on success. | 62 // Returns true on success. |
63 SURFACE_EXPORT | 63 SURFACE_EXPORT |
64 bool CreateTemporaryRenderTargetTexture(IDirect3DDevice9* device, | 64 bool CreateTemporaryRenderTargetTexture(IDirect3DDevice9* device, |
65 const gfx::Size& size, | 65 const gfx::Size& size, |
66 IDirect3DTexture9** texture, | 66 IDirect3DTexture9** texture, |
67 IDirect3DSurface9** render_target); | 67 IDirect3DSurface9** render_target); |
68 | 68 |
69 SURFACE_EXPORT | |
70 gfx::Size GetSize(IDirect3DTexture9* texture); | |
71 | |
72 SURFACE_EXPORT | |
73 gfx::Size GetSize(IDirect3DSurface9* texture); | |
miu
2012/12/27 21:40:17
nit: Perhaps name the arg "surface" instead?
ncarter (slow)
2013/01/07 22:49:10
Done.
| |
74 | |
69 } // namespace ui_surface_d3d9_utils | 75 } // namespace ui_surface_d3d9_utils |
70 | 76 |
71 #endif // UI_SURFACE_D3D9_UTILS_WIN_H_ | 77 #endif // UI_SURFACE_D3D9_UTILS_WIN_H_ |
OLD | NEW |