Граф коммитов

21 Коммитов

Автор SHA1 Сообщение Дата
Daniel Holbert 126bd9e1a4 Bug 1412427 part 8: (automated patch) Switch a bunch of C++ files in gfx to use our standard mode lines. r=jrmuizel
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: 77D61xpSmIl

--HG--
extra : rebase_source : c6162fa3cf539a07177a19838324bf368faa162b
2017-10-27 16:10:06 -07:00
Daniel Holbert ecf5ee687e Bug 1412427 part 4: Indent under-indented MPL boilerplate comments by 1 space, for consistency & alignment. (whitespace-only) r=jrmuizel
This patch was automatically generated. I found the files to be fixed in this
patch with the following command:
grep -r "^\* This Source Code" gfx

...and then I modified each of these files with the following script
(where $1 is the filename to be modified):
###
line1="\* This Source Code Form is subject to the terms of the Mozilla Public"
line2="\* License, v\. 2\.0\. If a copy of the MPL was not distributed with this"
line3="\* file, You can obtain one at http://mozilla\.org/MPL/2\.0/\. \*/"

# Insert 1 space at beginning:
sed -i s%"^$line1"%" $line1"% $1
sed -i s%"^$line2"%" $line2"% $1
sed -i s%"^$line3"%" $line3"% $1
###

MozReview-Commit-ID: HXBMrfnhlVr

--HG--
extra : rebase_source : de4c78563711f8366e2978c5199a5041875fbe38
2017-10-27 15:55:37 -07:00
sotaro 1d710a54ef Bug 1343764 - Add ExternalBuffer handling r=nical 2017-03-07 19:37:28 +09:00
Matt Woodrow 4d0b10822d Bug 1308363 - Remove GONK specific code from gfx/. r=jrmuizel,sotaro 2016-10-27 13:17:10 +13:00
Nicolas Silva e9b85ee52f Bug 1229577 - Rename NewSurfaceDescriptorGralloc into SurfaceDescriptorGralloc. r=sotaro 2015-12-04 11:23:42 +01:00
Sotaro Ikeda d7e0a22d6a Bug 1210182 - Implement GrallocTextureHostBasic r=nical 2015-10-26 22:43:07 -07:00
Birunthan Mohanathas a8939590de 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
Nathan Froyd 974d8120f2 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
Nathan Froyd db188ea282 Bug 1160485 - remove implicit conversion from RefPtr<T> to TemporaryRef<T>; r=ehsan
Having this implicit conversion means that we can silently do extra
refcounting when it's completely unnecessary.  It's also an obstacle to
making RefPtr more nsRefPtr-like, so let's get rid of it.
2015-05-01 09:14:16 -04:00
Octoploid 18faaeac6a bug 1036401 - adjust includes to fix up some issues with complete types instead of forward declarations being required r=bz r=bjacob 2014-07-22 11:29:33 -04:00
Tom Schuster ef8c2ecd00 Bug 973227 - Split up TextureHostX11 into TextureSource and TextureHost file, make it backend independent. r=nical
--HG--
rename : gfx/layers/basic/TextureHostX11.cpp => gfx/layers/basic/X11TextureSourceBasic.cpp
rename : gfx/layers/basic/TextureHostX11.h => gfx/layers/basic/X11TextureSourceBasic.h
rename : gfx/layers/basic/TextureHostX11.cpp => gfx/layers/composite/X11TextureHost.cpp
rename : gfx/layers/basic/TextureHostX11.h => gfx/layers/composite/X11TextureHost.h
2014-02-18 01:30:05 +01:00
David Anderson 5db40c0aa5 Bug 947045 - Use Xlib surfaces in basic compositor (r=mattwoodrow) 2014-02-05 08:39:02 -08:00
Ryan VanderMeulen f508753ccc Backed out changesets fce6b2c04bab and db5a4ed50de4 (bug 947045) and changeset bef65fd678a4 (bug 950235) for IPC test crashes on a CLOSED TREE. 2014-02-05 15:45:03 -05:00
David Anderson 94420297e4 Bug 947045 - Use Xlib surfaces in basic compositor (r=mattwoodrow) 2014-02-05 08:39:02 -08:00
Bill McCloskey f58c65f468 Backout bug 947045 for build failures on a CLOSED TREE 2014-02-05 09:05:25 -08:00
David Anderson de20c8c334 Bug 947045 - Use Xlib surfaces in basic compositor (r=mattwoodrow) 2014-02-05 08:39:02 -08:00
Daniel Holbert 34f9891748 Bug 957858: Drop unnecessary 'switch' in CreateTextureHostBasic, to fix MSVC C4065 warning. r=nical 2014-01-09 06:26:20 -08:00
Nicolas Silva 3629fbc964 Bug 897452 - Part 3 - Clean up some unused code after PTexture change - r=mattwoodrow 2013-12-11 20:44:47 -05:00
Ryan VanderMeulen c269bf8ea6 Backed out 17 changesets (bug 897452) for OSX crashes on a CLOSED TREE.
Backed out changeset 11ad8608bc27 (bug 897452)
Backed out changeset 6bcc629e76f9 (bug 897452)
Backed out changeset b91c858a43f5 (bug 897452)
Backed out changeset 38ba49ee3e97 (bug 897452)
Backed out changeset ea184ef84762 (bug 897452)
Backed out changeset 686cc5122149 (bug 897452)
Backed out changeset 3685a8018e49 (bug 897452)
Backed out changeset be7ef6240068 (bug 897452)
Backed out changeset f95c20e70947 (bug 897452)
Backed out changeset 4a370d2a1c62 (bug 897452)
Backed out changeset 1222f6ab66d2 (bug 897452)
Backed out changeset 5e9d3c681ee9 (bug 897452)
Backed out changeset 3b9ddce12b7a (bug 897452)
Backed out changeset 7aec6387f3e9 (bug 897452)
Backed out changeset eb1fe464fdaf (bug 897452)
Backed out changeset 07deaa53b6fd (bug 897452)
Backed out changeset ddab7d071d69 (bug 897452)
2013-12-11 14:52:50 -05:00
Nicolas Silva e3132d6da3 Bug 897452 - Part 3 - Clean up some unused code after PTexture change - r=mattwoodrow 2013-12-11 13:05:13 -05:00
David Anderson 15ea1ba33f Support MacIOSurface textures in the basic compositor (bug 942358, r=mattwoodrow). 2013-12-03 16:20:04 -08:00