From 16558048b6059855e5dbca2e5b0c588499dccb80 Mon Sep 17 00:00:00 2001 From: Bas Schouten Date: Wed, 12 Nov 2014 18:44:31 +0000 Subject: [PATCH] Bug 1097803: Report succesful Direct2D 1.1 usage. r=jrmuizel --- gfx/thebes/gfxWindowsPlatform.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gfx/thebes/gfxWindowsPlatform.cpp b/gfx/thebes/gfxWindowsPlatform.cpp index 078fa5d07309..9e29ccbffa3a 100644 --- a/gfx/thebes/gfxWindowsPlatform.cpp +++ b/gfx/thebes/gfxWindowsPlatform.cpp @@ -611,6 +611,12 @@ gfxWindowsPlatform::VerifyD2DDevice(bool aAttemptForce) reporter.SetSuccessful(); mozilla::gfx::Factory::SetDirect3D10Device(cairo_d2d_device_get_device(mD2DDevice)); } + + ScopedGfxFeatureReporter reporter1_1("D2D1.1"); + + if (Factory::SupportsD2D1()) { + reporter1_1.SetSuccessful(); + } #endif }