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

35 Коммитов

Автор SHA1 Сообщение Дата
Milan Sreckovic 33b10a1074 Bug 1214802 - gfxEnv - consolidate environment variables used by the graphics code in one place. r=botond 2015-10-28 14:31:00 +01:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nicholas Nethercote d0c4a9db1b Bug 1208300 (part 4) - Remove gfxRGBA and some related things. r=jwatt.
Hooray!

--HG--
extra : rebase_source : d691b55eef5a8655aa98b81b5398452a5ebe860d
2015-09-24 19:24:16 -07:00
Ted Mielczarek 76da157ae2 bug 1178956 - Specify precision in OGLShaderProgram.cpp to fix compositor on iOS. r=kip
--HG--
extra : commitid : JADdinHiHj
extra : rebase_source : f83c3a6d1d6f02f7744e0751eebd4c80c24028d0
2015-09-22 15:41:46 -04:00
Matt Woodrow 4087f8188c Bug 1061525 - Part 3: Add shaders for NV12 to OGLShaderProgram. r=BenWa 2015-08-10 22:04:26 +10:00
Wes Kocher b822a1fdfc Backed out 6 changesets (bug 1061525) for mochitest-2 failures in test_BufferedSeek_mp4.html CLOSED TREE
Backed out changeset 5e90b9dab7fa (bug 1061525)
Backed out changeset ef5ce3d6412a (bug 1061525)
Backed out changeset 19c8682665a6 (bug 1061525)
Backed out changeset b48d13edb48d (bug 1061525)
Backed out changeset fae6602192a7 (bug 1061525)
Backed out changeset 5dfbd6e73c7a (bug 1061525)
2015-08-03 19:53:33 -07:00
Matt Woodrow b85c277659 Bug 1061525 - Part 3: Add shaders for NV12 to OGLShaderProgram. r=BenWa 2015-08-03 17:57:33 -04: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
Kearwood (Kip) Gilbert e25ede39ea Bug 766345 - Part 1 - Implement DEAA Antialiasing for transformed layers (v5 Patch). r=vladimir, r=djg 2014-12-17 16:28:45 -08:00
Jeff Muizelaar 5d3083acd5 Bug 1073036. Fix an assertion string that I forgot about.
--HG--
extra : rebase_source : 9c52d35673e7a28d2c982a070e28b18792cc1a98
2014-11-18 10:33:36 -05:00
Jeff Muizelaar 31512f67b3 Bug 1073036. layers: Track program state more carefully to avoid setting unnecessarily. r=nical
This introduces some infrastructure to start tracking the program state more carefully. Currently
it only tracks the program because UseProgram was showing up the most in profiles, but more
state could also be added as needed.

