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

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

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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 private: 141 private:
142 int index_; 142 int index_;
143 }; 143 };
144 144
145 virtual ~Renderer(); 145 virtual ~Renderer();
146 146
147 // Creates a 'default' renderer, choosing the correct implementation type. 147 // Creates a 'default' renderer, choosing the correct implementation type.
148 static Renderer* CreateDefaultRenderer(ServiceLocator* service_locator); 148 static Renderer* CreateDefaultRenderer(ServiceLocator* service_locator);
149 149
150 // Creates a 2D renderer. This can be used instead of CreateDefaultRenderer
151 // when 3D is not supported by the underlying system, and is not strictly
152 // needed by the application.
153 static Renderer* Create2DRenderer(ServiceLocator* service_locator);
154
155
150 // Gets whether or not the renderer should attempt to use the software 156 // Gets whether or not the renderer should attempt to use the software
151 // renderer. 157 // renderer.
152 static bool IsForceSoftwareRenderer(); 158 static bool IsForceSoftwareRenderer();
153 159
154 // Initialises the renderer for use, claiming hardware resources. 160 // Initialises the renderer for use, claiming hardware resources.
155 InitStatus Init(const DisplayWindow& display, bool off_screen); 161 InitStatus Init(const DisplayWindow& display, bool off_screen);
156 162
157 // The platform specific part of initalization. 163 // The platform specific part of initalization.
158 virtual InitStatus InitPlatformSpecific(const DisplayWindow& display, 164 virtual InitStatus InitPlatformSpecific(const DisplayWindow& display,
159 bool off_screen) = 0; 165 bool off_screen) = 0;
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 777
772 // Maximum frames per second. 778 // Maximum frames per second.
773 int max_fps_; 779 int max_fps_;
774 780
775 DISALLOW_COPY_AND_ASSIGN(Renderer); 781 DISALLOW_COPY_AND_ASSIGN(Renderer);
776 }; 782 };
777 783
778 } // namespace o3d 784 } // namespace o3d
779 785
780 #endif // O3D_CORE_CROSS_RENDERER_H_ 786 #endif // O3D_CORE_CROSS_RENDERER_H_
OLDNEW
« no previous file with comments | « core/cross/gl/renderer_gl.cc ('k') | plugin/cross/o3d_glue.cc » ('j') | plugin/cross/o3d_glue.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698