Commit Graph

1152 Commits

Author SHA1 Message Date
Chris Jones
e3d70da1dd Bug 1082997 - Add an option to explicitly disable skia-gpu and fix the build when it's disabled. r=mattwoodrow 2014-10-14 20:55:37 -07:00
Markus Stange
52c38f9c90 Bug 1078262 - Only use the fixed epsilon for the translation components. r=roc 2014-10-16 12:37:09 +02:00
Markus Stange
793ada8457 Bug 1076695 - Don't convert alpha surfaces into RGBA surfaces for FilterNodeTransformSoftware. r=Bas 2014-10-16 12:35:58 +02:00
Jonathan Watt
5393a15cd7 Bug 1083215, part 1 - Add a Moz2D helper for snapping lines to device pixels. r=mattwoodrow 2014-10-16 10:51:14 +01:00
Jonathan Watt
6a3ab8569c Bug 1082483, part 3 - Remove the temporary Matrix4x4::Translate/Scale methods. r=Bas 2014-10-16 10:51:13 +01:00
Jonathan Watt
b588fc89c4 Bug 1082483, part 1 - Rename Matrix4x4::Translate/Scale to Matrix4x4::PreTranslate/PreScale, leaving temporary inlines for the old names. r=Bas 2014-10-16 10:51:12 +01:00
Jonathan Watt
85fa838422 Bug 1082477, part 2 - Remove the Matrix4x4::TranslatePost/ScalePost methods. r=Bas 2014-10-16 10:51:12 +01:00
Michael Wu
b0975a6e33 Bug 1082745 - Avoid reoptimizing optimized SourceSurfaceCairos, r=bas 2014-10-15 17:13:14 -04:00
jdashg
aca62a5311 Bug 1066280 - Review fixes. - r=kamidphish,mattwoodrow 2014-10-08 13:04:19 -07:00
jdashg
4edee9ac4c Bug 1066280 - Fixes for SurfaceStream removal. - r=kamidphish,mattwoodrow 2014-10-07 21:16:14 -07:00
jdashg
a8a4d97f00 Bug 1066280 - Add TexClient for ShSurf. - r=kamidphish,mattwoodrow
From a7c09c0f17e19fd2254cb1d7a8ddd07b327151ad Mon Sep 17 00:00:00 2001
---
 gfx/2d/HelpersCairo.h                   |   2 +
 gfx/gl/GLContext.cpp                    |   3 +-
 gfx/gl/GLContext.h                      |   2 -
 gfx/gl/GLReadTexImageHelper.cpp         |  21 +--
 gfx/gl/GLReadTexImageHelper.h           |   6 +
 gfx/gl/GLScreenBuffer.h                 |   6 +-
 gfx/gl/ScopedGLHelpers.cpp              |  40 +++++
 gfx/gl/ScopedGLHelpers.h                |  26 ++-
 gfx/gl/SharedSurface.cpp                |  94 +++++++++++
 gfx/gl/SharedSurface.h                  |  19 +++
 gfx/gl/SharedSurfaceIO.h                |   4 +
 gfx/layers/CopyableCanvasLayer.cpp      |   3 +-
 gfx/layers/client/CanvasClient.cpp      | 276 +++++++++++++++++++++++++++++---
 gfx/layers/client/CanvasClient.h        |  34 ++++
 gfx/layers/client/ClientCanvasLayer.cpp |  21 ++-
 gfx/layers/client/ClientCanvasLayer.h   |   9 +-
 gfx/layers/client/TextureClient.cpp     |  35 ++++
 gfx/layers/client/TextureClient.h       |  85 +++++++++-
 gfx/layers/composite/TextureHost.cpp    | 131 ++++++++++++++-
 gfx/layers/composite/TextureHost.h      |  64 ++++++++
 gfx/layers/d3d10/CanvasLayerD3D10.cpp   |   5 +-
 gfx/layers/ipc/LayersSurfaces.ipdlh     |   5 +
 22 files changed, 828 insertions(+), 63 deletions(-)
