Commit Graph

2376 Commits

Author SHA1 Message Date
Jim Chen
02ade91805 Bug 881018 - Never inline TiledLayerBuffer::GetScaledTileLength to avoid crash; r=Cwiiis 2013-07-31 13:26:44 -04:00
Jim Chen
2d9ab495c1 Backout rev 9497429e8463 (bug 881018) to land real fix 2013-07-31 13:26:21 -04:00
Kartikaya Gupta
e56113f533 Bug 890932 - Add a missing lock in AsyncPanZoomController::SendAsyncScrollEvent. r=BenWa 2013-07-31 08:53:17 -04:00
Kartikaya Gupta
aa06750a8e Bug 890932 - Remove unnecessary internal method now that the monitor re-entrant. r=BenWa 2013-07-31 08:53:16 -04:00
Kartikaya Gupta
e7eb189cc7 Bug 890932 - Make AsyncPanZoomController::mMonitor re-entrant to reduce code madness. r=BenWa 2013-07-31 08:53:16 -04:00
Ryan VanderMeulen
876ec34e66 Backed out changeset 6846b610be41 (bug 897409) for suspicion of making Win8 mochitest-mc perma-orange. 2013-07-30 22:28:46 -04:00
Ryan VanderMeulen
02d1dbe0d8 Merge m-c to inbound. 2013-07-30 18:08:18 -04:00
Nicholas Cameron
5b1bec37f3 Bug 897839. Add some null checks for the compositor map. r=mattwoodrow 2013-07-31 09:45:42 +12:00
Nicholas Cameron
604246128e Bug 897409. Use a temporary surface instead of forcing image surfaces. r=mattwoodrow 2013-07-31 09:45:31 +12:00
Timothy Nikkel
d619fd2bc6 Bug 899730. Part 2. Use nsIntRegion::Area in layers and get rid of the unneeded GetRegionArea function that does the same. r=nrc 2013-07-30 16:10:32 -05:00
Kartikaya Gupta
795301b997 Bug 866232 - Fix build breakage introduced in f69d34718660. r=me 2013-07-30 14:55:57 -04:00
Kartikaya Gupta
40271aeb0c Bug 866232 - Break assumption of a single global root layer tree. r=BenWa, mattwoodrow 2013-07-30 14:03:43 -04:00
Kartikaya Gupta
0ab038a3d2 Bug 866232 - Only fire mozbrowserasyncscroll events on the top-level scrollable for backwards compatibility. r=BenWa 2013-07-30 14:03:42 -04:00
Kartikaya Gupta
c27169836e Bug 866232 - Update and re-enable the test for hit detection in the APZC tree. r=BenWa 2013-07-30 14:03:41 -04:00
Kartikaya Gupta
288b98292e Bug 866232 - Add visible region tracking and hit-testing code for APZCTreeManager. r=BenWa, mattwoodrow 2013-07-30 14:03:41 -04:00
Kartikaya Gupta
ef737ecf30 Bug 866232 - Extract a GetCurrentAsyncTransform method in APZC. r=BenWa 2013-07-30 14:03:41 -04:00
Kartikaya Gupta
d725e5e6a1 Bug 866232 - Some documentation/variable renaming cleanup. r=BenWa 2013-07-30 14:03:40 -04:00
Kartikaya Gupta
81eb2a5995 Bug 866232 - Add code to build the APZC tree on layer updates. r=BenWa, mattwoodrow 2013-07-30 14:03:40 -04:00
Kartikaya Gupta
047677d3e3 Bug 866232 - Add an APZCTreeManager to encapsulate the multiple APZCs corresponding to a given layer tree. r=BenWa, mattwoodrow 2013-07-30 14:03:40 -04:00
Kartikaya Gupta
3a19367421 Bug 866232 - Add support for delaying APZC creation until the layer update. r=BenWa 2013-07-30 14:03:40 -04:00
Kartikaya Gupta
d87852c133 Bug 866232 - Guard some APZC fields by a lock so they can be nulled out from the compositor thread. r=BenWa 2013-07-30 14:03:39 -04:00
Kartikaya Gupta
56b257378e Bug 866232 - Move around code in APZC to more easily allow creating it on the compositor thread. r=BenWa 2013-07-30 14:03:39 -04:00
Kartikaya Gupta
b91095aea2 Bug 866232 - Reserve a layer tree id for the root layer tree. r=BenWa 2013-07-30 14:03:38 -04:00
Nicolas Silva
2b6a0c31a2 Bug 858914 - New texture classes + OGL backend (preffed off). r=bas, nrc 2013-07-30 11:59:51 +02:00
David Zbarsky
10f3eae40e Backout 40683014a638 for causing mochitest orange 2013-07-29 21:11:01 -07:00
David Zbarsky
2708b889b0 Bug 895116: Lock the mask texture before compositing with BasicCompositor r=bas 2013-07-29 16:04:09 -07:00
David Zbarsky
d3fdca2e8d Bug 898105 - Remove nsIDOMTouch r=reuben 2013-07-29 16:04:09 -07:00
Ehsan Akhgari
085494b95d Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Bas Schouten
402ce3b9ba Bug 877700: Limit the Source region to the area of the parent layer surface. r=roc 2013-07-29 10:35:48 +00:00
Nicholas Cameron
908fdf34c3 Bug 756606. Add LockDrawTarget to shmem texture clients. r=Bas 2013-07-29 10:12:37 +12:00
Ryan VanderMeulen
20fabd9691 Merge m-c to inbound. 2013-07-25 21:59:02 -04:00
Ed Morley
4cc671a850 Merge mozilla-central and birch 2013-07-25 17:05:50 +01:00
Michael Wu
5cb1d9f27d Bug 895417 - Fix refpoint coordinates sent to child processes, r=kats 2013-07-24 21:49:49 -04:00
Peter Chang
1dcb6e83b0 Bug 894262 - Merge GonkIOSurfaceImage to GrallocImage, r=nical, kanru 2013-07-25 10:13:35 +08:00
Ryan VanderMeulen
ece161737c Merge m-c to inbound. 2013-07-24 18:27:51 -04:00
Ryan VanderMeulen
0f4f42b485 Backed out changeset d264bdb8b400 (bug 884188). 2013-07-24 11:15:47 -04:00
Nicolas Silva
e6812e0741 Bug 858914 - Mark some Image related classes deprecated. r=jrmuizel DONTBUILD 2013-07-24 18:08:35 +02:00
Nicolas Silva
6677c99d45 Backed out changeset 9089fe288899 2013-07-24 18:01:39 +02:00
Nicolas Silva
3e4aab0b5a Bug 868914 - Mark some Image related classes deprecated. r=jrmuizel 2013-07-24 17:43:35 +02:00
Nicolas Silva
5038e7de67 Bug 858914 - Make CreateTexturedEffect take SurfaceFormat + TextureSource instead of TextureHost. r=Bas 2013-07-24 17:34:09 +02:00
Nicholas Cameron
62a6b6a6e5 Bug 895369. Add some asserts to ThebesLayerBuffer. r=mattwoodrow 2013-07-24 18:46:27 +12:00
Jim Chen
28766dbc6a Bug 881018 - Crash when TiledLayerBuffer::GetScaledTileLength returns 0; r=cwiiis 2013-07-24 11:17:49 -04:00
Jim Chen
b95fd80400 Backout f26e4c26ce4a (bug 881018) to land a different patch 2013-07-24 11:10:55 -04:00
David Zbarsky
89fa9ed5fb Bug 895116: Fix masking with BasicCompositor r=mattwoodrow 2013-07-23 16:38:46 -07:00
Bill McCloskey
56463b4279 Bug 896651 - Need to clean up resources for out-of-process layer trees when shutting down (r=mattwoodrow) 2013-07-23 14:53:22 -07:00
Botond Ballo
f79359461b Bug 895904 - Hook up NativePanZoomController.abortAnimation(). r=kats 2013-07-23 16:41:22 -04:00
Brian R. Bondy
ffa4a02e06 Bug 869940 - Fix scaling issue with high dpi devices. r=kats 2013-07-25 13:15:10 -04:00
Brian R. Bondy
98b679c2f8 Bug 869940 - Implement pan start/end notifications from APZC. r=kats 2013-07-25 13:15:06 -04:00
Ehsan Akhgari
3717325909 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
Joshua Cranmer
bb26e8f816 Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar
--HG--
extra : rebase_source : ce24ab345baa48104328e3c101b7266a31e81870
2013-07-11 15:21:45 -05:00
Joshua Cranmer
32dfbcdb91 Bug 884061 - Part 3i: Use NS_DECL_THREADSAFE_ISUPPORTS in gfx/, r=roc
--HG--
extra : rebase_source : 130357bc9a7ad66cb0574f7bf3ac69e1c3f4a2ff
2013-07-18 21:23:31 -05:00
Botond Ballo
ffdcf14f78 Bug 859929 - Make AsyncPanZoomController work with progressive tile painting on Fennec. r=kats 2013-07-22 22:33:05 -04:00
Nicholas Cameron
7b970f96bc Bug 756606. Implement CreateRenderTargetFromSource. r=Bas 2013-07-23 11:07:49 +12:00
Nicholas Cameron
63b1b6b28c Bug 756606. Fix a bug in EnsureAllocated. r=Bas 2013-07-23 11:05:49 +12:00
Nicholas Cameron
0e08ffc8b2 Bug 756606; formatting nits for the d3d11 compositor. r=Bas 2013-07-23 11:05:04 +12:00
Ed Morley
ae26701147 Merge mozilla-central and inbound 2013-07-22 16:52:23 +01:00
Ed Morley
b1cb3918fd Merge latest green birch changeset and mozilla-central 2013-07-22 16:18:53 +01:00
Birunthan Mohanathas
60a64dee75 Bug 784739 - Switch from NULL to nullptr in gfx/layers/; r=ehsan
--HG--
extra : rebase_source : d6b0d229e1bdbe53c515b13c73c7b53839d9c756
2013-07-20 11:48:55 +03:00
Birunthan Mohanathas
25090caac6 Bug 784739 - Switch from NULL to nullptr in gfx/layers/opengl/; r=joe
--HG--
extra : rebase_source : 65e2c8e72dc4b20ef9aa50688c9320792fca69ee
2013-07-20 11:48:55 +03:00
Birunthan Mohanathas
a6c780dc22 Bug 784739 - Switch from NULL to nullptr in gfx/layers/ipc/; r=ehsan
--HG--
extra : rebase_source : 36cb1b9738de269a10cea871242b0b51588d0f3b
2013-07-20 11:48:55 +03:00
Birunthan Mohanathas
c5fd62b084 Bug 784739 - Switch from NULL to nullptr in gfx/layers/d3d9/; r=ehsan
--HG--
extra : rebase_source : 6628eb59eef0bb828fbcff03ad967f7fc97c437d
2013-07-20 11:48:55 +03:00
Birunthan Mohanathas
24af72d1d5 Bug 784739 - Switch from NULL to nullptr in gfx/layers/d3d11/; r=ehsan
--HG--
extra : rebase_source : 9e5625a5318cfb79370c6e944bc9e651822ddd2c
2013-07-20 11:48:55 +03:00
Birunthan Mohanathas
45adea6c72 Bug 784739 - Switch from NULL to nullptr in gfx/layers/d3d10/; r=ehsan
--HG--
extra : rebase_source : 69b7ab7e4aa0eed92d597451bcab820f9d5c3957
2013-07-20 11:48:55 +03:00
Birunthan Mohanathas
fd8b442a08 Bug 784739 - Switch from NULL to nullptr in gfx/layers/composite/; r=ehsan
--HG--
extra : rebase_source : c0f144ec277ed64f32c584f1be9e38bac3d1dde3
2013-07-20 11:48:55 +03:00
Chris Lord
8c0e0a398a Bug 886298 - Convert Layers fixed position margins to typed units. r=kats 2013-07-22 09:50:13 +01:00
Chris Lord
5bcdfe829a Bug 886298 - Convert Layers fixed position anchor to typed units. r=kats 2013-07-22 09:50:09 +01:00
Chris Lord
e4a02f9145 Bug 876542 - Restore async pan/zoom compensation behaviour during overscroll. r=roc
Bug 876542 introduces a patch that reworks how we maintain the position of
fixed position layers, but didn't handle overscroll/zoom. This restores the old
behaviour in this situation.
2013-07-22 09:50:07 +01:00
Chris Lord
67c9718706 Bug 876542 - Restore async fixed layer margin animation. r=roc, kats
Restore the reconciliation between content document fixed position margins at
render time and the fixed layer margins as retrieved via SyncViewportInfo
during async panning/zooming.
2013-07-22 09:50:05 +01:00
David Zbarsky
37dea7b59f Bug 895116: CreateBasicDeprecatedTextureHost should pass along the texture flags r=mattwoodrow 2013-07-21 04:16:28 -07:00
Jed Davis
161ecbbbcb Bug 895722 - Don't remove elements from mDurations if it's empty. r=BenWa 2013-07-19 21:20:11 -04:00
James Willcox
d7e45d009a Bug 894405 - fix leaks on a CLOSED TREE
--HG--
extra : rebase_source : d96236c0c9c370bdb055d3ab197707d48f8afe80
2013-07-19 00:23:07 -04:00
Matt Woodrow
95f126bb35 Bug 894891 - Follow-up to fix bustage, remove unused shader from the enum. CLOSED TREE 2013-07-19 00:10:21 -04:00
Matt Woodrow
e5615c4e91 Bug 885580 - Make sure that Compositor::GetBackend is only used [Cfrom the compositor thread. r=nical 2013-06-27 11:30:52 +12:00
Matt Woodrow
91e1d99b69 Bug 889515 - Get rid of static sCompositorParent. r=nical 2013-07-11 22:32:09 -04:00
Matt Woodrow
25483332a6 Bug 894891 - Move texture transform from the RGBATextureLayerExternal shader into the vertex shader, and combine the two GL_TEXTURE_EXTERNAL shaders. r=jrmuziel 2013-07-18 23:05:06 -04:00
Matt Woodrow
39cbcffa7c Bug 894891 - Use the correct shader for b2g video. r=nrc 2013-07-18 23:05:06 -04:00
James Willcox
efe7380da2 Bug 894405 - Ref GLContext before sending SurfaceStream to compositor r=jgilbert 2013-07-17 13:03:18 -04:00
Robert O'Callahan
ce6e479429 Bug 876542. Rework TransformFixedLayers so that it explicitly makes layer anchor points invariant under a change in transform of a specified ancestor layer. r=Cwiiis,kats 2013-06-24 13:34:33 +12:00
Ryan VanderMeulen
ba97a4cddb Merge m-c to inbound on a CLOSED TREE. 2013-07-18 14:53:05 -04:00
Ryan VanderMeulen
13f0d3990b Merge m-c to birch. 2013-07-18 14:47:54 -04:00
Jim Chen
d29289ef8f Bug 881018 - Save TiledLayerBuffer::mResolution to stack to help investigate crash; r=kats 2013-07-18 01:52:38 -04:00
Matt Woodrow
b2e24adee4 Bug 886667 - Just assert rather than aborting when our framebuffer is invalid. r=jrmuizel 2013-07-16 15:56:10 -04:00
Sotaro Ikeda
347aa4adb9 Bug 873937 - Extend ThebesLayerBuffer's height to more than 32. r=jmuizelaar 2013-07-18 10:06:46 -04:00
Gabriele Svelto
6f157c184f Bug 884188 - Resize small gralloc'd surfaces to work around issues when drawing small canvases on certain devices. r=nrc 2013-07-17 17:04:33 +02:00
Ed Morley
6ef7bbdfae Merge mozilla-central and inbound 2013-07-18 15:01:47 +01:00
Ryan VanderMeulen
2c9d81805a Backed out changeset b86c8fc67f5b (bug 873937) for causing bug 895976. 2013-07-19 21:12:18 -04:00
David Zbarsky
0159831b16 Bug 895116: Use an ImageSurface in CanvasClient2DUpdate r=mattwoodrow 2013-07-17 23:54:09 -07:00
Markus Stange
b70eb2c06d Bug 894925 - Hold a strong ref to the ImageContainer between DispatchImageClientUpdate and UpdateImageClientNow. r=nical 2013-07-18 08:33:28 +02:00
Matt Woodrow
c28ec6483b Bug 888048 - Use CreateThebesSurfaceAliasForDrawTarget_hack to avoid having multiple cairo_surface_quartz objects for a single CGContext. r=nrc 2013-07-17 23:24:15 -04:00
Matt Woodrow
319a8298fd Bug 875232 - Add a BGRX shader program that reads from GL_TEXTURE_RECTANGLE. r=jrmuziel 2013-07-17 23:24:15 -04:00
Matt Woodrow
434a7b577c Bug 875232 - Add SharedSurface_IOSurface for sharing textures on OSX. r=jgilbert 2013-07-17 23:24:15 -04:00
Matt Woodrow
15b6cbf471 Bug 875232 - Make alpha channel optional for MacIOSurface. r=BenWa 2013-07-17 23:24:14 -04:00
Chris Lord
9b5401f8fc Bug 869696 - Disable gralloc surfaces on the Geeksphone Peak. r=jrmuizel
Geeksphone distribute a known bad driver that has issues when using
gralloc-backed surfaces. Performance is much better just falling back to
shared memory.
2013-07-17 15:34:52 +01:00
Brian O'Keefe
f98dd45a72 Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps 2013-07-04 08:28:43 -04:00
Ryan VanderMeulen
47891859c5 Merge m-c to birch. 2013-07-12 13:31:17 -04:00
Oleg Romashin
edf122d6f9 Bug 889241 - ASSERTION: Invalid (negative) scale factor: 'sy >= 0.0'. r=ncameron 2013-07-12 09:24:23 -04:00
Benoit Girard
103cc87697 Bug 892861 - Remove useless -D flags 'IMPL_THEBES,_IMPL_NS_GFX,...'. r=glandium 2013-07-12 08:56:54 -04:00
Trevor Saunders
238525e2d8 bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal 2013-07-11 11:06:34 -04:00
Phil Ringnalda
eed52216ef Back out cb34d80e6fc8 (bug 889515) for 10.6 assertions
CLOSED TREE
2013-07-11 21:24:20 -07:00
Matt Woodrow
1e6914d288 Bug 889515 - Get rid of static sCompositorParent. r=nical 2013-07-11 22:32:09 -04:00