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

Side by Side Diff: ui/surface/d3d9_utils_win.h

Issue 11280318: YUV conversion on the GPU. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "Yet more line endings." Created 7 years, 11 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
OLDNEW
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
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* surface);
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_
OLDNEW
« no previous file with comments | « ui/surface/accelerated_surface_transformer_win_unittest.cc ('k') | ui/surface/d3d9_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698