Commit Graph

1611 Commits

Author SHA1 Message Date
Kearwood Gilbert
9b24bb93b6 Bug 1310665 - macOS OpenVR Support r=daoshengmu,mattwoodrow
MozReview-Commit-ID: 9CDJpFOcFUB
2017-07-04 13:50:40 -07:00
Ryan Hunt
ed849c9399 Bug 1382128 part 2 - Remove WrPoint, WrSize, WrRect, WrMatrix, and WrColor. r=kats
MozReview-Commit-ID: 9koNScu4CyE
2017-07-18 18:32:46 -04:00
Ryan Hunt
9c7583cc1a Bug 1382128 part 1 - Use a namespace in webrender_bindings. r=kats
MozReview-Commit-ID: 3JTMa9Ix5S7
2017-06-27 19:20:36 -04:00
vincentliu
5ae93efc60 Bug 1367689 - Add a preference to make Wrench work with Gecko. r=jrmuize, jerry 2017-07-17 13:38:22 +08:00
Alastor Wu
9dacdec66b Bug 1373177 - part4 : add assertion to make sure the function call order. r=jolin
The Init()/Shutdown() would be run on the main thread, AcquireTexture() would be
on media thread and Fill() would be on compostitor thread.

Add assertion to make sure the call order, since we don't want to call Fill()
or AcquireTexture() after shutdown.

MozReview-Commit-ID: 3Gydr7b4Raq
2017-06-30 11:14:00 -07:00
Alastor Wu
2aa747688e Bug 1373177 - part2 : add log. r=jolin
Add lazy log for debugging.

MozReview-Commit-ID: 4VYjLDobFeW
2017-06-30 11:12:52 -07:00
Alastor Wu
5df5adbbb3 Bug 1373177 - part1 : automatically refill the pool if the textures number is lower than specific threshold. r=bechen,jolin,snorp
The pool would be refilled when the compositor starts rendering the frame.
However, if we consume lots of textures but doesn't render any frame, then the
pool would always empty and no one can get new texture id.

One case is that when we release decoders too early before rendering the first
frame, the pool won't be refilled, and it causes all media threads are blocked.

Now we would refill the pool if the textures number is lower than the specific
threshold.

MozReview-Commit-ID: CYBLYi9hFD9
2017-06-30 11:12:49 -07:00
Carsten "Tomcat" Book
372571d466 merge mozilla-inbound to mozilla-central a=merge 2017-06-27 10:56:41 +02:00
Kartikaya Gupta
c4fd192cd9 Bug 1376215 - Stop exposing the WrClipRegionToken in WebRenderAPI.h APIs. r=jrmuizel
No functional changes intended in this patch. It merely simplifies the
additional patch that we'll need to update gecko past WR cset 0bf6655,
and saves some potential manual rebasing work.

MozReview-Commit-ID: Km8dBotP3NQ
2017-06-26 07:49:52 -04:00
Nicholas Nethercote
a58025002f Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.
2017-06-22 17:08:53 +10:00
JerryShih
8723c139e1 Bug 1372803 - Move the RenderTextureHost creation from WebRenderTextureHost to the corresponding TextureHost. r=sotaro
MozReview-Commit-ID: JF19ntiQKfa
2017-06-15 17:07:46 +08:00
JerryShih
c48dd1fe08 Bug 1366502 - Update MacIOSurfaceTextureHostOGL for video pipeline. r=sotaro
MozReview-Commit-ID: 5cu8cYoTMxT
2017-06-07 23:44:04 +08:00
James Willcox
5c761cec67 Bug 1372060 - Relax assertions when missing SurfaceTexture in compositor r=jgilbert
MozReview-Commit-ID: heJALqGBLV
2017-06-26 09:48:43 -05:00
James Willcox
ff0480f091 Bug 1367287 - Reference count GeckoSurfaceTexture r=jchen
MozReview-Commit-ID: 1JJVzCmANyH
2017-06-02 10:14:20 -05:00
JerryShih
5339d3bdec Bug 1364922 - Update AddWRImage() interface for multiple ImageKeys. v2. r=nical
Some textureHosts have multiple-channel data. Each channel should use different ImageKey.

