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

Unified Diff: gpu/config/gpu_info.h

Issue 95013004: Make consistent with Accelerated 2D Canvas flag on both implementation and chrome://gpu. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info.h
diff --git a/gpu/config/gpu_info.h b/gpu/config/gpu_info.h
index de7a280c16486639cee54fbb0ff512aa170b525a..09417f7777d7d0d8f69ace57cd942e0c4b004752 100644
--- a/gpu/config/gpu_info.h
+++ b/gpu/config/gpu_info.h
@@ -44,6 +44,10 @@ struct GPU_EXPORT GPUInfo {
GPUInfo();
~GPUInfo();
+ bool SupportsAccelerated2dCanvas() const {
Zhenyao Mo 2013/12/03 02:57:14 Does it violate coding style to define such a func
+ return !can_lose_context && !software_rendering;
+ }
+
// Whether more GPUInfo fields might be collected in the future.
bool finalized;
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698