Bug 869936 - Add GetPreferredCompositorBackend to MetroWidget. r=bbondy
authorJim Mathies <jmathies@mozilla.com>
Wed, 08 May 2013 09:57:29 -0500
changeset 131256 2d98636bc27bb9b5d7a06543279e6327ef31b891
parent 131255 c0057a14ffc56f828593bf0ad224f35f601c4450
child 131257 5566cebc8766b41174d7827361e34950ba717d4e
child 131293 0d180d194b57e12331c5726975346d659acdf276
push id27756
push userjmathies@mozilla.com
push dateWed, 08 May 2013 14:57:56 +0000
treeherdermozilla-inbound@2d98636bc27b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbondy
bugs869936
milestone23.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 869936 - Add GetPreferredCompositorBackend to MetroWidget. r=bbondy
widget/windows/winrt/MetroWidget.h
--- a/widget/windows/winrt/MetroWidget.h
+++ b/widget/windows/winrt/MetroWidget.h
@@ -118,16 +118,17 @@ public:
   // ShouldUseOffMainThreadCompositing is defined in base widget
   virtual bool  ShouldUseOffMainThreadCompositing();
   bool          ShouldUseMainThreadD3D10Manager();
   bool          ShouldUseBasicManager();
   virtual LayerManager* GetLayerManager(PLayerTransactionChild* aShadowManager = nullptr,
                                         LayersBackend aBackendHint = mozilla::layers::LAYERS_NONE,
                                         LayerManagerPersistence aPersistence = LAYER_MANAGER_CURRENT,
                                         bool* aAllowRetaining = nullptr);
+  virtual mozilla::layers::LayersBackend GetPreferredCompositorBackend() { return mozilla::layers::LAYERS_D3D11; }
 
   // IME related interfaces
   NS_IMETHOD_(void) SetInputContext(const InputContext& aContext,
                                     const InputContextAction& aAction);
   NS_IMETHOD_(nsIWidget::InputContext) GetInputContext();
   NS_IMETHOD    NotifyIME(NotificationToIME aNotification) MOZ_OVERRIDE;
   NS_IMETHOD    GetToggledKeyState(uint32_t aKeyCode, bool* aLEDState);
   NS_IMETHOD    NotifyIMEOfTextChange(uint32_t aStart,