Bug 1315264: Set InkCollector.AutoRedraw to false to prevent repainting when the window is invalidated. r=jimm
authorStone Shih <sshih@mozilla.com>
Tue, 29 Nov 2016 16:43:49 +0800
changeset 327841 141fe3b986cd80d7781545b24413462735c76545
parent 327840 17caae57fcd04392f755de11f39b0323141d2af4
child 327842 2cd1da60be5473e2356281b5855927dfc412fdd3
push id85304
push userphilringnalda@gmail.com
push dateWed, 04 Jan 2017 02:47:06 +0000
treeherdermozilla-inbound@6176579defcb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs1315264
milestone53.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 1315264: Set InkCollector.AutoRedraw to false to prevent repainting when the window is invalidated. r=jimm MozReview-Commit-ID: Fb6pUZn11H
widget/windows/InkCollector.cpp
--- a/widget/windows/InkCollector.cpp
+++ b/widget/windows/InkCollector.cpp
@@ -109,16 +109,20 @@ void InkCollector::OnInitialize()
   // https://msdn.microsoft.com/en-us/library/ms820346.aspx
   mInkCollector->SetAllTabletsMode(VARIANT_FALSE);
 
   // Sets the value that specifies whether ink is rendered as it is drawn.
   // VARIANT_TRUE to render ink as it is drawn on the display.
   // VARIANT_FALSE to not have the ink appear on the display as strokes are made.
   // https://msdn.microsoft.com/en-us/library/windows/desktop/dd314598.aspx
   mInkCollector->put_DynamicRendering(VARIANT_FALSE);
+
+  // Set AutoRedraw to false to prevent repainting the ink when the window is
+  // invalidated.
+  mInkCollector->put_AutoRedraw(VARIANT_FALSE);
 }
 
 // Sets a value that specifies whether the InkCollector object collects pen input.
 // This property must be set to FALSE before setting or
 // calling specific properties and methods of the object.
 // https://msdn.microsoft.com/en-us/library/windows/desktop/ms701721.aspx
 void InkCollector::Enable(bool aNewState)
 {