Steve Singer
68e0638cba
Bug 844883 - Use a signed value for the stride. r=jmuizelaar
2013-03-20 15:42:51 -04:00
Milan Sreckovic
757d011762
Bug 825721 - Clamp negative box starts and disallow negative sizes. r=jmuizelaar
2013-03-07 10:13:28 -05:00
Mike Shal
9680b82df6
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Bas Schouten
249037f0d4
Bug 828157 - Properly offset gradient origin when using D2D to draw moderately complex gradients. r=jmuizelaar
2013-03-12 15:55:50 -04:00
Jacek Caban
d708ac8932
Bug 849207 - Use __declspec(dllexport) for exporting skia C++ symbols. r=gwright
...
--HG--
extra : rebase_source : 333c7fcc334db6f6969995f0ff5fac8bb9607e74
2013-03-12 11:33:36 +01:00
Chris Lord
81f0522af9
Bug 716403 - Annotate layers with the fixed margins from the PresShell. r=nrc,roc
...
This annotates fixed layers with the margins that have been applied from
nsIPresShell->GetContentDocumentFixedPositionMargins. Using SyncViewportInfo
in CompositorParent, this allows for async fixed position margin setting.
2013-03-07 10:17:33 +00:00
Ryan VanderMeulen
893d8d351a
Backed out 9 changesets (bug 716403) for Android 4.0 robocop bustage on a CLOSED TREE.
2013-03-06 16:11:05 -05:00
Chris Lord
f223199f29
Bug 716403 - Annotate layers with the fixed margins from the PresShell. r=nrc,roc
...
This annotates fixed layers with the margins that have been applied from
nsIPresShell->GetContentDocumentFixedPositionMargins. Using SyncViewportInfo
in CompositorParent, this allows for async fixed position margin setting.
2013-03-06 16:56:00 +00:00
Daniel Holbert
1859a93138
Bug 843719: Reorder params in Margin constructors and SizeTo() methods to match CSS's top,right,bottom,left ordering. r=seth
2013-03-06 00:05:55 -08:00
George Wright
85199c3edd
[PATCH 8/9] Bug 751418 - Plumb through GL-backed CanvasLayers for Skia/GL r=mattwoodrow
...
From ac18dd134e69cc734dc6a9e16498e43207de4e9a Mon Sep 17 00:00:00 2001
---
content/canvas/src/CanvasRenderingContext2D.cpp | 42 +++++++++++++++++++++++--
content/canvas/src/CanvasRenderingContext2D.h | 5 +++
gfx/2d/2D.h | 8 +++++
gfx/2d/Factory.cpp | 10 ++++++
gfx/thebes/gfxPlatform.cpp | 34 ++++++++++++++++++++
gfx/thebes/gfxPlatform.h | 12 +++++++
6 files changed, 109 insertions(+), 2 deletions(-)
2012-11-30 18:58:00 -05:00
George Wright
5563171991
[PATCH 7/9] Bug 751418 - Add support for the Skia/GL backend to DrawTargetSkia r=mattwoodrow
...
From 0792589a5679ba3af020708233bacbd83a0c611e Mon Sep 17 00:00:00 2001
---
gfx/2d/DrawTargetSkia.cpp | 24 ++++++++++++++++++++++++
gfx/2d/DrawTargetSkia.h | 4 ++++
gfx/2d/HelpersSkia.h | 20 ++++++++++++++++++++
3 files changed, 48 insertions(+)
2012-11-30 18:57:38 -05:00
George Wright
9a7d9e3192
[PATCH 4/9] Bug 751418 - Ensure we define USE_SKIA globally r=ted
...
From f0e2d2aa3f9a5738369ce9e0e8cd00d937ac77ab Mon Sep 17 00:00:00 2001
---
configure.in | 4 ++++
gfx/2d/Makefile.in | 7 -------
gfx/skia/Makefile.in | 3 ---
3 files changed, 4 insertions(+), 10 deletions(-)
2013-02-26 18:29:33 -05:00
Ed Morley
d4f164b2da
Backed out changeset c1f4eff03e82 (bug 840693) for causing bug 838563
2013-03-04 14:38:11 +00:00
Robert O'Callahan
fd02ebad7e
Bug 840695. Make aAntialiasMode default to AA_DEFAULT, because, well, it's the default. r=bas
...
--HG--
extra : rebase_source : f22329337aa120573efc13fa6ac0bb111ff0dba2
2013-02-25 12:01:16 +13:00
Anthony Jones
a867d6ab73
Bug 840693 - Add ZoomScale; r=Bas
2013-03-04 13:25:22 +13:00
Ryan VanderMeulen
5d849d0751
Backed out 8 changesets (bug 716403) for frequent Android mochitest-8 failures on a CLOSED TREE.
2013-03-01 16:09:59 -05:00
Chris Lord
f56a95adbd
Bug 716403 - Annotate layers with the fixed margins from the PresShell. r=nrc,roc
...
This annotates fixed layers with the margins that have been applied from
nsIPresShell->GetContentDocumentFixedPositionMargins. Using SyncViewportInfo
in CompositorParent, this allows for async fixed position margin setting.
2013-03-01 15:46:34 +00:00
Gregory Szorc
21460a71f3
Bug 784841 - Part 18o: Convert /gfx; r=jrmuizel f=Ms2ger
2013-02-25 12:47:21 -08:00
Benoit Girard
13c81ffaed
Bug 839740 - Add Moz2D Unit Tests to gtest. r=bas
2013-02-22 19:28:08 -05:00
Daniel Holbert
c571e822b3
Bug 839265: Remove unused enum value OP_ARCTO from the PathOp::OpType enum. r=Bas
2013-02-17 00:49:50 -08:00
Daniel Holbert
4e78a9ab0a
Bug 839257: Mark Factory.cpp's HasCPUIDBit() as inline, to fix build warnings on some configurations about the function being defined but not used. r=Bas
2013-02-17 00:45:10 -08:00
Daniel Holbert
f25534b79f
Bug 839384: Fix build warnings for DrawTargetCG. r=jrmuizel
2013-02-12 20:00:54 -08:00
Robert O'Callahan
70ccb25043
Bug 8203709. Handle failure to create a snapshot surface in GetImageDataArray. r=mattwoodrow
2013-02-12 17:56:28 +13:00
Phil Ringnalda
cb79659a5f
Back out 1b98c119cbfb (bug 8203709) for bustage
...
CLOSED TREE
2013-02-09 07:15:43 -08:00
Robert O'Callahan
af668db99e
Bug 8203709. Handle failure to create a snapshot surface in GetImageDataArray. r=mattwoodrow
2013-02-10 00:28:18 +13:00
Timothy Nikkel
8233bb1988
Bug 827946. GCC 4.5 with PGO miscompiles the ConvolveHorizontally function, so add an annotation to tone down the optmization on that function with GCC 4.5 only. r=joe
2013-02-08 14:01:19 -06:00
Timothy Nikkel
c4442c2ae2
Backout 1b5a4a4cf267 (bug 827946) for build breakage on CLOSED TREE.
2013-02-08 10:55:17 -06:00
Timothy Nikkel
f66897f82e
Bug 827946. GCC 4.5 with PGO miscompiles the ConvolveHorizontally function, so add an annotation to tone down the optmization on that function with GCC 4.5 only. r=joe
2013-02-08 10:39:16 -06:00
Matt Woodrow
49493327db
Bug 836892 - Add new skia blending modes to GfxOpToSkiaOp. r=gw280
2013-02-08 10:54:59 +13:00
Matt Woodrow
0a967062f9
Bug 831529 - Stop using SkPath::contains for now since it doesn't match the canvas spec. r=jrmuizel
2013-02-08 10:54:59 +13:00
Milan Sreckovic
2c6ea06f4c
Bug 818241 - Initialize mCg to nullptr. r=jmuizelaar
2013-01-29 10:22:52 -05:00
Mats Palmgren
f039793929
Bug 834896 - Replace uses of gfx_min/gfx_max with std::min/std::max. r=joe
2013-01-30 17:02:27 +01:00
Mats Palmgren
9398ca3f40
Bug 834896 - Remove the gfx_min/gfx_max templates. r=joe
2013-01-30 17:02:27 +01:00
Filippo Cristofoletti
38c8e0af02
Bug 755031 - Fix some other warnings in gfx/2d. r=jmuizelaar
2013-01-28 10:09:29 -05:00
Filippo Cristofoletti
04732008ec
Bug 755031 - Clear warnings in gfx/2d/ScaledFontDWrite.cpp. r=jmuizelaar
2013-01-15 07:21:00 -05:00
Usurelu Catalin
1218974f91
Bug 817846 - Add BaseSize::IsEmpty() member function. r=cjones
2013-01-24 18:10:27 -05:00
Steven Michaud
6aced240ae
Bug 829284 - Unity plugin doesn't display in HiDPI mode. r=bgirard
2013-01-23 16:19:15 -06:00
Milan Sreckovic
5cae08eb28
Bug 803568: Check for Cairo surface creation failure. r=bas
2013-01-17 14:38:38 +01:00
Mats Palmgren
6c53161814
Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan
2013-01-15 13:22:03 +01:00
Bas Schouten
445908818b
Bug 817019: Don't push ClearType layers to Transparent rendertargets. r=jrmuizel
2013-01-15 02:20:10 +01:00
Trevor Saunders
10701d89a1
no bug - mark several classes final to avoid warnings about deleting objects of polymorphic type
2013-01-11 04:43:29 -05:00
Chris Peterson
34d009dfe8
Bug 829685 - Remove #include "prtypes.h" from some files that no longer use PR types. r=ehsan
2013-01-10 08:19:36 -08:00
Anthony Jones
84c559a422
Bug 811950 - Add scaling operators to BaseSize and gfxPoint. r=roc
2012-12-23 10:50:30 -05:00
Steven Michaud
ed8fe1f53d
Bug 821304 - Unbreak plugins that use subclasses of CALayer in CoreAnimation mode. r=bgirard
2012-12-20 15:14:20 -06:00
Jeff Muizelaar
47cdb5bcdd
Bug 823393. Breakage fix for partially commited Bug 823148.
...
Only some hunks of the patch for bug 823148 made it into the
tree. I've no idea why.
--HG--
extra : rebase_source : 629e6d74e2e6cf4255e7875a8a1eb044241eec23
2012-12-20 01:16:45 -05:00
Jeff Muizelaar
1a3fed9d72
Bug 823148. Make IsPatternSupportedByD2D match its name. r=bgirard
...
The name of this function got inverted but its implementation stayed the same.
2012-12-19 23:19:45 -05:00
Yazen Ghannam
a5cf56118a
Bug 795378 - Clean up the high-quality scaler - Merge upstream changes to image_operations.cpp. r=joe
2012-12-18 16:25:07 -05:00
Rik Cabanier
db7b579813
Bug 748433: Adds support for blending to the canvas globalCompositeOperator. r=jrmuizel
2012-12-12 21:28:17 +01:00
Rik Cabanier
3024c6e42a
Bug 809927: Add new blend modes and implement them for Direct2D. r=bas
2012-12-12 21:28:17 +01:00
Steve Singer
d4a2df7f43
Bug 817356. the skia image resizers need to respect endian order when finding the alpha values. r=joedrew
2012-12-09 21:20:41 +01:00
Tobias Netzel
6dd2b0c4ea
Bug 818004 - New Blurring code isn't big endian compatible. r=joedrew
2012-12-04 21:00:39 -05:00
Bas Schouten
9053be203b
Bug 789933: Support non-D2D targets for getting a Path off ScaledFontDWrite. r=nrc
2012-12-05 01:11:02 +01:00
Nicholas Cameron
dfe2a0e5d8
Bug 814828. DEST_OUT has no affect outside the source; r=bas
...
--HG--
extra : rebase_source : 098f3e3e64ba5504530264016d7fa9425c065f99
2012-12-05 13:02:52 +13:00
Joe Drew
2ce483ef86
Bug 813090 - Fix license block on imported Chromium code. r=gerv
2012-12-03 18:04:22 -05:00
Mats Palmgren
25edff24aa
Bug 815489 - Don't let Blur() swap mData since the buffer is also used by the image surface. r=roc
2012-11-28 19:55:36 +01:00
Brian R. Bondy
317076c311
Bug 793719 - Fix for D2D error on shutdown with VS2012. r=bas
2012-11-25 14:00:31 -05:00
George Wright
19c88d3a3a
Bug 751418 - Move common functions from DrawTargetSkia to HelpersSkia r=mattwoodrow
2012-10-16 17:16:45 -04:00
Bas Schouten
bf4c845d16
Bug 814101: Respect system-wide cleartype setting. r=jrmuizel,jfkthame
2012-11-23 02:53:12 +01:00
Yury
0b958ef865
Bug 812039 - mozIsPointInPath leaks CGPath objects. r=jmuizelaar
2012-11-15 20:34:57 -05:00
Jeff Muizelaar
6140a7e334
Bug 811919. Include the pattern transform when painting patterns in DrawTargetCG. r=benwa
...
This fixes a lot of azure content bugs.
--HG--
extra : rebase_source : be84084aa7753862920ddd7b04fbfb0bd0b54ded
2012-11-14 16:52:02 -08:00
Bas Schouten
c90c33f2b7
Bug 811850: Fix gfx 2d recording to be 64-bit neutral. r=jrmuizel
2012-11-14 20:55:02 +00:00
Nathan Froyd
bba74c6646
Bug 809967 - include ostream instead of iostream in PathRecording.h to avoid static initializers; r=Bas
2012-11-08 14:22:16 -05:00
Bas Schouten
2566a9e172
Bug 509052: Add new, faster blurring code. r=derf
2012-11-07 09:29:54 +01:00
Ed Morley
b9ac8afd08
Backout e89f1fce980d (bug 509052) for an assortment of timeouts and crashes
2012-11-07 10:47:27 +00:00
Bas Schouten
66209d86a7
Bug 509052: Add new, faster blurring code. r=derf
2012-11-07 09:29:54 +01:00
Tobias Schneider
d0adae1591
Bug 803124 - Implement mozIsPointInStroke. r=jmuizelaar
2012-10-29 16:54:53 +01:00
Tobias Schneider
fc6933fb87
Bug 806780 - PathSkia::ContainsPoint should use SkPath::contains(x, y). r=jmuizelaar
2012-10-30 10:19:16 +01:00
Nicholas Cameron
fa39284713
Bug 801465; DataSourceSurfaceD2D; r=Bas
2012-10-31 12:30:25 +13:00
Nathan Froyd
bd55a07f0e
Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan
2012-10-29 19:32:10 -04:00
Daniel Holbert
ab5cc3cd7d
Bug 795655: Mark "StringFromPtr()" in RecordedEvent.h as inline, not static, so that it doesn't trigger build warnings in cpp files that don't use it. r=bas
2012-10-29 16:15:31 -07:00
Bas Schouten
4f15d944ba
Bug 805831: Add a cache for border corner gradients. r=joedrew
2012-10-27 06:32:52 +02:00
Phil Ringnalda
698c871d74
Back out fbd8fdb7c544 (bug 805831) for build failures
2012-10-26 21:53:41 -07:00
Bas Schouten
ed3c6b2dd4
Bug 805831: Add a cache for border corner gradients. r=joedrew
2012-10-27 06:32:52 +02:00
Matt Joras
2549497ae7
Bug 798033 - Removes "using namespace" directive from gfx headers - r=jmuizelaar
2012-10-25 16:12:59 -04:00
Markus Stange
75394ce10f
Bug 770524 - Fix FuzzyEqual to not return false for equal floats which are smaller than -2048.0f. r=roc
2012-10-25 12:54:15 +02:00
Anthony Jones
68095a6134
Bug 796418 - Check cairo matrix before drawing. r=joe
2012-10-24 22:03:21 -04:00
Jonathan Kew
7a6fc2753d
bug 715798 pt 3 - support Color Emoji font in the gfx/2d quartz backend. r=jrmuizel
2012-10-23 10:07:14 +01:00
Joe Drew
0cddcc1188
Bug 798053 - Do a more accurate test for the return value of Scale(). r=gw280
...
--HG--
extra : rebase_source : c26a57f060f172e9b7864eef69fa782064b4fae5
2012-10-10 11:35:23 -04:00
Steven Michaud
5038f543ad
bug 794038 pt 3 - plugins support for resolution change. r=bgirard
2012-10-16 20:41:21 +01:00
Benoit Jacob
15decb515e
back out 621cfd13ceaf for build failures
2012-10-15 13:34:42 -04:00
Matt Joras
ce980ce123
Bug 798033 - Removes "using namespace" directive from gfx headers - r=jmuizelaar
2012-10-15 13:02:21 -04:00
Anthony Jones
fc45f4771a
Bug 795763 - Support extend mode for gradient patterns in DrawTargetCairo. r=joe
2012-10-10 06:32:36 -04:00
Jacek Caban
a44b667f3a
Bug 795839 - Include iostream in PathRecording.h r=bas
...
--HG--
extra : rebase_source : 3774e2bdd21b05b009301269e8241acac8468003
2012-10-09 11:44:11 +02:00
Bas Schouten
e77095ab40
Bug 798931: Push clip layers to the correct render targets. r=roc
2012-10-08 12:17:17 +02:00
Oleg Romashin
61e94a51ca
Bug 796927 - Gfx Build fix, missing cstring include for memcpy. r=joe
2012-10-06 13:59:01 -07:00
Joe Drew
821fa45bcb
Bug 798061 - Fix mismatched malloc vs delete[] in mozilla::gfx::AlphaBoxBlur::~AlphaBoxBlur(). r=jmuizelaar
2012-10-06 21:53:23 -04:00
Bas Schouten
d4bc6c631b
Bug 784382 - Part 2: Use new ID2D1DeviceContext interface in Azure. r=jrmuizel
2012-10-07 01:43:16 +02:00
Ehsan Akhgari
5ade3f493b
Bug 797612 - Remove PathCG::mFigureActive; r=jrmuizel
...
--HG--
extra : rebase_source : 4ce5161c5ffee297ab55ad7a980dbb74f0051ded
2012-10-03 19:43:03 -04:00
Ehsan Akhgari
4902ff889c
Bug 797219 - Make OutputMessage in gfx/2d/Logging.h static inline; r=joe
2012-10-03 13:43:37 -04:00
Robert O'Callahan
6efae9e62b
Bug 793690. Fix the obvious typos for infinite rects in SetScissorRect. r=bas
2012-10-04 00:30:56 +13:00
Nicholas Cameron
33aba51702
Bug 753237 - Implement DrawTargetCairo::Mask(). r=joe
2012-10-02 20:14:38 -04:00
Steven Michaud
c109a6325b
Bug 785667 - Make plugins work with HiDPI mode on the Mac. r=bgirard
2012-10-02 14:48:05 -05:00
Anthony Jones
0cd96f1f5e
Bug 795135 - Fix CairoTempMatrix restore. r=joe
2012-10-01 22:12:13 -04:00
Joe Drew
86a50c618d
Bug 486918. Part 1: Import Chromium's higher-quality image scalers, since we know those to be good and shippable. r=jrmuizel
2012-08-23 15:36:04 -04:00
Ms2ger
a72f8370a2
Bug 795862 - Back out bug 486918 for build bustage in unreviewed code.
2012-10-01 14:16:03 +02:00
Joe Drew
0877c3403b
Bug 486918. Part 1: Import Chromium's higher-quality image scalers, since we know those to be good and shippable. r=jrmuizel
2012-08-23 15:36:04 -04:00
Doug Sherk
c0e08ee726
Bug 784908: Part 1: Change names of FrameMetrics variables to be more descriptive, add documentation, change some coordinate spaces. r=roc
2012-09-28 22:16:34 -04:00
Ed Morley
722b933229
Backout 92530b29ac24, 42e659956dc6 & 38277196c099 (bug 486918), d3b69fe15ac3 & b2dba2108722 (bug 786444), e7381ac9e30a (bug 786449) on suspicion of causing Android reftest failures on a CLOSED TREE
2012-09-28 23:00:28 +01:00
Andrew Quartey
f55a37c1ba
Bug 793201 - Fix compiler warnings in Azure with MSVC r=bas
2012-09-28 13:21:40 -04:00
Joe Drew
7ba5def5a6
Bug 486918. Part 1: Import Chromium's higher-quality image scalers, since we know those to be good and shippable. r=jrmuizel
...
--HG--
extra : rebase_source : afcbe4f2b8fac985d836b038fb42156d27dc1c29
2012-08-23 15:36:04 -04:00
Chris Jones
428139de39
Remove this .rej that didn't merge properly. No bug.
...
--HG--
extra : rebase_source : de991a63653dba7575448676cb855b29fb3d66c4
2012-09-25 23:44:39 -07:00
Bas Schouten
1cbd658d18
Bug 792207 - Part 5: Add code to Azure to allow initializing recording. r=jrmuizel
2012-09-24 15:02:50 +00:00
Bas Schouten
608b6fc192
Bug 792207 - Part 4: Add Azure recording code. r=jrmuizel
2012-09-24 15:02:50 +00:00
Bas Schouten
8cf02dc4f8
Bug 792207 - Part 3: Add UserData to ScaledFont. r=jrmuizel
2012-09-24 15:02:49 +00:00
Bas Schouten
97f01fd610
Bug 792207 - Part 2: Add method to store and create from TrueType data. r=jrmuizel
2012-09-24 15:02:49 +00:00
Bas Schouten
e84586dbf4
Bug 722269: Make DrawTargetD2D::DrawSurface deal with any SourceSurface convertible to a DataSourceSurface. r=joedrew
2012-09-20 21:24:12 +00:00
Robert O'Callahan
7efeb9262e
Bug 772726. Part 14: Nudge pattern transform components to integers to avoid rounding errors. Also nudge rects to integers when we retransform them due to a CTM change. r=bas
2012-09-08 00:32:21 +12:00
Robert O'Callahan
58aea04535
Bug 772726. Part 8: Add Rect::NudgeToIntegers and share improved nudging code among all nudging APIs. r=bas
2012-09-12 17:24:09 +12:00
Robert O'Callahan
ff8935ad31
Bug 772726. Part 6: Add NudgeToIntegers operation to Azure Matrix, add MultiplyAndNudgeToIntegers to gfxContext, and call it from SVG when we render path geometry, to ensure that small internal rounding errors in transforms don't cause unnecessary differences in rasterization of paths. r=bas
2012-09-05 12:15:52 +12:00
Bas Schouten
c2c8bcf85c
Bug 772726: Factor out pixel-aligned clip handling in DrawTargetD2D. r=jrmuizel
2012-09-18 23:04:42 +00:00
George Wright
515afdf53b
Bug 777614 - Handle BGRX SourceSurfaces in Skia by converting them to BGRA r=nrc
2012-09-18 15:41:37 -04:00
George Wright
d4e6777676
Bug 777614 - Use Skia's Conical gradient shader instead of Radial to be in line with the canvas spec. r=nrc
2012-09-18 15:41:37 -04:00
Daniel Holbert
df0cad19bc
Bug 791801: Reorder AlphaBoxBlur init list to fix build warning. r=ajones
2012-09-17 15:41:24 -07:00
Jeff Muizelaar
d6345f3cb2
Bug 782647. Move the nullptr workaround macros to MFBT so that it can be shared. r=waldo
...
This also changes the header to use compiler detection instead of a
configure test. This makes the header more portable because
it doesn't require the configure infrastructure.
2012-09-01 16:16:17 -04:00
Bas Schouten
5eafc13019
Bug 790222: Fix azure stand-alone build. r=BenWa
2012-09-11 13:51:39 +00:00
Andrew Quartey
567e57c9ae
Bug 788398 - Remove unused variable 'rule' in CairoPathContext::DuplicateContextAndPath r=bjacob
2012-09-06 20:16:30 -04:00
Nicholas Cameron
bf85c57f33
Bug 722217; keep only a single snapshot. r=jrmuizel
2012-09-06 16:07:53 +12:00
Benoit Girard
ca014e6639
Bug 788681 - Fix swapped Typedefs IOSurfaceGetWidthFunc and IOSurfaceGetHeightFunc. r=smichaud
2012-09-05 17:31:30 -04:00
Anthony Jones
6eecc7f5e3
Bug 788087 - Apply matrices to Azure/Cairo patterns. r=joe
2012-09-04 21:01:57 -04:00
Anthony Jones
9c0c7bba12
Bug 784573 - Fix problems converting cairo paths between user space and device space. r=joe
2012-09-03 17:48:04 -04:00
Anthony Jones
5c27f695d2
Bug 784573 - Create a RAII helper for temporary cairo matrices. r=joe
2012-09-03 17:47:09 -04:00
Anthony Jones
e696585651
Bug 781731 - Use a similar surface for non-blurred shadows to improve performance. r=joe
2012-09-02 19:07:06 -04:00
Anthony Jones
5886de8bb7
Bug 781731 - Speed up shadows by using tee surface to avoid doing a read back. r=jrmuizel
2012-09-02 19:07:06 -04:00
Anthony Jones
d427bdc7db
Bug 781731 - Fix shadow surface extents so they aren't double padded. r=joe
2012-09-02 19:07:05 -04:00
Anthony Jones
0fcd2824ce
Bug 781731 - Clean up DrawTargetCairo::DrawSurfaceWithShadow() to make it simpler and paint correctly in all modes. r=jrmuizel
2012-09-02 19:07:05 -04:00
Ryan VanderMeulen
02e36bcf96
Bug 781380 - Follow-up fix for a change that was lost in the original landing. r=ajones
2012-08-28 20:55:20 -04:00
Ms2ger
f900f266f1
Backout bug 781731.
2012-08-27 12:27:40 +02:00
Anthony Jones
0e06d7bda0
Bug 781731 - Fixed failed assertion in reftest1; r=doublec
2012-08-27 22:01:47 +12:00
Anthony Jones
cd3e2d436b
Bug 781731 - Use a similar surface for non-blurred shadows to improve performance; r=roc
2012-08-27 11:34:33 +02:00
Anthony Jones
e1f0182516
Bug 781731 - Speed up shadows by using tee surface to avoid doing a read back; r=roc
2012-08-27 11:34:07 +02:00
Anthony Jones
f506730ee0
Bug 781731 - Fix shadow surface extents so they aren't double padded; r=roc
2012-08-27 11:32:14 +02:00
Anthony Jones
e10d5fffde
Bug 781731 - Clean up DrawTargetCairo::DrawSurfaceWithShadow() to make it simpler and paint correctly in all modes; r=jrmuizel
2012-08-27 11:31:56 +02:00
Anthony Jones
b54caed5e7
Bug 781380 - Fix cairo surface memory leak in DrawTargetCairo::DrawSurfaceWithShadow(). r=roc
2012-08-23 19:50:59 -04:00
Anthony Jones
79ab957a38
Bug 781380 - Fix cairo surface memory leak in DrawTargetCairo::CreateSimilarDrawTarget(). r=roc
2012-08-23 19:50:59 -04:00
Nicholas Cameron
5b6207074b
Bug 784260; DrawTargetD2D should deal with Cairo surfaces in CreateBrush... . r=Bas
...
--HG--
extra : rebase_source : 6f6226c1b22b6e863499a40268cb44afab799381
2012-08-23 08:56:03 +12:00
Mats Palmgren
53b4052250
Bug 783041 - Minor cleanup: remove local 'shadowIntRect' and use 'mRect' instead since it has the same value, and use Intersect instead of IntersectRect since we're not using its return value. part 2, r=roc
2012-08-16 16:13:29 +02:00
Mats Palmgren
d6887b963c
Bug 783041 - Check IsEmpty() after rounding. part 1, r=roc
2012-08-16 16:13:29 +02:00
Joe Drew
c12d40e347
Bug 782416 - Switch from NULL to nullptr in gfx::2d. r=Bas
...
--HG--
extra : rebase_source : cfa9fc8ae592880e22e1f14cee42539b4f911668
2012-08-14 14:06:12 -04:00
Joe Drew
97cec546da
Bug 782416 - Make gfx::2d's nullptr definition actually work. r=nrc
...
--HG--
extra : rebase_source : da098e5e6d04aa1dce2ffefd4ccd0ad6ffb376b8
2012-08-15 15:24:44 -04:00
Joe Drew
012f6296d7
Back out 98d2c24ce932 for failing to build r=moron
2012-08-15 12:51:33 -04:00
Joe Drew
7d9c231869
Bug 782416 - Switch from NULL to nullptr in gfx::2d. r=Bas
...
--HG--
extra : rebase_source : 9b12a2af4c55f4dc383e8075b400e7a1fbe1ac23
2012-08-14 14:06:12 -04:00
Aryeh Gregor
6a9cec29c8
Bug 626472 part 3 - Remove nsnull for good; r=ehsan
2012-08-12 13:43:47 +03:00
Nicholas Cameron
20cab98861
Bug 781943. nullptr macro. r=joe
2012-08-14 09:06:59 +12:00
Robert O'Callahan
16858576bf
Bug 772726. Part 3: Optimize DrawTargetD2D::GetClippedGeometry for the case where all clips are rectangles, to work around a D2D geometry-intersection bug. r=bas
...
--HG--
extra : rebase_source : 72a21554ec37818e1b5ba4c36d03e4f81010c6a1
2012-08-10 23:18:36 +12:00
Ed Morley
10b5d6d4ac
Backout 5d77941eba28 (bug 772726), df597d36bcbb (bug 383026), c9c7e1b9aed9 (bug 779399) for failures in meter-native-style.html
2012-08-10 14:50:43 +01:00
Robert O'Callahan
290e486f0b
Bug 772726. Part 3: Optimize DrawTargetD2D::GetClippedGeometry for the case where all clips are rectangles, to work around a D2D geometry-intersection bug. r=bas
...
--HG--
extra : rebase_source : 51734958e7100ee4a5fc96d973905834d69345f0
2012-08-10 23:18:36 +12:00
Nicholas Cameron
a6e991fc2f
Bug 781056; remove extraneous save/restores from DrawTargetCairo. r=bas
...
--HG--
extra : rebase_source : d3c9d94d3263c50bc0d4bae42b6d58f3f5b07a0b
2012-08-10 06:45:03 +12:00
Nicholas Cameron
36ea565564
Bug 779401; Teach HelpersCairo.h about 565 image formats. r=bas
...
--HG--
extra : rebase_source : eef05ab0fa1a8094104f272786ba7a3714c27dd5
2012-08-09 08:17:04 +12:00
Nicholas Cameron
f94f86a078
Bug 780392; Make ScaledFontDWrite inherit from ScaledFontBase. r=bas
...
--HG--
extra : rebase_source : 83ffee7d64f1ecdfa15b8cf96024c27fdf00c29b
2012-08-09 08:17:04 +12:00
Sergey Glushchenko
970c894833
Bug 776429: Unify scattered M_PI definitions into mfbt/Constants.h r=dRdR
2012-08-06 13:32:11 -07:00
Mike Hommey
6173fa297f
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Mike Hommey
4e998b1d36
Backout changeset 2ef51674316a (bug 774032 bonus) for various Mochitest bustages on a CLOSED TREE
2012-08-04 10:38:41 +02:00
Mike Hommey
17fb6cad2d
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 08:48:56 +02:00
Matt Woodrow
452cca761a
Bug 778036 - Add Has function to gfx::UserData and use it in Layers to correctly check for existance of user data. r=roc
2012-08-03 17:38:44 -07:00
Andrew McCreight
9d50b26b4e
Bug 724666 - Remove debugging printfs. r=bgirard
2012-08-01 08:51:31 -07:00
Jeff Muizelaar
d8f1a99c9c
Bug 778307. Don't shadow mFormat in DrawTargetCG. r=bgirard
...
This was causing problems with Azure content.
2012-07-31 12:28:03 -07:00
Benoit Girard
be1e81f90f
Bug 724666 - Part 2: Add CGIOSurfaceContext to azure. r=jmuizelaar
2012-07-31 11:17:43 -04:00
Benoit Girard
d38270d473
Bug 724666 - Part 1: Refactor nsCoreAnimation support into azure QuartzSupport. r=jmuizelaar
...
--HG--
rename : gfx/thebes/nsIOSurface.h => gfx/2d/MacIOSurface.h
rename : gfx/thebes/nsCoreAnimationSupport.mm => gfx/2d/QuartzSupport.mm
2012-07-31 11:11:57 -04:00
Bas Schouten
69cb6d9312
Bug 777700 - Part 1: Add a way to check validity of SourceSurfaces. r=jrmuizel
2012-07-28 02:33:08 +02:00
Benjamin Peterson
627bc81505
Backout 46b27e913ac9 for windows failures
2012-07-27 21:46:51 -07:00
Bas Schouten
561e8409f6
Bug 777700 - Part 1: Add a way to check validity of SourceSurfaces. r=jrmuizel
2012-07-28 02:33:08 +02:00
Oleg Romashin
5fcecd68ea
Bug 778195 - Add string.h to cover memcpy include and fix build error. r=nrc
2012-07-27 17:51:53 -04:00
Nicolas Silva
062884e98d
Bug 775226 - Support CreateDrawTargetForData with Azure's CoreGraphics backend, r=jrmuizel
2012-07-26 14:06:23 -04:00
Nicholas Cameron
97d6423dfa
Bug 764125; sort out preferred and fallback Azure backends for all platforms (gfxPlatform). r=Bas
2012-07-25 12:45:58 +12:00
Nicholas Cameron
f8c9e7b40f
Bug 748116; refactor DrawTargetCairo::GfxPatternForPattern. r=roc
2012-07-24 22:18:40 +12:00
Nicholas Cameron
7431825d6f
Bug 748116; Make DrawTargetCairo::DrawSurface work with non-Cairo source surfaces. r=roc
2012-07-24 22:18:39 +12:00
Nicholas Cameron
954df98aec
Bug 746883; tidying up some nits I found along the way; r=gw280
2012-04-26 10:04:35 +12:00
Anthony Jones
261a342f09
Bug 761895; Fixed Azure/Cairo canvas font support on gtk and android. r=karl
2012-07-24 22:18:39 +12:00
Anthony Jones
dad0321ea6
Bug 764125; Fix canvas 2d.drawImage.5arg and 2d.drawImage.9arg surface scaling tests. r=karl
2012-07-24 22:18:38 +12:00
Nicholas Cameron
bf79e5be56
Bug 764125; Fix a bug where a path with a transform is re-used. r=Bas
2012-07-24 22:18:38 +12:00
Nicholas Cameron
eb3741be70
Bug 764125; drawing changes to DrawTargetCairo; r=jrmuizel
2012-07-24 22:18:38 +12:00
Nicholas Cameron
07975bdcdb
Bug 764125; store a reference to the backing surface in DrawTargetCairo; r=Bas
2012-07-24 22:18:38 +12:00
Nicholas Cameron
a49759020b
Bug 764125; pass around the size of a gfxASurface when creating a DrawTarget. r=Bas
2012-07-24 22:18:38 +12:00
Nicholas Cameron
5bf405f496
Bug 764125; small Windows Cairo text fix. r=Bas
2012-07-24 22:18:38 +12:00
Anthony Jones
3671742e95
Bug 764125; implement DrawTargetCairo::CopySurface; r=Bas
2012-07-24 22:18:37 +12:00
Nicholas Cameron
34ba57113f
Back out bug 746883, bug 764125, bug 761895, bug 746883, bug 748116
2012-07-26 18:48:24 +12:00
Nicholas Cameron
ffbb6350b0
Bug 764125; sort out preferred and fallback Azure backends for all platforms (gfxPlatform). r=Bas
2012-07-25 12:45:58 +12:00
Nicholas Cameron
eebed30e10
Bug 748116; refactor DrawTargetCairo::GfxPatternForPattern. r=roc
2012-07-24 22:18:40 +12:00
Nicholas Cameron
3d56c18a45
Bug 748116; Make DrawTargetCairo::DrawSurface work with non-Cairo source surfaces. r=roc
2012-07-24 22:18:39 +12:00
Nicholas Cameron
fcb7df5c02
Bug 746883; tidying up some nits I found along the way; r=gw280
2012-04-26 10:04:35 +12:00
Anthony Jones
b155e44e9a
Bug 761895; Fixed Azure/Cairo canvas font support on gtk and android. r=karl
2012-07-24 22:18:39 +12:00
Anthony Jones
664ebc17a4
Bug 764125; Fix canvas 2d.drawImage.5arg and 2d.drawImage.9arg surface scaling tests. r=karl
2012-07-24 22:18:38 +12:00
Nicholas Cameron
89502e5fd1
Bug 764125; Fix a bug where a path with a transform is re-used. r=Bas
2012-07-24 22:18:38 +12:00
Nicholas Cameron
ab429c266e
Bug 764125; drawing changes to DrawTargetCairo; r=jrmuizel
2012-07-24 22:18:38 +12:00
Nicholas Cameron
8a6c2893df
Bug 764125; store a reference to the backing surface in DrawTargetCairo; r=Bas
2012-07-24 22:18:38 +12:00
Nicholas Cameron
8c14bcf660
Bug 764125; pass around the size of a gfxASurface when creating a DrawTarget. r=Bas
2012-07-24 22:18:38 +12:00
Nicholas Cameron
9805be7dce
Bug 764125; small Windows Cairo text fix. r=Bas
2012-07-24 22:18:38 +12:00
Anthony Jones
e6cdf6cdfe
Bug 764125; implement DrawTargetCairo::CopySurface; r=Bas
2012-07-24 22:18:37 +12:00
George Wright
03132e7beb
Bug 774728 - Do a null pointer check before using any gradient shaders in DrawTargetSkia r=mattwoodrow
...
--HG--
extra : rebase_source : 7db2d28692a3cd9cccbd542ca752950f5df90511
2012-07-25 20:11:17 -04:00
Matt Woodrow
31acc195c6
Bug 741682 - Use nsRegion::ScaleToInsidePixels when computing opaque regions of layers. r=roc
2012-07-23 15:00:36 +12:00
Matt Woodrow
2865678172
Bug 741682 - Add ScaleToInsidePixels and ScaleToNearestPixels to nsRegion. r=roc
2012-07-23 15:00:36 +12:00
Bas Schouten
60391b14e8
Bug 772726. Part 4: Fix SampleTextTexturesPS(Masked) shaders to premultiply TextColor. r=jrmuizel
...
--HG--
extra : rebase_source : 76781e7f69db6d47b3ecf8d8c37bac284133c6be
2012-07-18 01:02:08 -04:00
Matt Woodrow
d857e4f101
Bug 539356 - Part 1 - Allow LayerManagers to have multiple user data objects. r=roc
2012-07-17 13:03:50 -04:00
Bas Schouten
0e378470a6
Bug 770033 - Part 3: Deal with extend modes for D2D partial bitmap uploads. r=jrmuizel
2012-07-04 20:23:16 +02:00
Bas Schouten
494bb3cd77
Bug 770033 - Part 2: Add order test for horizontal halfscaling code. r=jrmuizel
2012-07-04 20:21:27 +02:00
Bas Schouten
f7db81b01c
Bug 770033 - Part 1: Fix shuffling bug in horizontal halfscaling code. r=jrmuizel
2012-07-04 20:21:12 +02:00
Ehsan Akhgari
06cc96c737
Backout changeset 89f35d1fea6c (bug 539356) because of performance and correctness regressions
2012-07-03 20:32:33 -04:00
Matt Woodrow
62341f0c3b
Bug 539356 - Part 1 - Allow LayerManagers to have multiple user data objects. r=roc
2012-06-30 15:06:09 +12:00
Bas Schouten
d8b7729753
Bug 765845: Reduce calling frequency of SetTextRenderingParams. r=jrmuizel
2012-06-26 02:59:18 +02:00
Jeff Muizelaar
a543ac8b3f
Bug 764594. Remove some unneeded calls in the Azure CG backend. r=bgirard
...
Some old code that was copy-n-pasted but never used.
2012-06-12 21:15:32 -07:00
Bas Schouten
e83aeac3ec
Bug 738189 - Followup: Properly move functions into #ifdef. r=bustage
2012-06-21 00:32:52 +02:00
Bas Schouten
64457eec20
Bug 761397 - Part 1: Cache ID2D1Layers for D2D Azure backend. r=jrmuizel
2012-06-20 23:41:16 +02:00
Bas Schouten
5dad9a7e0a
Bug 738189: Add memory reporting for Azure VRAM usage. r=jrmuizel
2012-06-20 23:41:16 +02:00
Nicholas Cameron
aa4bc97d31
Bug 761890 (was 746883); bug fixing Skia fonts; r=gw280
2012-04-26 10:04:35 +12:00
Jeff Muizelaar
8006b61cd7
Bug 763120. Avoid using vm_copy when snapshoting. r=bgirard
...
CGBitmapContextCreateImage uses vm_copy which ends up being
slower than memcpy if we actually need to make a copy. Further,
since it does the copy by pagefaulting, it's shows up poorly
on profiles. Since, we already manually track modification we
don't really have need for the copy-on-write semantics. This
change ensures that we'll only use memcpy when we need to make
a copy.
--HG--
extra : rebase_source : 93afb1423605a13cb4c76a6c389e1989aa814ae0
2012-06-11 16:21:55 -07:00
Bas Schouten
7c405d7b37
Bug 758980: Assume DirectWrite is buggy when it returns empty alpha texture bounds. r=jrmuizel
2012-06-13 10:42:23 +02:00
Matt Brubeck
8aad0a2626
Back out bug 761890, bug 746896, and bug 759036 because of reftest failures
...
--HG--
extra : rebase_source : b5bdad8a69eab8e9ba35d21637c0bbcb18bce703
2012-06-11 22:50:31 -07:00
Nicholas Cameron
0826e53b52
Bug 761890 (was 746883); bug fixing Skia fonts; r=gw280
...
--HG--
extra : rebase_source : 89b3501dad46f0c1284107afe906869548623992
2012-04-26 10:04:35 +12:00
Ed Morley
a73fc227f9
Backout 61fd66629c4f, 7c8121f8d3af & 2a2e9cf8fd41 (bug 539356), e31a5e6545d3 (bug 761884), 85fa80bd9792, a284ccb25b83, 2865904db9fc, 34e07b09c426, e9b3d41e0360, cef00ebcd6c8, f943b729ac14 & 783f298401b6 (bug 539356), 330a086f1570 (bug 741682), d80219c8842c (bug 739671), e8c96b4fd4da, 313af486e68d, 0adc41ff56dc, 0cd288a38085, f1d43208825c, 4859876972f3, eec8ef3ebe48, f7f29fcd1845, 6079b229d306, f23c3a7e7ce0, 9824458a41e2 & 6748b5496059 (bug 539356) for mochitest-4 orange & talos regressions on multiple platforms
2012-06-11 10:08:32 +01:00
Matt Woodrow
fb73b4d31a
Bug 539356 - Part 1 - Allow LayerManagers to have multiple user data objects. r=roc
2012-06-11 16:44:08 +12:00
George Wright
c9b3bda634
Bug 761201 - Trigger Skia's RGB565 blitter fast path by using SrcOver instead of Src. r=jrmuizel
2012-05-31 14:56:33 -04:00
Jacek Caban
b1497ba19b
Bug 756996 - GCC warnings in gfx/2d r=bas
2012-06-04 13:02:02 +02:00
Bas Schouten
b2f14f0253
Bug 736460: Deal with gradient stops in a single position. r=jrmuizel
2012-06-02 00:00:28 +02:00
Ed Morley
b25cf7619c
Backout fa3fe2aff1f5 (bug 756996) for bustage
2012-05-31 15:46:38 +01:00
Jacek Caban
1ff3736ac2
Bug 756996 - GCC warnings in gfx/2d r=bas
2012-05-31 16:09:20 +02:00
Takanori MATSUURA
4e1026d682
Bug 751521 - Separate pixman detection from cairo. r=glandium
2012-05-26 08:44:00 +02:00
Nicholas Cameron
c6a97ccb55
Bug 752380. Refactor gfxFont out of Azure. r=Bas
2012-05-17 10:30:10 +12:00
Jacek Caban
be0488a3e1
Bug 756430 - Missing return statement in DrawTargetD2D::FillGlyphsManual r=bas
...
--HG--
rename : toolkit/content/tests/widgets/test_menubar_gtk.xul => toolkit/content/tests/widgets/test_menubar.xul
rename : toolkit/content/tests/widgets/window_menubar_gtk.xul => toolkit/content/tests/widgets/window_menubar.xul
extra : rebase_source : 1f231cb0a881091853319a9e311405182a4e07f1
2012-05-21 11:03:06 +02:00
Bas Schouten
94bed9e6d8
Bug 757329: Support changing transforms while emitting path instructions. r=roc
2012-05-22 07:29:19 +02:00
Bas Schouten
d27e8a8a34
Bug 756767 - Part 1: Simplify SourceSurfaceD2D and add DataSourceSurface support. r=jrmuizel
2012-05-21 17:27:30 +02:00
Bas Schouten
2c927c7673
Bug 756454: User 2D texture for gradient realizations. r=jrmuizel
2012-05-21 17:24:05 +02:00
Bas Schouten
efff313ab0
Bug 756424: Properly set the rasterizer for FillGlyphsManual. r=jrmuizel
2012-05-21 17:24:00 +02:00
Ed Morley
4e2da8437f
Backout a693c64dc64e (bug 715768), c520957cc03f & 713ed280a80d (bug 756767), 20cb25a8b8ba (bug 756454), f3b5ad2320cb (bug 756424) for crashes
2012-05-21 18:56:46 +01:00
Bas Schouten
27f9d6c065
Bug 756767 - Part 1: Simplify SourceSurfaceD2D and add DataSourceSurface support. r=jrmuizel
2012-05-21 17:27:30 +02:00
Bas Schouten
4174e69824
Bug 756454: User 2D texture for gradient realizations. r=jrmuizel
2012-05-21 17:24:05 +02:00
Bas Schouten
e6b26d6359
Bug 756424: Properly set the rasterizer for FillGlyphsManual. r=jrmuizel
2012-05-21 17:24:00 +02:00
Jeff Muizelaar
b1181a6cd4
Bug 752341. Avoid using CGContextSetTextMatrix. r=bgirard
...
CGContextSetTextMatrix has behaviour that depends on the text
drawing mode. We want consistency so avoid CGContextSetTextMatrix.
--HG--
extra : rebase_source : c6e46252823586d947ec1dd19db7df980dee23f8
2012-05-21 10:22:11 -04:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ryan VanderMeulen
2bc5761600
Merge m-c to inbound.
2012-05-17 23:23:57 -04:00
Makoto Kato
ba1e39b53d
Bug 756010 - Don't build ImageScalingSSE2.cpp on VC2005 due to no _mm_castsi128_ps. r=bas
2012-05-18 11:17:26 +09:00
Nicholas Cameron
4841e973e1
Bug 756007 - Fix path invariant for Azure/Cairo push/pop clip. r=joe
2012-05-17 17:54:22 -04:00
Bas Schouten
a0e90dc55b
Bug 717393 - Followup: Properly regenerate shader headers. r=autogenerated
2012-05-17 02:33:01 +02:00
Makoto Kato
91b8a5cff0
Bug 753772 - [VC8 (SeaMonkey)] gfx/2d/Factory.cpp compilation fails since bug 732985 landed. r=bas
2012-05-16 17:40:51 +09:00
Bas Schouten
14cca23918
Bug 755591: Properly initialize mPermitSubpixelAA. r=jrmuizel
2012-05-16 03:34:18 +02:00
Benoit Jacob
17b0e7f92d
Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
...
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Bas Schouten
842825c810
Bug 717393 - Part 4: Add code for drawing subpixel AA to transparent surfaces. r=jrmuizel
2012-05-15 16:57:51 +02:00
Bas Schouten
e36b44e8c2
Bug 717393 - Part 3: Cache ClippedGeometry for D2D Azure backend. r=jrmuizel
2012-05-15 16:57:51 +02:00
Bas Schouten
13c1257585
Bug 717393 - Part 2: Refactor clip management and add ClippedMask texture. r=jrmuizel
2012-05-15 16:57:51 +02:00
Bas Schouten
98d653e97b
Bug 717393 - Part 1: Add helper for creating DWriteGlyphRuns. r=jrmuizel
2012-05-15 16:57:51 +02:00
Bas Schouten
870387f59e
Bug 754751: Fix GetClippedGeometry to work with rectangular clips. r=jrmuizel
2012-05-15 16:57:51 +02:00
Honza Bambas
4ce304fb77
Bug 753790 - define hypotf as _hypotf in gfx/2d/Tools.h when building with MSCV9 or older+include emmintrin.h in ImageScalingSSE2.cpp, r=bas
2012-05-15 16:44:25 +02:00
David Zbarsky
8a77bd6592
Bug 754138 - Prevent Rect.h warning spam. r=roc
2012-05-14 19:01:05 -04:00
Ed Morley
8b2dbc3dca
Backout 345ae68f15f4, b3b40121ac8d, 0d18b7a246d7, 9dbb6064ab58, dee9d7fa8eb6, 63eec6bfa948, 323c6be7cfe8 & f4aac7523a48 (bug 732875) for compilation failures
2012-05-14 21:05:24 +01:00
Benoit Jacob
8fbc0a34da
Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
...
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Robert O'Callahan
2ec4edf80b
Bug 681192. Part 0.1: Add BaseRect::ClampPoint. r=bas
...
--HG--
extra : rebase_source : 32e086725d450d8867a4b5978cd76a2f03609572
2012-05-10 17:24:17 +12:00
Bas Schouten
f0e0d55139
Bug 732985 - Part 2: Use ImageScaler for large images. r=jrmuizel
2012-05-10 06:31:14 +02:00
Bas Schouten
9cda15f84a
Bug 732985 - Part 1: Add image scaling code to Azure. r=jrmuizel
2012-05-10 06:31:14 +02:00
Nicholas Cameron
dafb189f11
Bug 747822 - Implement push/pop clip for Cairo/Azure. r=joe
2012-04-26 10:04:36 +12:00
Bas Schouten
ffa6f985a1
Backout bug 732985(f453201647a1,ca29dc47986a,f0ca5eb320c4,94ffc045ba89).
2012-05-08 04:58:37 +02:00
Bas Schouten
e96ac887c6
Bug 732985 - Followup 2: Only compile HasCPUIDBit when using SSE2. r=bustage
2012-05-08 04:52:06 +02:00
Bas Schouten
3e790bfe78
Bug 732985 - Followup: Fix include order in gfx/2d Makefile. r=bustage
2012-05-08 04:40:13 +02:00
Bas Schouten
3c6147ff53
Bug 732985 - Part 2: Use ImageScaler for large images. r=jrmuizel
2012-05-08 04:31:30 +02:00
Bas Schouten
0816eab785
Bug 732985 - Part 1: Add image scaling code to Azure. r=jrmuizel
2012-05-08 04:31:30 +02:00
Bas Schouten
d79c59f9a6
Bug 738413 - Followup: Move ToIntRect to a Rect class method. r=roc
2012-05-03 23:41:37 +02:00
Bas Schouten
c8b3f6e810
Bug 738413 - Part 1: Add OpaqueRect API to Azure DrawTargets. r=roc
2012-05-03 23:31:02 +02:00
Bas Schouten
773069e08d
Bug 751463: Remove Azure from XUL. r=khuey
2012-05-03 21:21:52 +02:00
Jeff Muizelaar
05f4d55e08
Bug 743499. Handle negative sizes in CG backend. r=bas, a=akeybl
...
I didn't realize Sizes could be negative when originally writing this code.
2012-04-23 17:09:57 -04:00
Bas Schouten
173372bc56
Bug 745054 - Part 2: Allow factory construction of Skia drawtargets on all platforms. r=mattwoodrow
2012-04-13 04:10:22 +02:00
Bas Schouten
db05f2fa78
Bug 745054 - Part 1: Fix Skia compilation on windows. r=mattwoodrow
2012-04-13 04:10:22 +02:00
Bas Schouten
77682b2ea7
Bug 742566: Add stand-alone unit test framework to Azure. r=jrmuizel
2012-04-12 02:03:07 +02:00
Bas Schouten
8da189c2ce
Bug 719776 - Part 5: Fix MSVC build files for Azure. r=jrmuizel
2012-04-12 02:03:07 +02:00
Bas Schouten
e8a2e50661
Bug 719776 - Part 4: Do not depend upon mozalloc inside Azure. r=jrmuizel
2012-04-12 02:03:07 +02:00
Bas Schouten
b056c07df5
Bug 719776 - Part 3: Only include ScaledFontWin when using Skia. r=jrmuizel
2012-04-12 02:03:07 +02:00
Matt Woodrow
f05628f8b5
Bug 719776: Kill some external dependencies inside Azure code. r=Bas
2012-03-05 13:12:15 +13:00
Ehsan Akhgari
55f5039ade
Backed out changeset 690cba3bb817 (bug 719776) because of build failures
2012-04-03 17:49:59 -04:00
Matt Woodrow
b07592468b
Bug 719776: Kill some external dependencies inside Azure code. r=Bas
2012-03-05 13:12:15 +13:00
Bas Schouten
f7962e5181
Bug 740815 - Part 1: Add DrawTargetDual to Azure for Component Alpha drawing. r=jrmuizel
2012-04-03 22:25:52 +02:00
Matt Woodrow
e1aae0e872
Bug 740560 - [Azure] Add Factory::CreateDrawTargetForData. r=Bas,gw280
2012-04-02 15:15:08 -04:00
Joe Drew
b118c666da
Bug 739969 - Port patch from bug 633627 to use fixed point division instead of integer. r=jmuizelaar
2012-04-01 15:16:33 -04:00
George Wright
e270db628e
Bug 740963 - [Skia] Handle non-multiple-of-two dash lengths in HelpersSkia::StrokeOptionsToPaint(). r=jrmuizel
2012-03-30 17:36:34 -04:00
Bas Schouten
283bb94230
Bug 738691 - Part 1: Add CopyGlyphsToBuilder API. r=jrmuizel
2012-03-29 20:53:44 +02:00
Jeff Muizelaar
345836408c
Bug 738919. Accept dash arrays of length > 0. r=mwoodrow
...
I copied a bug from the skia code here. This fixes the CG
version and puts a note into the skia code.
2012-03-26 22:50:08 -04:00
Bas Schouten
ef709193e2
Bug 736134 - Part 1: Add GlyphRenderingOptions API to Azure. r=jrmuizel
2012-03-19 19:20:17 +00:00
Bas Schouten
518eac5956
Bug 717302: Make sure to mark transform dirty after resetting to push clip. r=jrmuizel
2012-03-15 20:26:10 +00:00
Jonathan Watt
931f6fc216
Bug 729562 - Make the SVG paint methods take an nsRenderingContext, and kill nsSVGRenderState. r=Bas.
2012-03-02 08:28:59 +00:00
Justin Lebar
b682bbe4a5
Bug 731789 - Rename mfbt/StdInt.h to mfbt/StandardInteger.h, so stdint types work from cpp files inside mfbt. r=waldo
2012-02-29 22:56:43 -05:00
Jeff Muizelaar
379c5b5aab
Bug 731117. Bound the size of CG surfaces to match cairo. r=bas
...
This fixes crashes that can happen when we try to create
an image surface from a quartz surface larger than the maximum
size supported by image surfaces.
--HG--
extra : rebase_source : 6ef9c66a91068f75ddef90a3453a7360dd91fa78
2012-02-29 21:30:11 -05:00
Jeff Muizelaar
7edc099e21
Bug 729850. CG: Get the point order correct when transforming a path. r=mwoodrow
2012-02-25 00:35:41 -05:00
Jeff Muizelaar
617ed39964
Bug 728028. CG: Avoid double transforming filled gradients. r=mwoodrow
...
When we fixed transformed clips it caused us to double transform gradients. We
fix this by avoiding ::PushClip when drawing gradients. This has the advantage
of saving a save and restore pair and it makes Fill() more closely match
Stroke()
2012-02-25 00:35:39 -05:00
Jeff Muizelaar
11b2338e5c
Bug 729145. Don't ignore curves when we don't have a current point. r=mwoodrow
...
This was a copy & paste typo and is caught by
http://philip.html5.org/tests/canvas/suite/tests/2d.path.quadraticCurveTo.ensuresubpath.2.html
which is not in our test suite.
--HG--
extra : rebase_source : dc77d4bfa4da0d79e97da1e10e72bbd77223e8fa
2012-02-22 17:06:02 -05:00
Bas Schouten
39993f3d42
Bug 726951: Correctly use height to normalize mask v-texture coordinate. r=jrmuizel
2012-02-16 04:08:08 +01:00
Jeff Muizelaar
0fb7cea14a
Bug 726764. Avoid leaking CGPaths when getting text paths. r=joe
2012-02-14 17:59:11 -05:00
George Wright
ffea6b6474
Bug 723110. Refactor font code to lay the groundwork for having a ScaledFontFreetype class. r=jrmuizel
2012-02-13 14:58:01 -05:00
Nathan Froyd
32eea886e4
Bug 724275 - fix -Wswitch warnings; r=jrmuizel
2012-02-04 07:22:47 -05:00
Rafael Ávila de Espíndola
674b523321
Bug 723122 - fix clang build. r=jmuizelaar.
2012-02-02 10:02:06 +01:00
Ed Morley
d5d841cf5b
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-01-31 10:52:29 +00:00
Jeff Muizelaar
25940efe7a
Bug 720482. Make CG snapshots work more like the other backends. r=joe,mattwoodrow,bas
...
This has big improvement in the performance of GetImageData() because
we make the snapshot lazily instead of using the vm_copy() method
of CGBitmapContextCreateImage()
2012-01-31 01:46:54 -05:00
Bas Schouten
391307a484
Bug 718730: Allow creating a bitmap from just an A8 texture. r=jrmuizel
2012-01-31 06:15:23 +01:00
Bas Schouten
79584f02fc
Bug 719136: Don't attempt to upload when there's nothing to upload. r=jrmuizel
2012-01-31 06:15:23 +01:00
Marco Castelluccio
9ee802a28e
Bug 702158 - [Skia] Get Skia backend working on Linux, part 2
2012-01-31 10:24:27 +09:00
Jeff Muizelaar
2fe0d32140
Bug 722444. Initialize mData for 0 sized surfaces. r=bgirard
...
This avoids an invalid free() during destruction found with the
online canvas test suite.
--HG--
extra : rebase_source : e1aeff36e557b045fbaff38d7b46fdf91956ae49
2012-01-30 11:17:42 -05:00
Benoit Girard
53b76bb348
Bug 722164 - Set Azure Quartz Canvas image interpolation to low for better performance. r=jmuizelaar
2012-01-29 17:08:58 -05:00
George Wright
5fd307b7b1
Bug 721855 - Honour the gfx.canvas.azure.prefer-skia pref on OS X, r=joe
...
--HG--
extra : rebase_source : 93aba135b44e5e0f944a8bf604b77a5b414185cf
2012-01-27 14:38:00 -08:00
Joe Drew
f54df1b8ab
Bug 719631 - Support creating offscreen DrawTargets for the Cairo backend. r=jrmuizel
...
--HG--
extra : rebase_source : 6103e88ec0de91c16aa36829db1e8c988920bcfe
2012-01-27 13:09:20 -05:00
Joe Drew
93916b3c5b
Bug 719627 - Merge the functionality of ScaledFontCairo into ScaledFontBase, as is its purpose. r=jrmuizel
...
--HG--
extra : rebase_source : df21f1a6e702de1e0a7f52a8a75203078c8be423
2012-01-27 13:08:46 -05:00
Jeff Muizelaar
bd5a176210
Bug 720721. Properly transform the clip path in DrawTargetCG. r=mwoodrow
...
This is a little tricky because we can't put a save/restore pair
around the operation because then we'll loose the clip.
2012-01-24 15:14:50 -05:00
Jeff Muizelaar
8bc10894df
Bug 719429. Fix canvas data leak in DrawTargetCG. r=ajuma
...
I forgot to fix this before landing and refound it using
http://s3.zazub.com/games/circle_game/index.html
2012-01-19 10:33:35 -05:00
Matt Woodrow
5cb9e8e2e9
Bug 716415 - Enable soft clipping with Skia in Azure. r=gwright
2012-01-19 17:48:35 +13:00
Matt Woodrow
d642e4c4c4
Bug 716415 - Update Azure for Skia API changes. r=gwright
2012-01-19 17:48:35 +13:00
Matt Woodrow
d37ba24f58
Bug 716802 - Implement new 2D API functions. r=gwright
2012-01-19 17:48:33 +13:00
Jeff Muizelaar
8960edcfc7
Bug 717921. Add UserData to DrawTarget. r=bas
...
* * *
Bug 717921. Fix bustage about moz_xrealloc.
2012-01-13 09:47:58 -05:00
Jeff Muizelaar
80095e3007
Bug 692879. Implement CoreGraphics Azure backend. r=mwoodrow
2012-01-09 13:54:44 -05:00
Matt Brubeck
0dc4c17288
Back out efd165428f08 to 4a79fefefa28 (bug 580786, bug 716639, bug 692879, bug 717921) because of reftest error
2012-01-17 10:08:38 -08:00
Jeff Muizelaar
2a24d649f4
Bug 717921. Add UserData to DrawTarget. r=bas
...
* * *
Bug 717921. Fix bustage about moz_xrealloc.
--HG--
extra : rebase_source : 62d38e561d1e64c725587b1de4d1ae609b828557
2012-01-13 09:47:58 -05:00
Jeff Muizelaar
b2072dc211
Bug 692879. Implement CoreGraphics Azure backend. r=mwoodrow
...
--HG--
extra : rebase_source : 94f8c205e16e961b5407396c0d0d3b41067222dc
2012-01-09 13:54:44 -05:00
Joe Drew
cafbfddf58
Bug 473236 - Remove executable bits from ScaledFontSkia.*. r=jrmuizel DONTBUILD
2012-01-16 16:29:42 -05:00
Joe Drew
75e6f69da6
Bug 715513 - Implement text in the new 2D API's Cairo backend. r=jrmuizel
...
--HG--
extra : rebase_source : 75350d02ec31e60c356b1d9f05bf14b2b2dee9f4
2012-01-10 13:26:59 -05:00
Joe Drew
2a87535698
Bug 715652 - Jeff's review requested changes which were easier to implement on top of path support. r=jrmuizel
...
--HG--
extra : rebase_source : 1918afdd0ea2629169dff36353fdf01d66377e26
2012-01-09 17:19:11 -05:00
Joe Drew
200475920f
Bug 707848 - Implement paths in the 2D API's Cairo backend. r=jrmuizel
...
--HG--
extra : rebase_source : a127cd96d48077c02f32d64b89984995c02fc38b
2012-01-09 17:15:10 -05:00
Joe Drew
879f7f3954
Bug 715652 - Implement significantly more of the 2D API for the Cairo backend. r=jrmuizel
...
--HG--
extra : rebase_source : b23314691fef65db2518d3e738a66039e3c18909
2012-01-09 16:50:01 -05:00
Bas Schouten
419c357802
Bug 711063 - Part 1.5: Add operator to gfx::Matrix for size transformation. r=jrmuizel
2012-01-05 08:17:51 +01:00
Joe Drew
031c31b01f
Bug 715243 - Add the ability to use gfx logging on Matrix. r=Bas
2012-01-04 18:02:59 -05:00
Joe Drew
6636e5870d
Bug 705204 - Add mozilla::gfx::Matrix::operator!= and operator==. r=Bas
2012-01-04 18:02:59 -05:00
Joe Drew
2a86c4f308
Bug 705200 - Add mozilla::gfx::Matrix::IsIdentity(). r=Bas
2012-01-04 18:02:59 -05:00
Bas Schouten
9be9c0d565
Bug 702878: Extend gfx::2d API and D2D backend with new functionality. r=jrmuizel sr=roc
2011-12-28 06:56:11 +01:00
Phil Ringnalda
65d20c6b05
Back out 9c78b4872333 (bug 702878) for Win M1 crashes and reftest orange
2011-12-27 21:09:44 -08:00
Bas Schouten
c30eae6661
Bug 702878: Extend gfx::2d API and D2D backend with new functionality. r=jrmuizel sr=roc
2011-12-28 03:51:38 +01:00
Jacek Caban
2da79dd182
Bug 711385 - DrawTargetD2D.h fails to compile on mingw r=bas.schouten
2011-12-19 14:06:10 +01:00
Bas Schouten
b6b1c04f23
Bug 710509: Allow Skia to be easily switched off. r=khuey
2011-12-14 08:04:32 -05:00
Robert O'Callahan
b22b8717f9
Bug 705559. Part 4: Speed up AddDependencyOnSource by exiting early when we already have the dependency. r=bas
2011-12-09 22:53:14 +13:00
Robert O'Callahan
2e41d40aa7
Bug 705559. Part 3: Use mDirtyTransform to avoid unnecessary SetTransform calls. r=bas
2011-12-09 22:53:14 +13:00
Robert O'Callahan
bf1ffae6f7
Bug 705559. Part 2: Keep only one snapshot per DrawTargetD2D since all stored snapshots represent the 'last state'. Reuse that snapshot if the state hasn't changed since the last snapshot. Keep the last snapshot alive and make the snapshot's mDrawTarget weak instead. Change mDependingOnTargets/mDependentTargets to be hashsets instead of vectors. Remove SourceSurfaceD2DTarget::mIsCopy since the null-ness of mDrawTarget means the same thing. r=bas
2011-12-09 22:51:57 +13:00
Jeff Walden
91683ae3e3
Bug 704313 - Implement mozilla/StdInt.h. r=cjones
...
--HG--
extra : rebase_source : b221134fdfbde13a37a6ef621bba3ca183a46101
2011-11-22 17:42:57 -08:00
Robert O'Callahan
7d22b4bdb5
Bug 705173. Make mDependentTargets weak by tracking the inverse relationship in mDependingOnTargets. In Flush(), remove dependencies on other targets. r=bas
2011-11-25 15:12:40 +13:00
Kyle Huey
3d4b98aef2
Bug 703028: Fix obnoxious warning spew from gfx 2d stuff. r=me
2011-11-21 09:56:24 -05:00
Joe Drew
9faa8a6d27
Bug 685767 - Factor blurring out into its own class, and use it from gfxAlphaBoxBlur. r=mattwoodrow
2011-11-18 22:19:24 +13:00
Ed Morley
d06867876a
Merge last green changeset of mozilla-inbound to mozilla-central
2011-11-18 08:43:10 +00:00
Kyle Huey
053e18194b
Back out Bug 685767 for leaking.
2011-11-17 13:01:11 -05:00
Joe Drew
890d07996d
Bug 685767 - Factor blurring out into its own class, and use it from gfxAlphaBoxBlur. r=mattwoodrow
2011-11-14 17:29:28 +13:00
Joe Drew
303a252576
Bug 685326 - Move Round{,In,Out} from gfxRect to BaseRect, and make them no-ops on IntRect. r=Bas
2011-11-14 17:29:14 +13:00
Joe Drew
3b842a0678
Bug 685322 - Create explicit conversion constructors for Rect and Point taking IntRect and IntPoint. r=roc
2011-11-14 17:29:01 +13:00
Matt Brubeck
d9a00c1f73
Back out 5ddda2b25e28 and 3abfdb807a4f (bug 699258) for crashes in WinXP tests
2011-11-11 17:49:47 -08:00
Marco Castelluccio
f70d384da0
Bug 699258 - Part 2: [Skia] Get Skia backend working on Windows.
2011-11-11 15:51:00 -05:00
Matt Woodrow
0160cea238
Bug 703463 - Let SourceSurfaceSkia snapshots take ownership of DrawTargetSkia pixel data when it is destroyed. r=jrmuizel
2011-11-18 17:00:38 +13:00
Matt Woodrow
26c2668d5a
Bug 703428 - Handle invalid stroke options. r=jrmuizel
2011-11-18 17:00:38 +13:00
Matt Woodrow
c57d11d687
Bug 702515 - Implement GetStrokedBounds for Skia. r=jrmuizel
2011-11-18 17:00:38 +13:00
Matt Woodrow
01449931d4
Bug 702516 - Enable bilinear filtering for Skia. r=jrmuizel
2011-11-18 17:00:38 +13:00
Marco Castelluccio
65fe650cde
Bug 699258 - Get skia backend compiling and running on Windows. r=mattwoodrow
2011-11-18 17:00:37 +13:00
Matt Woodrow
02854b30fc
Bug 688368 - Make SourceSurfaceSkia data surfaces copy-on-write. r=joe
2011-11-03 08:55:03 +13:00
Matt Woodrow
b74458f46e
Bug 698318 - Share ArcToBezier code. r=jrmuizel
2011-11-03 08:55:03 +13:00
Matt Woodrow
bc5c7f13cf
Bug 688367 - Add Skia backend to Azure. r=jrmuizel
2011-11-03 08:55:03 +13:00
Bas Schouten
f8f9365920
Bug 691571: Properly mark Azure DrawTarget changed on all drawing operations. r=jrmuizel
2011-10-05 16:08:56 +02:00
Chris Coulson
4f70e5207f
Bug 690432: Fix "format not a string literal and no format arguments" error in gfx logging code. r=bas
2011-09-29 12:25:07 -07:00
Jeff Muizelaar
531d78716c
Bug 688902. 2d: Document Color as being non-premultiplied. r=bas
2011-09-24 11:51:29 -04:00
Atul Aggarwal
3360aa4b4c
Bug 679618 - Uninitialized memory in gfx/2d/SourceSurfaceCG.cpp; r=jmuizelaar
2011-08-31 13:16:12 +01:00
Matt Woodrow
f9d4b0bc4e
Bug 505115 - Part 15 - Add 4D Vectors, Quaternions and gfx3DMatrix functions. r=derf
2011-08-27 12:06:03 +12:00
Jacek Caban
0cbb10bd5d
Bug 670093 - gfx/2d fails to compile on mingw r=bas.schouten
2011-08-23 17:35:13 +02:00
Bas Schouten
773198cdeb
Bug 676753: Support subpixel-AA for the Azure D2D backend. r=jrmuizel
2011-08-16 04:37:00 +02:00
Matt Woodrow
9486dc0d39
Bug 505115 - Part 8a - Add BasePoint3D and gfxPoint3D. r=roc
2011-08-03 15:04:20 +12:00
Jeff Muizelaar
783a3434f0
Bug 674003. D2D: Fix premultiplying to only premultiply the color components. r=bjacob
...
We were accidentally squaring alpha this caused our surface to end up with superluminescent values.
Fix this by only multiplying alpha with the color componenets and not itself.
2011-07-28 16:31:28 -04:00