Commit Graph

1369 Commits

Author SHA1 Message Date
Nicolas Silva
ecc45dcb6c Bug 1083101 - Add a memory arena to Moz2D. r=jrmuizel 2015-09-01 13:50:15 +02:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Lee Salzman
c224ffd8e8 Bug 1199417- Scale skia paths up before hit testing to workaround coordinate resolution limits. r=mattwoodrow 2015-08-27 15:44:26 -04:00
Ryan VanderMeulen
e9749a6b42 Backed out 7 changesets (bug 1083101) for static analysis bustage and debug gtest asserts.
Backed out changeset a277ab555649 (bug 1083101)
Backed out changeset 831ad34078f3 (bug 1083101)
Backed out changeset 42d622972b02 (bug 1083101)
Backed out changeset ff4b35d2f501 (bug 1083101)
Backed out changeset 00e568d08a1f (bug 1083101)
Backed out changeset d9448dc26a8a (bug 1083101)
Backed out changeset 8c943cd72144 (bug 1083101)

CLOSED TREE
2015-08-27 10:47:55 -04:00
Nicolas Silva
8417984cba Bug 1083101 - Static analysis fix on a CLOSED TREE. r=me 2015-08-27 15:51:42 +02:00
Nicolas Silva
6642a7985c Bug 1083101 - Mark DrawingCommand methods const. r=jrmuizel 2015-08-27 14:47:36 +02:00
Nicolas Silva
61dd0288c2 Bug 1083101 - Extend and fix DrawCommand storage facility. r=jrmuizel 2015-06-10 19:57:08 +02:00
Nicolas Silva
9e8970a3da Bug 1083101 - implement the DrawingTask for Moz2D's task scheduler. r=jrmuizel 2015-08-27 14:47:24 +02:00
Nicolas Silva
627c49beb0 Bug 1083101 - Win32 implementation of Moz2D's task scheduler. r=jrmuizel 2015-08-27 14:47:16 +02:00
Nicolas Silva
90f8c65778 Bug 1083101 - Add a task scheduler to Moz2D. r=jrmuizel 2015-08-27 14:47:12 +02:00
Nicolas Silva
216f313711 Bug 1083101 - Add a memory arena to Moz2D. r=jrmuizel 2015-08-27 14:47:07 +02:00
Lee Salzman
01275d0e89 Bug 1190705 - Ensure that canvas 2d matrix transforms are finite. r=Bas, r=jrmuizel 2015-08-05 18:48:25 -04:00
Jeff Muizelaar
e3b7e7988d Bug 1194335. Use a StackArray for RECTS so we see them in the minidumps. r=mattwoodrow
It will be faster too.
2015-08-13 17:01:10 -04:00
Milan Sreckovic
5ff2dfcf87 Bug 1130195: Don't immediately crash if we can't allocate image. Carry r=bas 2015-08-11 14:07:49 -07:00
Jeff Gilbert
495915511d Bug 1192466 - Prune header includes for SkiaGLGlue.h - r=bgirard 2015-08-07 19:27:14 -07:00
Matt Woodrow
0dc1d84722 Bug 1061525 - Part 1: Add support for planar MacIOSurfaces. r=BenWa 2015-08-10 22:04:25 +10:00
Wes Kocher
97d6f8f843 Backed out 6 changesets (bug 1061525) for mochitest-2 failures in test_BufferedSeek_mp4.html CLOSED TREE
Backed out changeset 5e90b9dab7fa (bug 1061525)
Backed out changeset ef5ce3d6412a (bug 1061525)
Backed out changeset 19c8682665a6 (bug 1061525)
Backed out changeset b48d13edb48d (bug 1061525)
Backed out changeset fae6602192a7 (bug 1061525)
Backed out changeset 5dfbd6e73c7a (bug 1061525)
2015-08-03 19:53:33 -07:00
Matt Woodrow
b18b127ff3 Bug 1061525 - Part 1: Add support for planar MacIOSurfaces. r=BenWa 2015-08-03 17:57:19 -04:00
Lee Salzman
061ce9163f Bug 1185636 - Part 4 - Implement CSS border corners by splitting geometry instead of gradients with hard stops. r=mstange 2015-07-31 14:27:19 -04:00
Lee Salzman
a6317fea31 Bug 1185636 - Part 3 - Refactor ArcToBezier so that its implementation can be more easily reused. r=jmuizelaar 2015-07-27 12:12:22 -04:00
Lee Salzman
2b9080a2e1 Bug 1185636 - Part 2 - Add some utility methods to Point and Size. r=jmuizelaar 2015-07-20 14:53:24 -04:00
Lee Salzman
d7eac98ff6 Bug 1188462 - Fix inclusion of skia headers to use correct directory prefixes. r=jrmuizel 2015-07-29 16:31:40 -04:00
Lee Salzman
cf88f83a89 Bug 1188462 - Add SKIA_INCLUDES list for adding Skia to header search path. r=jrmuizel 2015-07-30 12:05:22 -04:00
Milan Sreckovic
e8d9de30b4 Bug 1178965 - Check if Factory::GetD2D1Device fails in SourceSurfaceD2D1. r=nical 2015-07-30 07:56:00 -04:00
Matt Woodrow
a87ef9fe20 Bug 1034370 - Make sure we release the SkImageFilter in DrawTargetSkia::DrawSurfaceWithShadow. r=gw280 2015-07-29 16:35:55 -04:00
Wes Kocher
2d40eac90e Backed out 6 changesets (bug 1150944, bug 1034370) for build failures in WebGLContext.cpp CLOSED TREE
Backed out changeset e2a6160242e5 (bug 1150944)
Backed out changeset 1c510537d20b (bug 1150944)
Backed out changeset 7ae813666ed5 (bug 1150944)
Backed out changeset 2f29ac2e31cd (bug 1150944)
Backed out changeset bf7681b1567e (bug 1150944)
Backed out changeset 79c6b8d014d2 (bug 1034370)
2015-07-29 14:16:17 -07:00
Matt Woodrow
4a9ade2de0 Bug 1034370 - Make sure we release the SkImageFilter in DrawTargetSkia::DrawSurfaceWithShadow. r=gw280 2015-07-29 16:35:55 -04:00
Vladimir Vukicevic
8c69e75150 Bug 1179944, [webvr] support Oculus 0.6.0 runtime and rendering; r=mstange
---
 gfx/2d/Quaternion.h                              |  10 +
 gfx/layers/Layers.h                              |   6 +-
 gfx/layers/composite/ContainerLayerComposite.cpp | 161 +++++++---
 gfx/layers/composite/ContainerLayerComposite.h   |   3 +
 gfx/thebes/gfxPrefs.h                            |   2 +
 gfx/vr/gfxVR.cpp                                 |  56 ++++
 gfx/vr/gfxVR.h                                   |  37 +++
 gfx/vr/gfxVRCardboard.cpp                        |  54 +---
 gfx/vr/gfxVROculus.cpp                           | 367 +++++++++++++++--------
 gfx/vr/gfxVROculus.h                             |  14 +-
 gfx/vr/moz.build                                 |  10 +
 gfx/vr/ovr_capi_dynamic.h                        | 261 +++++++++++-----
 modules/libpref/init/all.js                      |   3 +
 13 files changed, 694 insertions(+), 290 deletions(-)
