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

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

Issue 164130: This CL adds client.toDataURL which gets the contents... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 4 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/cross/renderer.h ('k') | core/win/d3d9/renderer_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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 // Creates and returns a D3D9 specific Sampler object. 150 // Creates and returns a D3D9 specific Sampler object.
151 virtual Sampler::Ref CreateSampler(); 151 virtual Sampler::Ref CreateSampler();
152 152
153 // Creates and returns a platform-specific RenderDepthStencilSurface object 153 // Creates and returns a platform-specific RenderDepthStencilSurface object
154 // for use as a depth-stencil render target. 154 // for use as a depth-stencil render target.
155 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface( 155 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface(
156 int width, 156 int width,
157 int height); 157 int height);
158 158
159 // Saves a png screenshot 'file_name.png'. 159 // Overridden from Renderer.
160 // Returns true on success and false on failure. 160 virtual Bitmap::Ref TakeScreenshot();
161 virtual bool SaveScreen(const String& file_name);
162 161
163 inline LPDIRECT3DDEVICE9 d3d_device() const { return d3d_device_; } 162 inline LPDIRECT3DDEVICE9 d3d_device() const { return d3d_device_; }
164 inline LPDIRECT3D9 d3d() const { return d3d_; } 163 inline LPDIRECT3D9 d3d() const { return d3d_; }
165 164
166 inline DWORD supported_depth_format() const { 165 inline DWORD supported_depth_format() const {
167 return supported_depth_format_; 166 return supported_depth_format_;
168 } 167 }
169 168
170 // Overridden from Renderer. 169 // Overridden from Renderer.
171 virtual const int* GetRGBAUByteNSwizzleTable(); 170 virtual const int* GetRGBAUByteNSwizzleTable();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 271
273 // The font to use to display the message when we go to fullscreen. 272 // The font to use to display the message when we go to fullscreen.
274 CComPtr<ID3DXFont> fullscreen_message_font_; 273 CComPtr<ID3DXFont> fullscreen_message_font_;
275 // The line used to draw the background for the message. 274 // The line used to draw the background for the message.
276 CComPtr<ID3DXLine> fullscreen_message_line_; 275 CComPtr<ID3DXLine> fullscreen_message_line_;
277 }; 276 };
278 277
279 } // namespace o3d 278 } // namespace o3d
280 279
281 #endif // O3D_CORE_WIN_D3D9_RENDERER_D3D9_H_ 280 #endif // O3D_CORE_WIN_D3D9_RENDERER_D3D9_H_
OLDNEW
« no previous file with comments | « core/cross/renderer.h ('k') | core/win/d3d9/renderer_d3d9.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698