Commit Graph

305 Commits

Author SHA1 Message Date
Nicholas Nethercote
068baea952 Bug 1219476 (part 5) - Replace PRLogModuleInfo usage with LazyLogModule in gfx/. r=erahm. 2015-10-29 15:58:24 -07:00
John Daggett
76de577551 Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-19 11:16:43 +09:00
Phil Ringnalda
116b1f9821 Back out 2 changesets (bug 543715) because Mulet is why we can't have nice things
Backed out changeset 2d1d8e9b095c (bug 543715)
Backed out changeset bc90276ec090 (bug 543715)
2015-10-18 11:22:22 -07:00
John Daggett
5ef9c45a89 Bug 543715 p1 - distinguish between italic and oblique. r=jfkthame 2015-10-18 22:17:46 +09:00
Nathan Froyd
9c5965b035 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nathan Froyd
e504437747 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Benoit Girard
16b6021155 Bug 1199885 - Part 3: Add 'apz.drag.enabled' preference for async scrollbars. r=kats 2015-09-28 14:44:36 -04:00
David Anderson
84957ca102 Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel) 2015-10-01 23:06:43 -07:00
Wes Kocher
e8d13b3d93 Backed out changeset 919a831786f1 (bug 1208638) for windows build failures 2015-09-30 16:43:26 -07:00
David Anderson
5838dcf0f2 Don't use Direct2D if CompositorD3D11::Initialize fails. (bug 1208638, r=jrmuizel) 2015-09-30 16:16:16 -07:00
John Daggett
f0d16d3d44 Bug 1182361 p4 - move pref font util methods to platform fontlist. r=heycam 2015-09-29 10:51:28 +09:00
James Willcox
90ec309d45 Bug 1182665 - Add gfxPlatform::GetScreenSize() and use nsIScreen for gfxPlatform::GetScreenDepth() r=nical 2015-09-28 09:36:54 -05:00
Mason Chang
7ab74dfc66 Bug 1160216 - Add a preference to force software vsync and set software vsync rate. r=kats 2015-09-15 08:13:57 -07:00
John Daggett
978a916be5 Bug 1203809 - pass textperf obj into gfxFontGroup constructor. r=m_kato 2015-09-11 13:24:33 +09:00
Matt Woodrow
423abf75d7 Bug 1191040 - Ensure that we only compute the tile size once. r=BenWa 2015-08-07 15:37:56 -04:00
Ryan VanderMeulen
b12a864e3f Backed out changeset 4e63305fe592 (bug 1191040) for Linux gtest crashes.
CLOSED TREE
2015-08-07 16:24:59 -04:00
Matt Woodrow
3fb76d3147 Bug 1191040 - Ensure that we only compute the tile size once. r=BenWa 2015-08-07 15:37:56 -04:00
Ryan VanderMeulen
2933afe1ef Backed out changeset 6ee70eb03b02 (bug 1183788) for Android crashes. 2015-08-05 10:24:55 -04:00
Dylan Roeh
cff41507a4 Bug 1183788 - Move all CanDetach/InitCanDetach logic into gfxPlatform.h/cpp. r=snorp 2015-08-04 17:02:18 -05:00
David Anderson
57767f5962 Use the same graphics device parameters across processes. (bug 1183910 part 7, r=mattwoodrow) 2015-08-02 13:59:33 -07:00
David Anderson
59ee26be39 Add a pref to force TDRs for graphics testing. (bug 1183910 part 2, r=mattwoodrow) 2015-07-30 00:23:53 -07:00
David Anderson
dc0138c34a Add compositor, layers, and rendering info to nsIGfxInfo. (bug 1179051 part 5, r=mattwoodrow) 2015-07-19 14:50:35 -07:00
Ryan VanderMeulen
7a0228a1fa Backed out changesets 90446493d402 and c4f4027f9f3a (bug 1179051) for crashes. 2015-07-19 22:39:20 -04:00
David Anderson
e4541b0cb2 Add compositor, layers, and rendering info to nsIGfxInfo. (bug 1179051 part 5, r=mattwoodrow) 2015-07-19 14:50:35 -07:00
David Anderson
a95f1bd843 Move compositor backend decisions into gfxPlatform. (bug 1179051 part 3, r=mattwoodrow) 2015-07-16 15:18:05 -07:00
Andrew Comminos
219b4c782e Bug 1183820 - Expose if cairo uses XRender to GetAzureBackendInfo. r=mattwoodrow 2015-07-14 13:56:00 -04:00
Botond Ballo
1108f5b6cd Bug 1181832 - Keep gfxPrefs.h out of header files. r=kats 2015-07-13 11:53:10 -04:00
Birunthan Mohanathas
e52329c788 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Lee Salzman
a34975493d Bug 1170390 - Make gfxPlatform::CreateOffscreenSurface use explicit format rather than guess. r=jrmuizel 2015-07-06 21:21:47 -04:00
John Daggett
8742a89b16 Bug 1163488 - use the preprocessor to keep font lang arrays in sync. r=m_kato 2015-07-10 23:49:26 +09:00
Karl Tomlinson
6649094fd6 bug 1180012 remove unused GetPrefFonts() r=jdaggett 2015-05-19 19:39:51 +12:00
Nathan Froyd
46d6f38e68 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Bas Schouten
774ff16a5d Bug 1167235 - Part 1: Add code exposing a PersistentBufferProvider. r=nical 2015-06-19 01:07:21 +02:00
Matt Woodrow
244b451f29 Bug 1175366 - Don't use DXVA if D3D11 texture sharing is broken. r=jrmuizel 2015-06-17 21:09:16 -07:00
Jeff Muizelaar
7bc9b479e8 Bug 1171094. Disallow D3D11 ANGLE with old DisplayLink drivers. r=Bas 2015-06-05 17:17:30 -04:00
David Anderson
53244f3c1b Use widgets for APZ checks, rather than gfxPrefs. (bug 1162064, r=kats,mstange) 2015-06-04 16:51:10 -04:00
Eric Rahm
c5e63515bf Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj 2015-05-19 11:15:34 -07:00
John Daggett
efff1e5386 Bug 1056479 p1a - use lang as part of pref font fallback. r=karlt 2015-05-13 14:11:25 +09:00
Carsten "Tomcat" Book
53653e896e Backed out changeset c72465a4c424 (bug 1056479) 2015-05-12 12:21:14 +02:00
John Daggett
14ad02c693 Bug 1056479 p1a - use lang as part of pref font fallback. r=karlt 2015-05-12 17:44:13 +09:00
Carsten "Tomcat" Book
1c0b0eacfa Backed out 10 changesets (bug 1056479) for bustage on a CLOSED TREE
Backed out changeset d5b1f2b78915 (bug 1056479)
Backed out changeset bcc65b714dd6 (bug 1056479)
Backed out changeset 0b35e8a463d2 (bug 1056479)
Backed out changeset 0933391809c9 (bug 1056479)
Backed out changeset 93bd67204fac (bug 1056479)
Backed out changeset 5260b93eb0b9 (bug 1056479)
Backed out changeset 130bea3f8623 (bug 1056479)
Backed out changeset 408e078cc18d (bug 1056479)
Backed out changeset a651c240979d (bug 1056479)
Backed out changeset d74ae8fcaac9 (bug 1056479)
2015-05-12 08:25:19 +02:00
John Daggett
f43f619412 Bug 1056479 p1a - use lang as part of pref font fallback. r=karlt 2015-05-12 14:51:17 +09:00
Thibaud Backenstrass
1d59a76bc3 Bug 1158122 - Remove all occurences of nsIntRect in gfx/thebes/. r=nical 2015-05-07 11:07:31 +02:00
Nicolas Silva
62a1f8b3a0 Bug 1155649 - XFlush at the end of frames when OMTC is enabled on Linux. r=jrmuizel 2015-05-04 12:35:18 +02:00
Milan Sreckovic
945381a8a2 Bug 1158284 - Utility in gfxPlatform to check for safe mode, lazier computation if we should accelerate and random cleanup of prefs usage. r=botond 2015-04-24 12:33:35 -07:00
Andrea Marchesini
cece1d9f00 Bug 1156632 - Remove unused forward class declarations - patch 6 - the rest of the tree, r=ehsan 2015-04-22 08:29:24 +02:00
David Anderson
158c61d584 Show APZ wheel support in about:support on Mac OS X. (bug 1155881, r=mstange) 2015-04-19 16:12:14 -04:00
Jeff Muizelaar
a39f108967 Bug 1153381. Add a D3D11 ANGLE blacklist. r=mstange
This blocks the Intel 4500 style GPUs so that Google Maps
works properly
2015-04-10 16:17:27 -04:00
Matt Woodrow
b9044f9109 Bug 1149343 - Part 1: Unify prefs/blacklist for hardware acceleration video decoding. r=cpearce 2015-04-01 16:06:56 +13:00
Bas Schouten
079d1073dc Bug 1147439: Report telemetry correctly for individual devices resetting. r=vladan 2015-03-26 05:01:31 +01:00