Bug 908449 - Implement GfxInfo::GetFeatureStatusImpl for gonk. r=bjacob
authorBenoit Girard <b56girard@gmail.com>
Tue, 27 Aug 2013 19:26:46 -0400
changeset 144609 af537722afd4b1f1dab87f03ce304b7a4de80d91
parent 144608 b401ae426727747dcd753460e2d9d3b80e7a0d14
child 144610 aaf17ea43b592e46a951d6bcfcb6461e0a7c7c66
push id25168
push useremorley@mozilla.com
push dateWed, 28 Aug 2013 11:21:34 +0000
treeherdermozilla-central@6afb1f453688 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs908449
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 908449 - Implement GfxInfo::GetFeatureStatusImpl for gonk. r=bjacob
widget/gonk/GfxInfo.cpp
widget/gonk/GfxInfo.h
--- a/widget/gonk/GfxInfo.cpp
+++ b/widget/gonk/GfxInfo.cpp
@@ -153,16 +153,29 @@ GfxInfo::GetGfxDriverInfo()
   return *mDriverInfo;
 }
 
 uint32_t GfxInfo::OperatingSystemVersion() const
 {
   return 0;
 }
 
+nsresult
+GfxInfo::GetFeatureStatusImpl(int32_t /*aFeature*/, 
+                              int32_t *aStatus, 
+                              nsAString & /*aSuggestedDriverVersion*/,
+                              const nsTArray<GfxDriverInfo>& /*aDriverInfo*/, 
+                              OperatingSystem* /*aOS*/ /* = nullptr */)
+{
+  NS_ENSURE_ARG_POINTER(aStatus);
+  *aStatus = nsIGfxInfo::FEATURE_NO_INFO;
+
+  return NS_OK;
+}
+
 #ifdef DEBUG
 
 // Implement nsIGfxInfoDebug
 
 /* void spoofVendorID (in DOMString aVendorID); */
 NS_IMETHODIMP GfxInfo::SpoofVendorID(const nsAString &)
 {
   return NS_OK;
@@ -181,9 +194,9 @@ NS_IMETHODIMP GfxInfo::SpoofDriverVersio
 }
 
 /* void spoofOSVersion (in unsigned long aVersion); */
 NS_IMETHODIMP GfxInfo::SpoofOSVersion(uint32_t)
 {
   return NS_OK;
 }
 
-#endif
\ No newline at end of file
+#endif
--- a/widget/gonk/GfxInfo.h
+++ b/widget/gonk/GfxInfo.h
@@ -47,15 +47,20 @@ public:
   virtual uint32_t OperatingSystemVersion() const;
 
 #ifdef DEBUG
   NS_DECL_NSIGFXINFODEBUG
 #endif
 
 protected:
 
+  virtual nsresult GetFeatureStatusImpl(int32_t aFeature,
+                                        int32_t *aStatus,
+                                        nsAString & aSuggestedDriverVersion,
+                                        const nsTArray<GfxDriverInfo>& aDriverInfo,
+                                        OperatingSystem* aOS = nullptr);
   virtual const nsTArray<GfxDriverInfo>& GetGfxDriverInfo();
 };
 
 } // namespace widget
 } // namespace mozilla
 
 #endif /* __mozilla_widget_GfxInfo_h__ */