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

Unified Diff: core/cross/client_info.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 side-by-side diff with in-line comments
Download patch
Index: core/cross/client_info.h
===================================================================
--- core/cross/client_info.h (revision 75614)
+++ core/cross/client_info.h (working copy)
@@ -77,16 +77,7 @@
// Whether render in 2d Mode
bool render_2d() const {
-#if defined(SUPPORT_CAIRO) && defined(FORCE_CAIRO)
- // Force Cairo o2d mode for testing purposes
- return true;
-#elif defined(SUPPORT_CAIRO)
- // Some day when we have fallback from o3d to o2d,
- // this will have to support logic returning actual o2d vs. o3d mode.
- return false;
-#else
- return false;
-#endif
+ return render_2d_;
}
// Whether or not the underlying GPU supports non power of 2 textures.
@@ -113,6 +104,7 @@
int buffer_memory_used_;
bool software_renderer_;
bool non_power_of_two_textures_;
+ bool render_2d_;
String version_;
};
@@ -145,6 +137,10 @@
client_info_.non_power_of_two_textures_ = npot;
}
+ void SetRenderer2d(bool render2d) {
Tristan Schmelcher 2 2011/02/23 02:08:51 This should be SetRender2d to match the property n
+ client_info_.render_2d_ = render2d;
+ }
+
private:
ServiceImplementation<ClientInfoManager> service_;

Powered by Google App Engine
This is Rietveld 408576698