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

Side by Side Diff: core/cross/command_buffer/renderer_cb.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/client.cc ('k') | core/cross/command_buffer/renderer_cb.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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Creates and returns a platform specific Sampler object. 134 // Creates and returns a platform specific Sampler object.
135 virtual Sampler::Ref CreateSampler(); 135 virtual Sampler::Ref CreateSampler();
136 136
137 // TODO: Fill this in 137 // TODO: Fill this in
138 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface( 138 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface(
139 int width, 139 int width,
140 int height) { 140 int height) {
141 return RenderDepthStencilSurface::Ref(); 141 return RenderDepthStencilSurface::Ref();
142 } 142 }
143 143
144 // Saves a png screenshot. 144 // Overridden from Renderer.
145 // Returns true on success and false on failure. 145 virtual Bitmap::Ref TakeScreenshot();
146 virtual bool SaveScreen(const String& file_name);
147 146
148 // Gets the allocator for vertex buffer IDs. 147 // Gets the allocator for vertex buffer IDs.
149 IdAllocator &vertex_buffer_ids() { return vertex_buffer_ids_; } 148 IdAllocator &vertex_buffer_ids() { return vertex_buffer_ids_; }
150 149
151 // Gets the allocator for index buffer IDs. 150 // Gets the allocator for index buffer IDs.
152 IdAllocator &index_buffer_ids() { return index_buffer_ids_; } 151 IdAllocator &index_buffer_ids() { return index_buffer_ids_; }
153 152
154 // Gets the allocator for vertex struct IDs. 153 // Gets the allocator for vertex struct IDs.
155 IdAllocator &vertex_structs_ids() { return vertex_structs_ids_; } 154 IdAllocator &vertex_structs_ids() { return vertex_structs_ids_; }
156 155
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 257
259 class StateManager; 258 class StateManager;
260 scoped_ptr<StateManager> state_manager_; 259 scoped_ptr<StateManager> state_manager_;
261 260
262 DISALLOW_COPY_AND_ASSIGN(RendererCB); 261 DISALLOW_COPY_AND_ASSIGN(RendererCB);
263 }; 262 };
264 263
265 } // namespace o3d 264 } // namespace o3d
266 265
267 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_RENDERER_CB_H_ 266 #endif // O3D_CORE_CROSS_COMMAND_BUFFER_RENDERER_CB_H_
OLDNEW
« no previous file with comments | « core/cross/client.cc ('k') | core/cross/command_buffer/renderer_cb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698