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

Side by Side Diff: core/cross/renderer.cc

Issue 6538102: Add support for runtime fall-back from o3d to o2d. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 9 years, 10 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 /* 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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 820
821 bool Renderer::SafeToBindTexture(Texture* texture) const { 821 bool Renderer::SafeToBindTexture(Texture* texture) const {
822 if (current_render_surface_ && 822 if (current_render_surface_ &&
823 current_render_surface_->texture() == texture) { 823 current_render_surface_->texture() == texture) {
824 return false; 824 return false;
825 } 825 }
826 826
827 return true; 827 return true;
828 } 828 }
829 829
830 // This is a factory function for creating 2D Renderer objects. It only
831 // functions in Cairo, in which case it is defined in the cairo platform
832 // specific code. This definition can be removed when all platforms
Tristan Schmelcher 2 2011/02/23 02:08:51 I don't think you even need this now. It is not an
833 // build with Cairo.
834 #if !defined(SUPPORT_CAIRO)
835 Renderer* Renderer::Create2DRenderer(ServiceLocator* service_locator) {
836 return NULL;
837 }
838 #endif
839
830 } // namespace o3d 840 } // namespace o3d
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698