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

Side by Side Diff: o3d/command_buffer/service/win/d3d9/gapi_d3d9.h

Issue 234001: GPUProcessor uses O3D command buffer service to render to a window.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « o3d/command_buffer/service/cross/gapi_decoder.h ('k') | o3d/gpu_plugin/command_buffer.h » ('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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 namespace o3d { 47 namespace o3d {
48 namespace command_buffer { 48 namespace command_buffer {
49 49
50 // This class implements the GAPI interface for D3D9. 50 // This class implements the GAPI interface for D3D9.
51 class GAPID3D9 : public GAPIInterface { 51 class GAPID3D9 : public GAPIInterface {
52 public: 52 public:
53 GAPID3D9(); 53 GAPID3D9();
54 virtual ~GAPID3D9(); 54 virtual ~GAPID3D9();
55 55
56 void set_hwnd(HWND hwnd) { hwnd_ = hwnd; } 56 void set_hwnd(HWND hwnd) { hwnd_ = hwnd; }
57 HWND hwnd() const { return hwnd_; }
57 58
58 // Initializes the graphics context, bound to a window. 59 // Initializes the graphics context, bound to a window.
59 // Returns: 60 // Returns:
60 // true if successful. 61 // true if successful.
61 virtual bool Initialize(); 62 virtual bool Initialize();
62 63
63 // Destroys the graphics context. 64 // Destroys the graphics context.
64 virtual void Destroy(); 65 virtual void Destroy();
65 66
66 // Implements the BeginFrame function for D3D9. 67 // Implements the BeginFrame function for D3D9.
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 ResourceMap<SamplerD3D9> samplers_; 424 ResourceMap<SamplerD3D9> samplers_;
424 ResourceMap<RenderSurfaceD3D9> render_surfaces_; 425 ResourceMap<RenderSurfaceD3D9> render_surfaces_;
425 ResourceMap<RenderDepthStencilSurfaceD3D9> depth_surfaces_; 426 ResourceMap<RenderDepthStencilSurfaceD3D9> depth_surfaces_;
426 }; 427 };
427 428
428 } // namespace command_buffer 429 } // namespace command_buffer
429 } // namespace o3d 430 } // namespace o3d
430 431
431 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_GAPI_D3D9_H_ 432 #endif // O3D_COMMAND_BUFFER_SERVICE_WIN_D3D9_GAPI_D3D9_H_
432 433
OLDNEW
« no previous file with comments | « o3d/command_buffer/service/cross/gapi_decoder.h ('k') | o3d/gpu_plugin/command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698