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; |