Platform/GFX: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(→‎Testing, replaying, building Moz2D: Fill out windows build details)
Line 59: Line 59:
* Windows
* Windows
** Dependencies:
** Dependencies:
*** VS2012
*** [http://www.microsoft.com/visualstudio/eng/downloads VS2012], Express 2012 for Windows Desktop is fine
*** QtSDK if you plan on using player2d
*** A default Cairo and Skia build in the cairo/skia directories in the parent directory of Moz2D if you plan to use skia/cairo
*** A default cairo and skia build in the cairo/skia directories in the parent directory of Moz2D if you plan to use skia/cairo
*** [http://qt-project.org/downloads QtSDK] if you plan on using player2d
** hg clone http://hg.mozilla.org/users/bschouten_mozilla.com/moz2d
**** Use the VS2012 32-bit version
** Open the gfx2d visual studio solution
**** You will need at least version 5.1.0 since earlier versions don't have a 32-bit binary for VS2012 and have a bug ([https://bugreports.qt-project.org/browse/QTBUG-30822 QTBUG-30822]) that cause Visual Studio to pick up the wrong Windows SDK headers when building in an environment with both VS2010 and VS2012 installed.
**** Older versions can be used if needed. Use one of the installers and select "Source Components" when installing. Then, from a VS2012 command prompt run:
***** <code>C:\Qt\Qt5.0.2\5.0.2\Src\qtbase> configure -opensource -confirm-license -static -debug-and-release -no-angle -no-opengl -nomake examples -nomake tests -platform win32-msvc2012</code>
***** <code>nmake</code>
***** (Requires [http://www.activestate.com/activeperl Perl])
** <code>hg clone http://hg.mozilla.org/users/bschouten_mozilla.com/moz2d</code>
** Open the <code>gfx2d.sln</code> visual studio solution
** Build the solution
** Build the solution
** For player2d, run qmake on player2d.pro and build.
*** Build the Debug configuration first since it generates the shader code
*** Don't build Release (Skia) without installing Skia / Cairo first
** For player2d, from a VS2012 command prompt:
*** Go to the <code>moz2d</code> repository clone, <code>cd c:\users\me\moz2d</code>
*** <code>mkdir player2d-build</code>
*** <code>cd player2d-build</code>
*** <code>\qt\Qt5.1.0\5.1.0\msvc2012\bin\qmake.exe ..\player2d\player2d.pro -tp vc -spec win32-msvc2012</code><br>(The final <code>-spec win32-msvc2012</code> might not be necessary, particularly if you only have one version of Visual Studio installed)
*** Open the generated <code>player2d.vcxproj</code> file from the <code>player2d-build</code> directory in VS2012.
*** Press F7 to build.
*** If you get an error about <code>surfaceview.h</code> not being found when referenced from <code>ui_sourcesurfaceview.h</code>, change the line that reads:<br><code>#include &lt;surfaceview.h&gt;</code><br>to<br><code>#include "surfaceview.h"</code>
*** Add the directory containing the QT DLLs to your path (e.g. C:\qt\Qt5.1.0\5.1.0\msvc2012\bin)
*** Run player2d


=== Documentation ===
=== Documentation ===

Revision as of 04:24, 7 August 2013

Details on the active work

SkiaGL

  • Joint effort with Fennec, Taipei teams
  • Taipei visited Toronto, May 13-17, 2013
  • Toronto et al. visited Taipei May 20-24, 2013
  • Visiting Skia team in Chapel Hill, August 5-6, 2013
  • See Mobile SkiaGL page
  • Some notes about Gralloc

Scrolling (async, subframe panning)

  • B2G (performance) target applications: gallery, contacts, applist, browser, e-mail see here for details

Off main thread ...

OMT image animation

Moz2D (Azure)

WebGL

Testing, replaying, building Moz2D

  • Linux/Mac
  • Windows
    • Dependencies:
      • VS2012, Express 2012 for Windows Desktop is fine
      • A default Cairo and Skia build in the cairo/skia directories in the parent directory of Moz2D if you plan to use skia/cairo
      • QtSDK if you plan on using player2d
        • Use the VS2012 32-bit version
        • You will need at least version 5.1.0 since earlier versions don't have a 32-bit binary for VS2012 and have a bug (QTBUG-30822) that cause Visual Studio to pick up the wrong Windows SDK headers when building in an environment with both VS2010 and VS2012 installed.
        • Older versions can be used if needed. Use one of the installers and select "Source Components" when installing. Then, from a VS2012 command prompt run:
          • C:\Qt\Qt5.0.2\5.0.2\Src\qtbase> configure -opensource -confirm-license -static -debug-and-release -no-angle -no-opengl -nomake examples -nomake tests -platform win32-msvc2012
          • nmake
          • (Requires Perl)
    • hg clone http://hg.mozilla.org/users/bschouten_mozilla.com/moz2d
    • Open the gfx2d.sln visual studio solution
    • Build the solution
      • Build the Debug configuration first since it generates the shader code
      • Don't build Release (Skia) without installing Skia / Cairo first
    • For player2d, from a VS2012 command prompt:
      • Go to the moz2d repository clone, cd c:\users\me\moz2d
      • mkdir player2d-build
      • cd player2d-build
      • \qt\Qt5.1.0\5.1.0\msvc2012\bin\qmake.exe ..\player2d\player2d.pro -tp vc -spec win32-msvc2012
        (The final -spec win32-msvc2012 might not be necessary, particularly if you only have one version of Visual Studio installed)
      • Open the generated player2d.vcxproj file from the player2d-build directory in VS2012.
      • Press F7 to build.
      • If you get an error about surfaceview.h not being found when referenced from ui_sourcesurfaceview.h, change the line that reads:
        #include <surfaceview.h>
        to
        #include "surfaceview.h"
      • Add the directory containing the QT DLLs to your path (e.g. C:\qt\Qt5.1.0\5.1.0\msvc2012\bin)
      • Run player2d

Documentation

Development Planning

Feature Planning

Team Meetings

2013 Q1 2013 Q2 2013 Q3 2013 Q4
  • 7 October 2013 (5:30pm PDT)
  • 21 October 2013 (2:30pm PDT)
  • 4 November 2013 (5:30pm PDT)
  • 18 November 2013 (2:30pm PDT)
  • 2 December 2013 (5:30pm PDT)
  • 16 December 2013 (2:30pm PDT)
2012 Q1 2012 Q2 2012 Q3 2012 Q4


Other Information