2015-07-02 11:58:24 -04:00
Lee Salzman
bd86b640a9 Bug 1185636 - Remove hard stop workaround for Cairo due to regressions. r=jrmuizel 2015-07-20 14:51:50 -04:00
David Anderson
e309ec6b78 Refactor graphics device initialization on Windows. (bug 1183910 part 1, r=mattwoodrow,bas)
This patch addresses a number of inconsistencies in the device initialization process, as well as simplifying it for future use. All device decisions are now explicitly made up-front during startup, rather than implicitly or on-demand. In addition a number of restrictions have been placed on when we can construct devices.

Full change list:
 (1) We no longer attempt to use D3D11 if acceleration is disabled or D3D9 is preferred. This is a departure from our previous behavior, where we would construct these devices but then not use them as a compositor backend.
 (2) D3D11 startup no longer creates a content device (this is reserved for D2D initialization).
 (3) D2D is only attempted if we managed to create a D3D11 compositor device. This is a departure from previous behavior where if D3D11 was not used for compositing, we could still create its machinery to use D2D as a content backend.
 (4) D2D 1.1 initialization is now directly responsible for creating a D3D11 content device.
 (5) D2D 1.0 and 1.1 logic have been disentangled for clarity.
 (6) UpdateRenderMode() has been split up, so we can update backend prefs out of band with device resets.
 (7) mUseGDIFonts and mUseDirectWrite have been removed as their state was confusing. Instead, D2D now depends on DWrite initialization succeeding. If later we fail to get a DWrite font list, we revert our decision to use Direct2D.
 (8) Device resets now clear a little more state, including the devices set in Moz2D Factory.
 (9) We no longer create a DWrite text analyzer as it was unused.