--HG--
extra : rebase_source : 289ab867ef63032f7604a6cbe6d0230fd0a9411a
2014-11-10 14:34:06 -05:00
Markus Stange df8cc49a5e Bug 1055646 - Allow setting the uniforms of the blur shader on ShaderProgramOGL. r=nical 2014-09-02 14:09:26 +02:00
Markus Stange d86f60a1d7 Bug 1055646 - Fix a typo in the blur shader. r=nical 2014-09-02 14:09:21 +02:00
Jeff Muizelaar df48ffb1b7 Bug 1016539. Add support for accelerated a11y filters. r=mwoodrow
This adds the ability to render to a temporary surface and use that
to apply a filter effect to all of the content.
2014-08-07 17:44:08 -04:00
Jeff Muizelaar bd1c7376a3 Bug 1047507. Add a comment about keeping the KnownUniformName enum in sync.
--HG--
extra : rebase_source : 2445dd306a2aa4c3447293d5da88f786c679ced4
2014-08-01 13:26:46 -04:00
Jeff Gilbert 4c1235d464 Bug 1033124 - Use correct and more precise coeffs for YCbCr->RGB conversion. - r=mattwoodrow,r=bas 2014-07-02 17:48:18 -07:00
Andreas Gal ee8dee4c76 Bug 1016086 - Part 1: Use a single attribute in all shaders (r=Bas) 2014-05-29 10:19:37 -04:00
Andreas Gal c5c9b67596 Bug 1012407 - Part 7: Use a single GL draw call to draw up to 4 texture quads (r=Bas) 2014-05-28 10:15:31 -04:00
Carsten "Tomcat" Book 1c7db51a21 Backed out changeset c4a259f05a18 (bug 1012407) for reftest 5 test failures 2014-05-23 10:37:03 +02:00
Andreas Gal 9d1fa78b53 Bug 1012407 - Part 7: Use a single GL draw call to draw up to 4 texture quads (r=Bas) 2014-05-23 06:10:51 +02:00
Andreas Gal 859d692d6a Bug 1012407 - Part 5: Allow passing a texture rectangle to BindAndDrawQuad (r=Bas) 2014-05-22 12:29:54 +02:00
Wes Kocher fd7188a2e3 Backed out 4 changesets (bug 1012407) for b2g reftest5 orange on an otherwise CLOSED TREE
Backed out changeset 08e17f48aed1 (bug 1012407)
Backed out changeset b17b7b59cf88 (bug 1012407)
Backed out changeset 1c692df3f080 (bug 1012407)
Backed out changeset 560bd45d52de (bug 1012407)
2014-05-21 18:05:15 -07:00
Andreas Gal 9a083957f6 Bug 1012407 - Part 7: Use a single GL draw call to draw up to 4 texture quads (r=Bas) 2014-05-22 00:44:40 +02:00
Andreas Gal fe26dacc29 Bug 1012407 - Part 5: Allow passing a texture rectangle to BindAndDrawQuad (r=Bas) 2014-05-22 00:23:18 +02:00
Andreas Gal 202b439890 Bug 1012407 - Part 1: Reduce amount of data uploaded to GPU (layer quad rect instead of transform) r=Bas 2014-05-21 23:03:49 +02:00
Matt Woodrow 96efeab991 Bug 950312 - Part 5: Implement SCREEN and MULTIPLY for CompositorOGL. r=mtseng 2014-05-09 22:06:18 +12:00
Morris Tseng 520fcc9bd4 Bug 975937 - Crash in mozilla::layers::ShaderProgramOGL::Activate(). r=gal 2014-02-26 09:04:47 -05:00
Morris Tseng d4cdf301e3 Bug 926128 - Use a single configurable shader in OpenGL layers backend. r=vlad, r=nical, r=gal 2013-11-07 22:22:05 -08:00
Vladimir Vukicevic 2839e2ea5e b=951799, cache uniforms in OGLShaderProgram, part 3 - inline; r=bjacob 2014-01-29 17:53:38 -05:00
Vladimir Vukicevic 466a30db76 b=951799, cache uniforms in OGLShaderProgram, part 2 - fix LayerProgramProjectionMatrix; r=bjacob 2014-01-29 17:53:38 -05:00
Vladimir Vukicevic 5bc7d28737 b=951799, cache uniforms in OGLShaderProgram, part 1; r=bjacob 2014-01-29 17:53:37 -05:00
David Zbarsky a28df4889b Bug 952977: Convert CompositingRenderTargetOGL to gfx::Matrix4x4 r=nical 2014-01-27 15:25:21 -05:00
Tor Arvid Lund 3d5f99f7f3 Bug 929513 - Replace some instances of gfxIntSize with gfx::IntSize r=nical 2013-12-13 18:32:02 +01:00
Dan Glastonbury 1a74976806 Bug 942507 - GLContext doesn't need to have userdata. r=bjacob 2013-12-06 10:23:16 -05:00
Nicholas Cameron 69b1f7b81d Bug 924403. Rename OGL shaders files. r=mattwoodrow
--HG--
rename : gfx/layers/opengl/LayerManagerOGLProgram.cpp => gfx/layers/opengl/OGLShaderProgram.cpp
rename : gfx/layers/opengl/LayerManagerOGLProgram.h => gfx/layers/opengl/OGLShaderProgram.h
rename : gfx/layers/opengl/LayerManagerOGLShaders.h => gfx/layers/opengl/OGLShaders.h
rename : gfx/layers/opengl/LayerManagerOGLShaders.txt => gfx/layers/opengl/OGLShaders.txt
2013-11-27 11:15:17 +13:00