Commit Graph

490 Commits

Author SHA1 Message Date
Lee Salzman
043dcd2ed3 Bug 1299485 - fix USE_SKIA_GPU ifdefs. r=mchang 2016-09-01 21:10:39 -04:00
Nicolas Silva
5b205ec89b Bug 1298345 - Refactor CanvasRenderingContext2D's texture allocation code. r=Bas 2016-09-01 15:51:09 +02:00
Ethan Lin
3eb01a7603 Bug 1299062 - Check if drawtarget valid. r=nical 2016-08-31 22:43:47 -04:00
Milan Sreckovic
593298d24d Bug 1287316 - Release assert or deal with empty arrays. r=mstange 2016-08-30 18:38:30 -04:00
Nicolas Silva
879962b32e Bug 1294351 - Move restoring the canvas clip stack to its own method and early return form EnsureTarget. r=Bas 2016-08-26 14:31:58 +02:00
Ryan VanderMeulen
7049259c8a Merge m-c to inbound. a=merge 2016-08-25 08:27:17 -04:00
Ryan VanderMeulen
79935a96ec Merge inbound to m-c. a=merge 2016-08-25 08:10:52 -04:00
Andi-Bogdan Postelnicu
8a84b1e325 Bug 1297054 - remove null check in CanvasRenderingContext2D::InitializeWithDrawTarget. r=jrmuizel
MozReview-Commit-ID: GA3PntlpxBU
2016-08-23 11:41:21 +03:00
Nicholas Nethercote
1009bf0056 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.
2016-08-24 15:23:45 +10:00
Milan Sreckovic
a982747c96 Bug 1297181: More information when accelerated canvas creation fails. r=mchang
MozReview-Commit-ID: AjhVkngSkHK
2016-08-22 17:47:54 -04:00
Ryan VanderMeulen
65e0550627 Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
Kan-Ru Chen
a9b19d0584 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Ethan Lin
c716fbb2ca Bug 1296166 - Avoid calling EnsureTarget in CanvasRenderingContext2D::GetImageData. r=nical 2016-08-22 18:58:00 -04:00
Ethan Lin
5ac7550c92 Bug 1293970 - Avoid copy in CanvasRenderingContext2D::PutImageData and DrawWindow. r=nical 2016-08-16 20:18:00 -04:00
Jonathan Kew
d7e485fc9c Bug 1280887 - patch 2 - Make gfxTextRun refcounted, replace usage of UniquePtr<> with RefPtr<> for textruns, and make nsTextFrame hold a strong reference to its run(s). r=mats 2016-08-19 13:14:22 +01:00
Nicolas Silva
03f0472ae2 Bug 1294351 - Avoid removing and re-applying the drawing states with PersistentBufferProviderBasic. r=Bas 2016-08-19 12:00:26 +02:00
Sebastian Hengst
b56a099076 Backed out changeset 775fa3ede160 (bug 1294351) for failing in crashtest 647480.html. r=backout 2016-08-18 12:50:56 +02:00
Nicolas Silva
effbceef63 Bug 1294351 - Avoid removing and re-applying the drawing states with PersistentBufferProviderBasic. r=Bas 2016-08-17 14:39:03 +02:00
Edwin Flores
dc1a131b8d Bug 1272123 - Limit the size of CanvasRenderingContext2D::mStyleStack - r=mstange 2016-08-17 09:26:11 +01:00
Ethan Lin
5e03ee3d5c Bug 1294607 - Remove unnecessary EnsureTarget in CanvasRenderingContext2D. r=nical 2016-08-15 23:54:00 -04:00
Phil Ringnalda
ef4280ad5b Back out 6493296521fb (bug 1294607) for crashtest crashes in 1246775-1.html 2016-08-15 20:54:50 -07:00
Ethan Lin
dca0d3a56e Bug 1294607 - Remove unnecessary EnsureTarget in CanvasRenderingContext2D. r=nical 2016-08-11 20:26:00 -04:00
Jonathan Chan
23ccd0531f Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA
2016-08-09 16:28:19 -07:00
Ethan Lin
bb319d6d44 Bug 1293968 - Avoid calling EnsureTarget in CanvasRenderingContext2D::GetImageBuffer. r=nical 2016-08-11 23:46:00 -04:00
Jan de Mooij
bfe36450fc Bug 1292892 part 5 - Replace most nsContentUtils::RootingCx calls with dom::RootingCx. r=bz,terrence 2016-08-11 14:39:23 +02:00
Nicolas Silva
cc81e0fb88 Bug 1292545 - Don't skip clearing the canvas because of W(1) failures on Mac. 2016-08-10 17:00:25 +02:00
Nicolas Silva
31bac6594f Bug 1292870 - Record/replay clips and transforms properly in CanvasRenderingContext2D. r=Bas 2016-08-10 14:30:51 +02:00
Nicolas Silva
315834969a Bug 1292545 - Don't optimize away the canvas copy if clips are applied. r=ethlin 2016-08-10 14:30:48 +02:00
Nicolas Silva
9f6e21a7dd Bug 1293693 - FillRect covering the entire canvas can skip copying the previous frame if the composite op is SOURCE, but not DEST_OUT. r=ethlin 2016-08-10 14:30:45 +02:00
Nicolas Silva
6ed0d169af Bug 1292192 - Simplify CanvasRenderingContext2D::SwitchRenderingMode. r=gw280 2016-08-09 18:18:58 +02:00
Ethan Lin
b7af421b38 Bug 1289975 - Reuse canvas buffer when setting the same dimension. r=nical 2016-08-02 23:00:00 +02:00
Nicolas Silva
a400802da9 Bug 1289816 - Simplify CopyableCanvasLayer::UpdateTarget and remove unnecessary copies. r=jnicol 2016-07-29 20:19:28 +02:00
Nicolas Silva
a0adabcd8e Bug 1289380 - Simplify PersistentBufferProviderShared. r=edwin 2016-07-27 16:50:20 +02:00
Nicolas Silva
3766bcc94a Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond 2016-07-26 16:48:30 +02:00
Sotaro Ikeda
51d8d5501a Bug 1250914 - Create gl texture for each video frame drawing to SkiaGL canvas r=jrmuizel 2016-07-22 18:10:13 -07:00
Nicolas Silva
b0636255f6 Bug 1285263 - Restore clips with the proper transform when in CanvasRenderingContext2D::EnsureTarget. r=bas 2016-07-21 11:02:12 +02:00
vincentliu
48c5175431 Bug 1281800 - The API should return an empty array if maxWidth was provided but is less than or equal to zero or equal to NaN. r=jrmuizel
---
 dom/canvas/CanvasRenderingContext2D.cpp | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
