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

Side by Side Diff: core/cross/renderer.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/image_utils_test.cc ('k') | core/win/d3d9/renderer_d3d9.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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // SetLostResourcesCallback a second time or if you call 357 // SetLostResourcesCallback a second time or if you call
358 // ClearLostResourcesCallback. 358 // ClearLostResourcesCallback.
359 void ClearLostResourcesCallback(); 359 void ClearLostResourcesCallback();
360 360
361 // Creates and returns a platform-specific RenderDepthStencilSurface object 361 // Creates and returns a platform-specific RenderDepthStencilSurface object
362 // for use as a depth-stencil render target. 362 // for use as a depth-stencil render target.
363 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface( 363 virtual RenderDepthStencilSurface::Ref CreateDepthStencilSurface(
364 int width, 364 int width,
365 int height) = 0; 365 int height) = 0;
366 366
367 // Saves a png screenshot. 367 // Returns the screen as a Bitmap. Will return a null reference on error.
368 // Returns true on success and false on failure. 368 virtual Bitmap::Ref TakeScreenshot() = 0;
369 virtual bool SaveScreen(const String& file_name) = 0;
370 369
371 ServiceLocator* service_locator() const { return service_locator_; } 370 ServiceLocator* service_locator() const { return service_locator_; }
372 371
373 // Returns the type of Param needed for a particular state. 372 // Returns the type of Param needed for a particular state.
374 const ObjectBase::Class* GetStateParamType(const String& state_name) const; 373 const ObjectBase::Class* GetStateParamType(const String& state_name) const;
375 374
376 // Get the client area's width. 375 // Get the client area's width.
377 int width() const { 376 int width() const {
378 return width_; 377 return width_;
379 } 378 }
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 643
645 // Removes the default states from their respective stacks. 644 // Removes the default states from their respective stacks.
646 void RemoveDefaultStates(); 645 void RemoveDefaultStates();
647 646
648 DISALLOW_COPY_AND_ASSIGN(Renderer); 647 DISALLOW_COPY_AND_ASSIGN(Renderer);
649 }; 648 };
650 649
651 } // namespace o3d 650 } // namespace o3d
652 651
653 #endif // O3D_CORE_CROSS_RENDERER_H_ 652 #endif // O3D_CORE_CROSS_RENDERER_H_
OLDNEW
« no previous file with comments | « core/cross/image_utils_test.cc ('k') | core/win/d3d9/renderer_d3d9.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698