Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |