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

13 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote 7d6edf2c51 Bug 1239864 (part 10) - Use the new rect iterators in view/ and widget/. r=roc.
--HG--
extra : rebase_source : 3d1c6ff6a1a146bd74ce57e09146bba7ea075232
2016-01-18 17:20:59 -08:00
Nicholas Nethercote 489c83b1dd Bug 1223690 - Remove implicit Rect conversions. r=jrmuizel.
gfxRect can be implicitly constructed from IntRect, which hides a number of
implicit conversion points, makes Moz2Dification harder, and has some
surprising effects.

This patch removes the implicit constructor and replaces it with an explicit
conversion function:

  gfxRect ThebesRect(const IntRect&)

This is the obvious outcome of removing the constructor.

But there is also a second, less obvious outcome: currently we do a number of
IntRect-to-Rect conversions using ToRect(), which (surprisingly) works because
it turns into an implicit IntRect-to-gfxRect conversion (via the implicit
constructor) combined with an explicit gfxRect-to-Rect conversion (via
ToRect()). I.e. we do two conversions, going from a Moz2D type to a Thebes
type and back to a Moz2D type!

So this patch also changes these conversion. It moves this existing function:

  Rect ToRect(const IntRect&)

from gfx2DGlue.h -- where it doesn't really belong because it doesn't involve
any Thebes types -- to gfx/2d/Rect.h, templatifying and renaming it as
IntRectToRect() in the process.

The rest of the patch deals with fall-out from these changes. The call sites
change as follows:

- IntRect-to-gfxRect conversions:
  - old: implicit
  - new: ThebesRect()

- IntRect-to-Rect conversions:
  - old: ToRect()
  - new: IntRectToRect()

--HG--
extra : rebase_source : e4e4c2ad10b36ecad4d57d1630158f3374e403be
2015-11-11 14:23:14 -08:00
Sotaro Ikeda 2e1a40399a Bug 1169093 - Do not use HWC when a region of layer is too small r=mattwoodrow 2015-06-04 07:07:36 -07:00
Sotaro Ikeda ab264f3007 Bug 1100110 - Fix ScaleMode handling of ImageLayer and HwcComposer2D r=mattwoodrow 2014-12-06 17:12:50 -08:00
Sushil Chauhan 955a0c0c26 Bug 1078189 - Back out bug 1059023 for causing regression. r=dwilson 2014-10-06 16:28:46 -07:00
Sushil Chauhan 3cadfcb55f Bug 1059023 - Do not compose layer hidden under the opaque layer. r=mattwoodrow 2014-08-28 10:44:03 -07:00
David Zbarsky 7003f52466 Bug 952977: Various other changes of gfx3DMatrix -> Matrix4x4 r=nical 2014-08-22 09:40:02 -04:00
Ed Morley 92579c3a89 Backed out changeset 3325dc888b50 (bug 952977) for build failures
--HG--
extra : rebase_source : b29c343cc0e4d8df5c927742657fa93895b738d1
2014-08-21 16:57:44 +01:00
David Zbarsky da8302205e Bug 952977: Various other changes of gfx3DMatrix -> Matrix4x4 r=nical 2014-08-21 11:35:28 -04:00
Benoit Girard 391d268b8b Bug 1014741 - Don't spam skip layer. r=sotaro 2014-05-22 16:07:48 -04:00
Sotaro Ikeda f640a7757e Bug 957276 - Fix YFlipped buffer's source crop r=sushil 2014-02-22 04:56:02 -08:00
Diego Wilson 24367859fe Bug 896765 - Move the common utilities from HwcComposer2D to HwcUtils. r=ncameron 2013-08-29 08:17:59 -07:00
Diego Wilson 18b78d9e4c Bug 896765 - Add new file for the common utility functions for HwcComposer2D. r=nrc
--HG--
rename : widget/gonk/HwcComposer2D.cpp => widget/gonk/HwcUtils.cpp
2013-08-26 10:11:24 -07:00