MozReview-Commit-ID: 86EGQn65nMG
2017-05-19 00:25:41 +08:00
JerryShih
5a2273ed7b Bug 1362049 - The BufferTextureHost::AddWRImage() and MacIOSurfaceTextureHostOGL::AddWRImage() implementations. v3. r=nical
MozReview-Commit-ID: JJlqFwidliQ
2017-05-18 22:59:07 +08:00
JerryShih
048bee3a55 Bug 1362049 - Add AddWRImage() to call the proper WR commands for all TextureHost types. v3. r=nical
Different TextureHost type could use different WR commands. So, make a abstract interface for these different commands.

MozReview-Commit-ID: 63dnOJC2P9r
2017-05-18 22:59:07 +08:00
JerryShih
1e19c5ef80 Bug 1362049 - Update the texture target and texture format in MacIOSurface. v5. r=mattwoodrow
Add LOCAL_GL prefix for all GL constant value.
Turn to use GL_RED and GL_RB if we use core profile.
Turn to use GL_RGB_422_APPLE instead of GL_YCBCR_422_APPLE for core profile.

MozReview-Commit-ID: FCwbrUEFUxI
2017-05-18 22:59:07 +08:00
JerryShih
a87ebf2102 Bug 1362049 - Remove the unused MacIOSurfaceTextureSourceOGL. r=mattwoodrow
The MacIOSurfaceTextureSourceOGL doesn't be used in the codebase.

MozReview-Commit-ID: EZ1fHw7J6YD
2017-05-18 22:59:06 +08:00
James Willcox
a410996279 Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
This is needed to support Flash on Android

MozReview-Commit-ID: 5yNIoZHonla
2017-05-15 09:37:50 -05:00
James Willcox
378089d572 Bug 1322650 - Allow access to TexturePoolOGL from Java r=jchen 2017-05-15 09:37:47 -05:00
James Willcox
d860d36ae0 Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
The main advantage here is that it works cross-process.

MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-15 09:37:44 -05:00
Iris Hsiao
3cea13a680 Backed out 11 changesets (bug 1322650) for media test failures on android. a=backout
Backed out changeset 31bd912fba54 (bug 1322650)
Backed out changeset 4d486c7469eb (bug 1322650)
Backed out changeset 4cf8f4d5064c (bug 1322650)
Backed out changeset 3cb108f7492f (bug 1322650)
Backed out changeset bd53533c108e (bug 1322650)
Backed out changeset 3522917d8f10 (bug 1322650)
Backed out changeset 2c2c1e33eccc (bug 1322650)
Backed out changeset 2f19977cd6ab (bug 1322650)
Backed out changeset 4519296a323e (bug 1322650)
Backed out changeset e56e5e1c8786 (bug 1322650)
Backed out changeset 96fe52231b57 (bug 1322650)
2017-05-12 10:21:14 +08:00
James Willcox
ccb36b4158 Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
This is needed to support Flash on Android

MozReview-Commit-ID: 5yNIoZHonla
2017-05-11 15:42:44 -05:00
James Willcox
8982494f42 Bug 1322650 - Allow access to TexturePoolOGL from Java r=jchen 2017-05-11 15:42:43 -05:00
James Willcox
9f0c7ce5fc Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
The main advantage here is that it works cross-process.

MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-11 15:42:42 -05:00
Sebastian Hengst
7700b0dbdc Backed out changeset 9badb2705567 (bug 1322650) 2017-05-05 18:54:09 +02:00
Sebastian Hengst
78eac6ec3a Backed out changeset b12a741ef025 (bug 1322650) 2017-05-05 18:53:59 +02:00
Sebastian Hengst
542e53c5ea Backed out changeset 0c01bf8a1bd9 (bug 1322650) 2017-05-05 18:53:45 +02:00
James Willcox
cfc584ce3c Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
This is needed to support Flash on Android

MozReview-Commit-ID: 5yNIoZHonla
2017-05-05 08:56:35 -05:00
James Willcox
583b57f80a Bug 1322650 - Allow access to TexturePoolOGL from Java r=jchen 2017-05-05 08:56:31 -05:00
James Willcox
c385f42ceb Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
The main advantage here is that it works cross-process.

MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-05 08:56:28 -05:00
Eugen Sawin
468b9633c9 Bug 1359950 - [1.0] Only delete textures from a valid context. r=snorp 2017-04-27 00:20:11 +02:00
Miko Mynttinen
0bc4033ec5 Bug 1345849 - Part 1: Use DrawTriangles() instead of DrawTriangle() in OpenGL compositor backend r=jrmuizel
MozReview-Commit-ID: H11vFsMlIaA
2017-03-27 13:59:15 -04:00
JerryShih
c4868e40ce Bug 1347062 - P4: create RenderBufferTextureHost and RenderMacIOSurfaceTextureHostOGL. r=nical,sotaro
1) make RenderTextureHost into a abstract base class for all RenderXXXTextureHost.
2) create a base class RenderTextureHostOGL for all texture handle base texture.
3) create RenderBufferTextureHost for buffer texture at render thread.
4) create RenderMacIOSurfaceTextureHostOGL for MacIOSurface at render thread.
2017-03-31 22:29:14 +08:00
David Anderson
dd9507885a Fix not deallocating device data after changing OGL compositors. (bug 1350259, r=mattwoodrow) 2017-03-27 14:03:59 -07:00
David Anderson
b346f548c2 Material changes for TextureHost TextureSourceProvider support. (bug 1343814 part 3.2, r=mattwoodrow) 2017-03-21 20:32:54 -07:00
David Anderson
6e57f3f879 Change TextureSource::SetCompositor to use TextureSourceProvider. (bug 1343814 part 2, r=mattwoodrow) 2017-03-21 20:32:53 -07:00
sotaro
e4aa155f04 Bug 1343764 - Add ExternalBuffer handling r=nical 2017-03-07 19:37:28 +09:00
Morris Tseng
1341cb2400 Bug 1340871 - Add CompositorUseANGLE info to TextureFactoryIdentifier. r=nical
MozReview-Commit-ID: GjlZS6T2i0p
2017-02-23 16:46:56 +08:00
David Anderson
f66c19353f Remove Composer2D remnants. (bug 1339353, r=kats) 2017-02-14 12:29:39 -08:00
Jeff Gilbert
6f07495523 Bug 1337589 - Improve Get*YuvColorMatrix. - r=mattwoodrow
MozReview-Commit-ID: 1FMnRNB7ksI
2017-02-07 19:27:32 -08:00
Randall Barker
fdf13e86e0 Bug 1329362 - part 3, Convert GLContext::RenewSurface to use CompositorWidget in place of nsIWidget r=kats 2017-01-27 09:32:24 -08:00
Miko Mynttinen
45fcf4cf9c Bug 1274673 - Use binary space partitioning for sorting/drawing layers - Part 3: Use BSPTree for layer sorting r=jrmuizel,mattwoodrow
MozReview-Commit-ID: 3Hy4IRDFgaP
2016-12-06 13:39:01 -10:00
Tomislav Jurin
9ff3007b90 Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
Thinker K.F. Li
2e91f0d8bd Bug 1269337 - Implement physical and logical size for GL render target. r=mattwoodrow 2016-11-28 02:14:00 +01:00
Andi-Bogdan Postelnicu
a97f610bf7 Bug 1317637 - Replace default bodies of special member functions with = default; in gfx/. r=jrmuizel
MozReview-Commit-ID: EWUpBvj5i6Z
2016-11-15 11:04:18 +02:00
Sotaro Ikeda
babd939cf1 Bug 1317656 - Cleanup more gonk/b2g dependent code r=nical 2016-11-15 22:01:30 -08:00
Matt Woodrow
915a274bf8 Bug 1313281 - Part 4: Remove Fence parameter from TextureData::Lock. r=sotaro 2016-10-27 21:02:09 +13:00
Matt Woodrow
16f8a8bdeb Bug 1308363 - Remove GONK specific code from gfx/. r=jrmuizel,sotaro 2016-10-27 13:17:10 +13:00