Commit Graph

50 Commits

Author SHA1 Message Date
Birunthan Mohanathas
a29151dc87 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
Birunthan Mohanathas
539a24f3db Bug 1182824 - Part 2: Make ContextState::dash a nsTArray. r=mattwoodrow 2015-07-12 23:19:12 -07:00
Nathan Froyd
92a8124fef 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
29b9bb92b6 Bug 1167235 - Part 3: Switch CanvasRenderingContext2D to use the new BufferProvider API. r=nical 2015-06-19 01:07:21 +02:00
Markus Stange
e671248171 Bug 1163124 - The initial value of the canvas filter property should be "none". r=roc 2015-05-28 17:08:13 -04:00
David Anderson
7fdcf3d5d4 Add an API for snapshotting widgets as they are presented by the operating system. (bug 1167477, r=mattwoodrow, dom r=khuey) 2015-06-04 14:19:06 -07:00
Carsten "Tomcat" Book
e752906545 Backed out changeset 45998275f423 (bug 857895) 2015-05-26 08:59:47 +02:00
Matt Woodrow
a5ec579e4a Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Andrea Marchesini
206d86a9a3 Bug 1167423 - patch 4 - Handle return values of FallibleTArray functions in CanvasRenderingContext2D, r=smaug 2015-05-25 12:50:15 +01:00
Matt Woodrow
16b76a4118 Backout e01d80922187 (Bug 857895) for causing crashes 2015-05-19 10:50:41 +12:00
Matt Woodrow
56e221fd16 Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Phil Ringnalda
945b4eaac7 Back out 4f682f01262e (bug 857895) for widespread destruction
CLOSED TREE
2015-05-11 19:53:28 -07:00
Matt Woodrow
9965dd8ee7 Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Carsten "Tomcat" Book
b5ec287400 Backed out changeset 41c408a2662e (bug 857895) for bustage on a CLOSED TREE 2015-05-11 10:28:56 +02:00
Matt Woodrow
1ae6f5757d Bug 857895 - Run canvas rendering asynchronously on OSX. r=Bas,bholley 2013-04-09 16:51:44 +12:00
Andrea Marchesini
18b38ad706 Bug 1156632 - Remove unused forward class declarations - patch 4 - netwerk image and dom, r=ehsan 2015-04-22 08:29:20 +02:00
Ehsan Akhgari
ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Boris Zbarsky
3a822d99b4 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Milan Sreckovic
cf1cc33fa4 Bug 1129147 - Part 1. Take CanvasPath into a separate file, to avoid circular dependency. r=roc 2015-03-03 10:57:51 -05:00
Masatoshi Kimura
91b7bfd47c Bug 1111290 - Part 2: Non-mechanical changes. r=waldo 2015-01-26 07:22:08 +09:00
Florian Scholz
bb15a95a7d Bug 1119527 - Implement canvas clearHitRegions. r=gw280, r=bz 2015-01-09 09:41:00 -05:00
Ehsan Akhgari
7bca48d724 Bug 1118547 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/canvas; r=baku 2015-01-07 10:19:12 -05:00
Jonathan Kew
cafd427872 Bug 1108616 - part 2 - Add an explicitLanguage field to gfxFontStyle, and pass it down from callers. r=dbaron 2014-12-23 12:50:10 +00:00
Milan Sreckovic
c829080dda Bug 1099148 - Implement Canvas2D resetTransform method. r=gw280,bz 2014-11-18 12:11:12 -05:00
George Wright
081aae993d Bug 1042291 - Add a CanvasDrawObserver which observes the first few seconds/frames of a Canvas2D's lifetime to determine using a heuristic if it should be software or GPU backed. r=gw280, r=snorp 2014-09-10 16:15:43 -04:00
chiajung hung
352de86fed Bug 880114 - Enhance render video-to-SkiaGL performance by GPU-based color space conversioni, r=gw280 2014-11-11 21:14:00 +01:00
Del Valle
547b909c2e Bug 1092555 - Replace some occurences of gfxIntSize by gfx::IntSize in CanvasRenderingContext2D. r=nical" 2014-11-04 14:00:36 +01:00
Michael Wu
6da79b36b0 Bug 1081926 - Fallback on a simple image lookup when the normal lookup fails. r=mattwoodrow 2014-10-29 16:17:00 +01:00
Jeff Gilbert
0b36ea3fec Bug 1082850 - Query for SkiaGL by asking mTarget. - r=snorp 2014-10-14 19:25:57 -07:00
jdashg
f4e7d402a7 Bug 1066280 - Remove SurfaceStream. - r=kamidphish,mattwoodrow 2014-10-07 21:15:39 -07:00
Markus Stange
b8d18d13f4 Bug 927892 - Canvas filter drawing support. r=Bas 2014-09-23 17:47:20 -04:00
Markus Stange
22e424fd6b Bug 927892 - Split shadow drawing out of AdjustedTarget. r=Bas 2014-09-23 17:47:20 -04:00
Markus Stange
270387f9bb Bug 927892 - Also calculate bounds for canvas operations when a filter is used. r=Bas 2014-09-23 17:47:19 -04:00
Markus Stange
06ae8700a9 Bug 927892 - Keep the filter description up-to-date when something in the referenced filter changes. r=roc 2014-09-23 17:47:19 -04:00
Markus Stange
57d88d0d0e Bug 927892 - Correctly handle em/ex units in SVG filter primitive region length values. r=roc 2014-09-23 17:47:19 -04:00
Markus Stange
2adb11600c Bug 927892 - Resolve the parsed canvas filter to a FilterDescription. r=roc 2014-09-23 17:47:18 -04:00
Markus Stange
df4121f91b Bug 927892 - Add parsing support for canvas filters. r=heycam 2014-09-23 17:46:11 -04:00
Markus Stange
94ec302de4 Bug 927892 - Add the CanvasRenderingContext2D.filter property, preffed off by default behind canvas.filters.enabled. r=roc, r=smaug 2014-09-23 17:44:53 -04:00
Jonathan Kew
1ec098ba6b bug 1066043 - split gfxFont.cpp and .h into more manageably-sized pieces. r=jdaggett 2014-09-16 10:58:12 +01:00
Sotaro Ikeda
7fc39c4816 Bug 1049195 - Call glFlush() for each frame if necessary r=jgilbert 2014-09-09 18:40:51 -07:00
George Wright
c7ee3cf465 Bug 1061988 - Get rid of the notion of "demoting" and replace it with "switch rendering mode" r=snorp 2014-09-02 19:26:36 -04:00
Rik Cabanier
9a5437d964 Bug 985801 - Add implementation for Path2D::AddPath. r=roc, r=bz 2014-08-25 09:03:00 -04:00
Seth Fowler
c25a32c077 Bug 1043560 - Refactor the imgIContainer::Draw API. r=tn,dholbert,jwatt,mwu,mattwoodrow,roc sr=jrmuizel 2014-08-22 13:12:38 -07:00
Trevor Saunders
d67df400c1 bug 1047696 - mark a number of classes MOZ_FINAL to get compilers to devirtualize more r=froydnj 2014-08-05 13:33:55 -04:00
Botond Ballo
29e678a8e8 Bug 923512 - Introduce strongly-typed coordinate classes. r=kats,Bas 2014-08-19 13:08:16 -04:00
Wes Kocher
84b7885915 Backed out 3 changesets (bug 923512) for mochitest-2 bustage on a CLOSED TREE
Backed out changeset f8720d81b74f (bug 923512)
Backed out changeset f431232084b7 (bug 923512)
Backed out changeset dff51863663c (bug 923512)
2014-08-06 16:36:35 -07:00
Wes Kocher
773ac7a27f Backed out changesets 950a3afc2b15 and dfb5303af6f9 (bug 1028288) for being incorrect 2014-08-06 15:43:25 -07:00
Botond Ballo
1d9a372eb4 Bug 923512 - Introduce strongly-typed coordinate classes (Part2: Changes to rest of codebase, and switching Axis to use the strongly-typed coordinates). r=kats 2014-07-29 17:24:12 -04:00
James Kolb
a93ca7bd1e Bug 1028288 Add canvas global transparency support to svgs. r=roc 2014-08-02 16:14:53 +09:00
Birunthan Mohanathas
3ae7697323 Bug 946065 - Part 1: Move content/canvas/ to dom/ and flatten subdirectories. r=ehsan 2014-07-25 14:15:35 -07:00