2015-07-28 16:52:54 -07:00
Ehsan Akhgari
d3beec01a2 Bug 1188206 - Fix more constructors in gfx; r=jrmuizel 2015-07-28 08:53:26 -04:00
Lee Salzman
5860093b72 Bug 1187210 - limit ArcToBezier sweeps while taking care of floating-point inaccuracy. r=eihrul 2015-07-25 02:45:02 -04:00
Kearwood (Kip) Gilbert
7e994f6537 Bug 1181240 - Part 1: Copy methods from gfx3DMatrix,r=vlad
- Copied methods from gfx3DMatrix to Matrix4x4, gfxPoint, and gfxRect that
  with at double-precision floating point.
2015-07-09 16:27:38 -07:00
Daniel Holbert
e2af668025 Bug 1185011: Add 'override' annotations to DataSourceSurface subclasses in SourceSurfaceRawData.h, to fix clang -Winconsistent-missing-override build warnings/errors. rs=ehsan 2015-07-17 09:58:16 -07:00
Matt Woodrow
ef5cbf24cc Bug 1176363 - Part 2: Allow mapping of SourceSurfaceRawData from multiple threads. r=bas 2015-07-16 03:36:00 -04:00
Milan Sreckovic
f7b57da4d5 Bug 1182209 - Additional info with some critical errors. r=mchang
CLOSED TREE
2015-07-14 15:22:29 -04:00
George Wright
8896ecec8c Bug 1002466 - Use SK_ScalarNearlyZero instead of 0.0f to render dots r=mattwoodrow 2014-04-29 18:38:35 -04:00
Birunthan Mohanathas
47ed3a3675 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
1fc0ea44c3 Bug 1170390 - Detect 16bpp cairo xlib surface format. r=jrmuizel 2015-07-06 20:19:56 -04:00
Kyle
d92a066a96 Bug 1178971 - Changed line snapping behaviour depending on even/odd-ness of stroke width. r=mstange 2015-07-07 14:56:23 -04:00
Tom Klein
257e8fcd9f Bug 1143303 - extend D2D circle workaround to work for small circles. r=bas 2015-07-06 22:46:00 +02:00
Nicolas Silva
423571717d Bug 1178816 - Fix a crash when DrawTargetD2D1 fails to initialize. r=milan 2015-07-06 17:57:03 +02:00
Lee Salzman
78ef6ce7e3 Bug 1180246 - Part 1 - remove dependencies on gfxD2DSurface. r=bas 2015-07-02 08:02:51 -04:00
Kyle
9a1a48febd Bug 1168189 - Force D2D1 CopySurface to use DrawBitmap like D2D. r=bas 2015-06-19 16:05:51 -04:00
Nathan Froyd
8780083336 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
Andrew Comminos
0e941eb46e Bug 1177807 - Mark cairo surface dirty in ReleaseBits. r=jrmuizel 2015-06-26 11:34:00 +02:00
Mason Chang
05c0609598 Bug 1162824 - Change box shadow cache to cache the colored blurred box shadow. r=mstange 2015-06-25 12:04:21 -07:00
Lee Salzman
11cf94db25 Bug 1033375 - Nudge simple linear gradients with hard stops to half-pixel gradient. r=nical 2015-06-23 20:50:36 -04:00
Markus Stange
2e0f2286ad Bug 1165185 - Try to avoid invalidations when scrolling transformed elements. r=roc 2015-06-15 19:20:59 -04:00
Milan Sreckovic
1959878227 Bug 1176052 - Introduce gfxCriticalNote. r=jmuizelaar 2015-06-18 12:59:00 +02:00