diff options
author | Markus Keller | 2017-02-08 21:23:03 +0000 |
---|---|---|
committer | Markus Keller | 2017-02-08 21:23:03 +0000 |
commit | 4718faadfe79f08468abfbb2b350bfd084065684 (patch) | |
tree | f89a517b07591f04ee533ce20d0c8de3f1f22155 | |
parent | 2b47769bd223740334323e7f5c4a88a4a34cb55c (diff) | |
download | eclipse.platform.text-4718faadfe79f08468abfbb2b350bfd084065684.tar.gz eclipse.platform.text-4718faadfe79f08468abfbb2b350bfd084065684.tar.xz eclipse.platform.text-4718faadfe79f08468abfbb2b350bfd084065684.zip |
Bug 511596: [painting][rulers] Rulers are forcing synchronous paints during scrollY20170209-1000I20170212-2000I20170211-2000I20170210-2000I20170210-0615I20170210-0600I20170210-0550I20170210-0530I20170209-2000I20170208-2000
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java index 04e361675d9..311f411fcf0 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/VerticalRuler.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2016 IBM Corporation and others. + * Copyright (c) 2000, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -81,14 +81,17 @@ public final class VerticalRuler implements IVerticalRuler, IVerticalRulerExtens } } - /** - * <code>true</code> if we're on a Mac/GTK, where "new GC(canvas)" is expensive. - * @see <a href="https://bugs.eclipse.org/298936">bug 298936</a> - * @see <a href="https://bugs.eclipse.org/467499">bug 467499</a> - * @since 3.6 - */ - static final boolean AVOID_NEW_GC= Util.isMac() || Util.isGtk(); - + /** + * <code>true</code> if we're on a Mac/GTK, where "new GC(canvas)" is expensive. + * <b>Warning:</b> On Windows, we can't switch to direct-paint mode, because + * calls to update() have been removed, and now repaints would only happen with huge + * delays when scrolling, see <a href="https://bugs.eclipse.org/511596#c26">bug 511596 comment 26</a>. + * + * @see <a href="https://bugs.eclipse.org/298936">bug 298936</a> + * @see <a href="https://bugs.eclipse.org/467499">bug 467499</a> + * @since 3.6 + */ + static final boolean AVOID_NEW_GC= Util.isMac() || Util.isGtk(); /** The vertical ruler's text viewer */ |