Changeset 80260 in webkit


Ignore:
Timestamp:
Mar 3, 2011 11:01:54 AM (13 years ago)
Author:
andersca@apple.com
Message:

2011-03-03 Anders Carlsson <andersca@apple.com>

Reviewed by Darin Adler.

Improve WebCore build time by ~5%
https://bugs.webkit.org/show_bug.cgi?id=55688

Forward declare the CATransform3D and CGAffineTransform structs instead of including
large chunks of QuartzCore and Core Graphics.

On an 8 core Mac Pro, this sped up building WebCore by about 5%.

  • platform/graphics/ca/GraphicsLayerCA.cpp:
  • platform/graphics/ca/TransformationMatrixCA.cpp:
  • platform/graphics/transforms/TransformationMatrix.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r80258 r80260  
     12011-03-03  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Improve WebCore build time by ~5%
     6        https://bugs.webkit.org/show_bug.cgi?id=55688
     7
     8        Forward declare the CATransform3D and CGAffineTransform structs instead of including
     9        large chunks of QuartzCore and Core Graphics.
     10
     11        On an 8 core Mac Pro, this sped up building WebCore by about 5%.
     12
     13        * platform/graphics/ca/GraphicsLayerCA.cpp:
     14        * platform/graphics/ca/TransformationMatrixCA.cpp:
     15        * platform/graphics/transforms/TransformationMatrix.h:
     16
    1172011-03-03  Andrey Kosyakov  <caseq@chromium.org>
    218
  • trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp

    r79168 r80260  
    3939#include "SystemTime.h"
    4040#include "TranslateTransformOperation.h"
     41#include <QuartzCore/CATransform3D.h>
    4142#include <limits.h>
    4243#include <wtf/CurrentTime.h>
  • trunk/Source/WebCore/platform/graphics/ca/TransformationMatrixCA.cpp

    r73540 r80260  
    2525
    2626#include "config.h"
     27#include "TransformationMatrix.h"
    2728
    2829#if PLATFORM(CA)
    2930
    30 #include "TransformationMatrix.h"
    31 
    3231#include "FloatConversion.h"
     32#include <QuartzCore/CATransform3D.h>
    3333
    3434namespace WebCore {
  • trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.h

    r79578 r80260  
    3333
    3434#if PLATFORM(CA)
    35 #include <QuartzCore/CATransform3D.h>
     35typedef struct CATransform3D CATransform3D;
    3636#endif
    3737#if PLATFORM(CG)
    38 #include <CoreGraphics/CGAffineTransform.h>
     38typedef struct CGAffineTransform CGAffineTransform;
    3939#elif PLATFORM(CAIRO)
    4040#include <cairo.h>
Note: See TracChangeset for help on using the changeset viewer.