2014-10-07 21:01:51 -07:00
Bas Schouten
7dcacf511a Bug 1078693: Correctly indicate validity of a SourceSurfaceD2D1 and deal with failed surface creation. r=jrmuizel 2014-10-10 17:04:26 +02:00
Ehsan Akhgari
fdf237f791 Bug 1079321 - Fix some more bad implicit constructors in gfx; r=jrmuizel 2014-09-24 09:16:53 -04:00
Jonathan Kew
db9717b303 Bug 902799 - Support textruns with vertical writing modes when drawing Canvas2D text. r=bas 2014-10-06 16:19:36 +01:00
Carsten "Tomcat" Book
9f05a55e58 merge mozilla-inbound to mozilla-central a=merge 2014-10-08 15:45:22 +02:00
Carsten "Tomcat" Book
6e220c15f2 Backed out changeset 88bb2a142e10 (bug 902799) on smaugs requests for regressions/crashes 2014-10-08 15:41:35 +02:00
Markus Stange
8a27e8adbc Bug 1076695 - Don't convert alpha surfaces into RGBA surfaces for FilterNodeTransformSoftware. r=Bas 2014-10-07 16:18:01 +02:00
Jonathan Watt
b323c6702b Bug 1077961, part 1 - Add various methods to Moz2D Matrix4x4 to allow us to minimize multiplications. r=Bas 2014-10-08 04:40:44 +01:00
Wes Kocher
3905dbdf57 Backed out changeset bb80c2b08bc0 (bug 1076695) for being the likely cause of the ASAN reftest permafail 2014-10-07 17:30:54 -07:00
Eric Rahm
18d59d1e8f Bug 1072605 - Just use PR_LOGGING to determine if logging is enabled. r=Bas 2014-10-06 09:33:06 -07:00
Jonathan Kew
0e2e1539b5 Bug 902799 - Support textruns with vertical writing modes when drawing Canvas2D text. r=bas 2014-10-06 16:19:36 +01:00
Ed Morley
4704b64337 Backed out changeset a3250bad7f3c (bug 902799) for build failures on Windows 2014-10-06 15:55:56 +01:00
Jonathan Kew
8b51ec974b Bug 902799 - Support textruns with vertical writing modes when drawing Canvas2D text. r=bas 2014-10-06 15:14:54 +01:00
Jonathan Watt
f3887b0340 Bug 1077544 - Add a GetBackendType() method to PathBuilder. r=Bas 2014-10-04 12:13:29 +01:00
Matt Woodrow
588349bc87 Bug 1075616 - Do partial uploads of non-D2D SourceSurfaces when we have a sampling rect. r=Bas
--HG--
extra : rebase_source : d08b5d3d515484ebc0f8a3be774d66c3b881a8d4
2014-09-24 13:23:15 -04:00
Matt Woodrow
97ffb8ffb7 Bug 1070722 - Remove DrawTargetCG::OptimizeSourceSurface since we don't get any benefit without quartz high-quality downscaling enabled. r=jrmuizel 2014-10-02 21:14:46 +13:00
Bas Schouten
91f5c62793 Bug 1075615: Pretranslate the pattern matrix when the pattern specifies a sampling rect. r=jrmuizel 2014-10-01 19:50:24 +02:00
Bas Schouten
8f2a3963e4 Bug 1075621: Support Direct2D 1.1 for ScaledFontDWrite::CopyGlyphsToBuilder. r=jrmuizel 2014-10-01 19:50:24 +02:00
Kartikaya Gupta
ed98d7c059 Bug 1074944 - Add Inverse functions on Matrix and Matrix4x4. r=Bas 2014-10-01 13:13:02 -04:00
Jonathan Watt
b7f8573ab0 Bug 1074974 - Make HelpersD2D.h's CreateStrokeStyleForOptions more robust. r=Bas 2014-09-30 18:07:49 +01:00
Matt Woodrow
0b55343996 Bug 1070722 - Use the imagelib high quality downscaler on OSX instead of the quartz one. r=jrmuizel 2014-09-26 15:05:14 -04:00
Jonathan Watt
7770d52343 Bug 1074128, part 2 - Rename Moz2D's AutoSaveTransform to AutoRestoreTransform. r=Bas 2014-09-29 18:26:56 +01:00
Jonathan Watt
45d2459587 Bug 1074128, part 1 - Add support to Moz2D's AutoSaveTransform for setting the DrawTarget lazily. r=Bas 2014-09-29 18:26:49 +01:00
Jonathan Watt
d33b953b3f Bug 1073960 - Mark DrawTarget::GetFormat() as const. r=Bas 2014-09-29 14:15:18 +01:00
Jonathan Watt
bfcf3238cc Bug 1073363, part 2 - Add a GeneralPattern class to Moz2D to solve the problem of writing general pattern creating functions. r=Bas 2014-09-29 14:12:06 +01:00
Daniel Holbert
fa4545efef Bug 1073716: Use C++ std::abs() instead of C abs(), for non-'int'-typed values, to address clang warning. r=ehsan 2014-09-28 09:59:46 -07:00
Wes Kocher
64e89669a6 Backed out changeset b5705fbed44f (bug 1070722) for reftest orange on a CLOSED TREE 2014-09-26 14:29:46 -07:00
Matt Woodrow
fa88132850 Bug 1070722 - Use the imagelib high quality downscaler on OSX instead of the quartz one. r=jrmuizel
--HG--
extra : rebase_source : 53c205cfc8af95be28d0878248b04e9872910651
2014-09-26 15:05:14 -04:00
Markus Stange
b5ca8fb0bb Bug 983241 - Allow filterNodeSoftware->SetInput(*, nullptr) in order to drop reference to input surface / filter. r=Bas 2014-09-25 15:19:28 -04:00
Markus Stange
bc25984738 Bug 983574 - When setting a SourceSurface input on a FilterNodeD2D1, delay the conversion to ID2D1Image until the actual DrawFilter call. r=Bas 2014-09-25 15:18:29 -04:00
Jim Chen
cde51fcc7b Bug 1067018 - Make sure calloc/malloc/free usages match in Tools.h; r=jwatt 2014-09-25 13:08:23 -04:00
Mason Chang
010cc23678 Bug 1056340 - Clip viewport fixed position overflow to scroll frame. r=roc 2014-09-23 09:44:00 -04:00
Botond Ballo
c6607c01f3 Bug 1062483 - Update signature of gfx::Log::operator<<(BasePoint) to include BasePoint's third template parameter. r=kats
--HG--
extra : rebase_source : 95938ee0eef4d042ac8218187b68dbf159b2e91d
2014-09-22 16:53:04 -04:00
Botond Ballo
41ae723e4b Bug 1071673 - Remove nsDebug.h include from gfx/2d/Logging.h. rs=Bas 2014-09-23 12:37:22 -04:00
Nicolas Silva
ab23cc4fba Bug 1070018 - Log HRESULT error codes as hexadecimal values rather than signed integers. r=Bas 2014-09-23 11:35:39 -04:00
Bas Schouten
64bc1a2be3 Bug 1071045: Report error codes and size/format information to D2D error reporting. r=nical 2014-09-22 19:33:04 +00:00
Bas Schouten
16f8944fa4 Bug 1069592: Annotate several more Direct2D errors. r=jrmuizel 2014-09-19 00:01:25 +02:00
Bas Schouten
2bd09f0166 Bug 1069584: Bail if a cairo surface is in an invalid state. r=jrmuizel 2014-09-19 00:01:24 +02:00
Ryan VanderMeulen
6763d0eb04 Backed out changeset 0cc9fcdca191 (bug 1068195) for Windows crashtest asserts.
CLOSED TREE
2014-09-17 20:47:35 -04:00
Bas Schouten
9bd3f60f10 Bug 1068613 - Addendum 2: Fix bustage due to stray character. r=bustage on a CLOSED TREE 2014-09-18 00:35:48 +02:00
Ehsan Akhgari
3e481f2909 Bug 1068195 - Fix an invalid MOZ_ASSERT in moz2d code, asserting the value of a constant string pointer; r=jrmuizel 2014-09-17 17:54:43 -04:00
Bas Schouten
17f1ccc927 Bug 1068613 - Part 4: Log failures in CairoCreateSimilar. r=jrmuizel 2014-09-17 23:23:09 +02:00
Nicolas Silva
1d405a8655 Bug 1068613 - Part 3: Log failures in D2D, D2D 1.1 and the D3D11 TextureClient. r=bas 2014-09-17 23:23:09 +02:00
Nicolas Silva
b5292e09c1 Bug 1068613 - Part 1: Add gfxCriticalError() log to Moz2D. r=bas 2014-09-17 23:23:02 +02:00
Jonathan Watt
1b3886f900 Bug 1067998 - Fix OOM crash in gfxAlphaBoxBlur::Init on large blur surface. r=Bas 2014-09-17 08:46:42 +01:00
Nicolas Silva
69830a5b8c Bug 1061712 - Fix missing include. r=me 2014-09-16 14:55:03 +02:00
Nicolas Silva
5d15726e8f Bug 1061712 - Don't crash in DrawTargetDual::CreateSimilar if allocation fails. r=Bas 2014-09-16 14:29:40 +02:00
Rik Cabanier
199016e453 Bug 1047477 - "Add support for all blend mode to feBlend". r=longsonr r=bz 2014-09-12 16:32:00 +02:00
Bas Schouten
68f2fad908 Bug 1066465: Fixup DrawTargetD2D1::DrawFilter to respect the AA mode and Finalize properly. r=jrmuizel 2014-09-14 23:52:47 +02:00
Bas Schouten
551b9e6641 Bug 1066463: Have DrawTargetD2D1::DrawSurface take the transform into account when doing a partial upload. r=jrmuizel 2014-09-14 23:52:46 +02:00
Bas Schouten
08c8b645b8 Bug 1066679: Make DrawTargetDWrite::GetPathsForGlyphs recognize D2D 1.1. r=jrmuizel 2014-09-14 23:52:46 +02:00
Bas Schouten
014cbe4801 Bug 1066676: Make DrawTargetD2D1::DrawSurface respect the interpolation mode. r=jrmuizel 2014-09-14 23:51:35 +02:00
Bas Schouten
de2e0dfe09 Bug 1066673: Change DrawTargetD2D1::DrawSurfaceWithShadow to operate as per Canvas spec. r=jrmuizel 2014-09-14 23:51:35 +02:00
Bas Schouten
c46391eb0a Bug 1066670: Deal with a failed brush creation by drawing transparent black. r=jrmuizel 2014-09-14 23:51:34 +02:00
Bas Schouten
60504b34c6 Bug 1066668: Do not attempt to interop with D2D 1.1 inside D2D 1.0. r=jrmuizel 2014-09-14 23:51:34 +02:00
Bas Schouten
cf394caa67 Bug 1066254: Make the temporary surface used in DrawTargetD2D1 always be transparent. r=jrmuizel 2014-09-14 23:51:33 +02:00
Bas Schouten
f66dcfee43 Bug 1066153: Fail to create DrawTargetD2D1 over the maximum size. r=jrmuizel 2014-09-14 23:51:33 +02:00
Bas Schouten
adf609ffcd Bug 1066147: Clear new DrawTargets upon creation in D2D 1.1 backend. r=jrmuizel 2014-09-14 23:51:33 +02:00
Bas Schouten
a5f37cc356 Bug 1064104: Workaround bug in D2D 1.1 addressing mode. r=jrmuizel 2014-09-14 23:51:32 +02:00
Bas Schouten
564bfeb026 Bug 1066142: Respect AntiAlias mode in Direct2D 1.1 backend. r=jrmuizel 2014-09-14 23:51:32 +02:00
Bas Schouten
97d8894b02 Bug 1062412: Support blending composition operations in D2D 1.1. r=jrmuizel 2014-09-14 23:51:31 +02:00
Bas Schouten
124a96d56c Bug 1066138: Disable using TextureClientD3D11 for A8 surfaces and fix various TextureClientD3D11 A8 bugs. r=jrmuizel 2014-09-14 23:51:31 +02:00
Bas Schouten
297838e642 Bug 1066132: Fix SourceSurfaceD2D1::DrawTargetWillChange() to not null out mDrawTarget itself. r=jrmuizel 2014-09-14 23:51:30 +02:00
Bas Schouten
8dfe79e18c Bug 1060963: Correctly deal with adjusted Source rectangle in DrawTargetD2D1::DrawSurface. r=jrmuizel 2014-09-14 23:51:30 +02:00
Bas Schouten
76796092a4 Bug 1060960: Fix D2D 1.1 backend's ClearRect to deal with transforms and complex clips. r=jrmuizel 2014-09-14 23:51:29 +02:00
Bas Schouten
799eb1e0e5 Bug 1060951: Properly unset the transform when doing the custom blend in FinalizeDrawing. r=jrmuizel 2014-09-14 23:51:29 +02:00
Bas Schouten
adc9640d08 Bug 1060950: Call PrepareForDrawing before GetImageForSurface. r=jrmuizel 2014-09-14 23:51:28 +02:00
Bas Schouten
cce115f0e0 Bug 1060953: Fix reference cycle between DrawTargetD2D1 and SourceSurfaceD2D1. r=jrmuizel 2014-09-14 23:51:28 +02:00
Matt Woodrow
8c5c06f212 Bug 1046550 - Part 2: Allow creating D2D 1.1 DrawTargets for D3D11 textures. r=bas 2014-09-14 23:51:27 +02:00
Bas Schouten
5b50de1033 Bug 1066811: Add a SupportsD2D1() method to the Moz2D factory. r=jrmuizel 2014-09-14 23:51:26 +02:00
Matt Woodrow
a4cc03c70e Bug 1062723 - Part 6: Implement source clipping for DrawTargetD2D1. r=Bas
--HG--
extra : rebase_source : bd1c022efe0548a9e7860fb18d6aced33ddad40f
2014-09-12 17:18:22 +12:00
Matt Woodrow
b48ce21873 Bug 1062723 - Part 5: Implement source clipping for DrawTargetD2D. r=Bas
--HG--
extra : rebase_source : d1d1a33f3007f92055488d79c6cdc039efe48a25
2014-09-12 17:19:23 +12:00
Matt Woodrow
5bb847de24 Bug 1062723 - Part 4: Implement source clipping for DrawTargetSkia. r=gw280
--HG--
extra : rebase_source : 8dc98b36fa84fd23e76daf9251f81960a56b2ca0
2014-09-12 17:18:22 +12:00
Matt Woodrow
7ab5665d74 Bug 1062723 - Part 3: Implement source clipping for DrawTargetCG. r=jrmuizel
--HG--
extra : rebase_source : 679e0a97bdc31bb4b98b375618f70fb04a74b2cb
2014-09-12 17:18:22 +12:00
Matt Woodrow
bfdf5c0a2a Bug 1062723 - Part 2: Implement source clipping for DrawTargetCairo. r=Bas
--HG--
extra : rebase_source : 9e02e1e91c3bcd455640a1f60e4da673302c5cf1
2014-09-12 17:11:36 +12:00
Matt Woodrow
b0b5937e07 Bug 1062723 - Part 1: Add source clipping to SurfacePattern. r=Bas
--HG--
extra : rebase_source : ccec8c8cb37f52710b0758360bea73696212734f
2014-09-11 18:13:52 +12:00
Michael Wu
e58cfe332e Bug 1063733 - Optimize DataSourceSurface allocation, r=bas,seth 2014-09-10 17:54:16 -04:00
Nicolas Silva
3a2f05799b Bug 1061696 - Don't crash release builds when failing to allocate a surface in AutoRestoreClippedOut::save. r=Bas 2014-09-11 17:27:48 +02:00
Jonathan Watt
56aaeed4fc Bug 1065764, part 2 - Make Moz2D's Matrix::NudgeToIntegers() return a reference. r=Bas 2014-09-11 01:46:21 +01:00
Jonathan Watt
ea0b67384b Bug 1065743 - Make Moz2D's DrawTarget::GetTransform() return a copy instead of a const reference. r=Bas 2014-09-11 01:46:16 +01:00
Jonathan Watt
ad3740d79f Bug 1065737 - Add a PreMultiply() method to Moz2D's Matrix class. r=Bas 2014-09-11 01:45:05 +01:00
Jonathan Watt
298b1ad1cf Bug 1065526, part 1 - Add a Copy() method to Moz2D's Matrix. r=Bas 2014-09-10 21:41:51 +01:00
Jonathan Watt
28834bab10 Bug 1065558 - Add a ConcatTransform method to Moz2D's DrawTarget. r=Bas 2014-09-10 21:41:50 +01:00
Jonathan Watt
7bf3859764 Bug 1065031, part 1 - Changes to Moz2D code to document and rename Moz2D Matrix's Translate, Scale and Rotate methods. r=Bas 2014-09-10 18:29:35 +01:00
Carsten "Tomcat" Book
d9c5bea4e5 Backed out changeset e6b766d8a815 (bug 1065127) for bustage 2014-09-10 14:30:36 +02:00
Jonathan Watt
cc5bf95ddf Bug 1065127 - Avoid Matrix().Translate()/Scale()/Rotate() multiplication in lots of places. r=Bas
--HG--
extra : rebase_source : ef075258c31973c4943b9b3a9229685a9bb83917
2014-09-10 11:45:42 +01:00
Jeff Muizelaar
261f9f93f1 Bug 1049564. Backout unintentionally landed code.
CLOSED TREE
2014-09-08 11:07:48 -04:00
Jeff Muizelaar
013dcc3e2c Bug 1049564. Remove sketchy sizing code from CompositorOGL. r=nical
This came from the layers refactoring and taking it out doesn't
seem to cause any test failures.
2014-09-08 10:54:26 -04:00
Jean-Yves Avenard
e9ff1e0b4e Bug 1059066 - Add various IOSurface related methods to MacIOSurface wrapper. r=mattwoodrow 2014-09-03 17:09:24 +10:00
Jonathan Watt
34dbfe4041 Bug 1063853, part 1 - Add a RemoveUserData() method to Moz2D DrawTarget. r=Bas 2014-09-05 18:11:29 +01:00