2016-07-19 10:52:50 +08:00
Kevin Chen
c1c1b5a407 Bug 1275693 - Refactor <canvas> strokeText drawing to re-use gfxTextRun::Draw. r=jfkthame 2016-07-14 02:00:00 +02:00
Kevin Chen
0cde4222e4 Bug 1275693 - Refactor <canvas> fillText drawing to re-use gfxTextRun::Draw. r=jfkthame 2016-07-13 19:07:00 +02:00
Nicolas Silva
9a979cbc1d Bug 1284721 - Flush CanvasRenderingContext2D's DrawTarget when returning it to the BufferProvider. r=lsalzman 2016-07-11 17:44:27 +02:00
Nicolas Silva
4fad78061e Bug 1285207 - Don't let canvas have a DrawTarget without a BufferProvider and keep them in sync. r=lsalzman 2016-07-11 17:44:25 +02:00
Wes Kocher
209d5edb7b Backed out changeset b966ababca8d (bug 1284721) for bustage CLOSED TREE
***
Backed out 3 changesets (bug 1284721, bug 1285207) for bustage CLOSED TREE

Backed out changeset 75f6c7e15d76 (bug 1284721)
Backed out changeset b7f2d54f3904 (bug 1285207)
Backed out changeset fceb3f145f91 (bug 1284721)
2016-07-08 12:17:06 -07:00
Nicolas Silva
c1ab3ae570 Bug 1284721 - Flush CanvasRenderingContext2D's DrawTarget before handing it off to the BufferProvider. r=lsalzman 2016-07-08 19:26:48 +02:00
Nicolas Silva
c437c2c699 Bug 1285207 - Don't let canvas have a DrawTarget without a BufferProvider and keep them in sync. r=lsalzman 2016-07-08 19:26:44 +02:00
Carsten "Tomcat" Book
0956961fbc merge mozilla-inbound to mozilla-central a=merge 2016-07-08 11:58:46 +02:00
kearwood
b5b6726ccc Bug 1284324 - Implement Canvas Layer mirrors r=bas
- When a canvas layer is set to mirror, it copies the
  texture from the canvas rather than changing the
  texture factory with Morph().
- This is useful when a canvas content will be sent to
  multiple devices simultaneously, such as a VR HMD
  and a 2d monitor mirror.
- This is used by the WebVR 1.0 API, in Bug 1250244

MozReview-Commit-ID: JfMSockO2uz
2016-07-04 13:11:07 -07:00
Boris Zbarsky
2060db2920 Bug 1282150 part 4. Have just one way of getting the rooting JSContext, and call it nsContentUtils::RootingCx(). r=bholley 2016-07-07 20:08:26 -04:00
Nicolas Silva
1548bf8ce0 Bug 1167235 - Part 7 - Don't paint directly into a canvas with DrawWindow when using a shared PersistentBufferProvider. r=lsalzman 2016-07-01 10:58:26 +02:00
Nicolas Silva
580b6e4d8f Bug 1167235 - Part 5 - Unlock canvas2D resources after drawing. r=Bas 2016-07-01 10:58:20 +02:00
Nicolas Silva
74b2b18373 Bug 1167235 - Part 4 - Forward the shutdown notification to CanvasRenderingContext2D. r=Bas 2016-07-01 10:58:18 +02:00