Changeset 90661 in webkit


Ignore:
Timestamp:
Jul 8, 2011, 1:28:54 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

remove (empty) indirection between GraphicsContextPlatformPrivate and PlatformContextSkia
https://bugs.webkit.org/show_bug.cgi?id=64178

Patch by Mike Reed <reed@google.com> on 2011-07-08
Reviewed by Stephen White.

No new tests. no functionality change, other than removing an indirection that is not needed

  • platform/graphics/GraphicsContext.h:
  • platform/graphics/skia/GraphicsContextPlatformPrivate.h: Removed.
  • platform/graphics/skia/GraphicsContextSkia.cpp:

(WebCore::GraphicsContext::platformInit):
(WebCore::GraphicsContext::platformDestroy):
(WebCore::GraphicsContext::platformContext):

Location:
trunk/Source/WebCore
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r90654 r90661  
     12011-07-08  Mike Reed  <reed@google.com>
     2
     3        remove (empty) indirection between GraphicsContextPlatformPrivate and PlatformContextSkia
     4        https://bugs.webkit.org/show_bug.cgi?id=64178
     5
     6        Reviewed by Stephen White.
     7
     8        No new tests. no functionality change, other than removing an indirection that is not needed
     9
     10        * platform/graphics/GraphicsContext.h:
     11        * platform/graphics/skia/GraphicsContextPlatformPrivate.h: Removed.
     12        * platform/graphics/skia/GraphicsContextSkia.cpp:
     13        (WebCore::GraphicsContext::platformInit):
     14        (WebCore::GraphicsContext::platformDestroy):
     15        (WebCore::GraphicsContext::platformContext):
     16
    1172011-07-08  Jeffrey Pfau  <jpfau@apple.com>
    218
  • trunk/Source/WebCore/platform/graphics/GraphicsContext.h

    r90406 r90661  
    8080namespace WebCore {
    8181class PlatformContextSkia;
     82typedef PlatformContextSkia GraphicsContextPlatformPrivate;
    8283}
    8384typedef WebCore::PlatformContextSkia PlatformGraphicsContext;
     
    121122    class Font;
    122123    class Generator;
     124#if !USE(SKIA)
    123125    class GraphicsContextPlatformPrivate;
     126#endif
    124127    class ImageBuffer;
    125128    class IntRect;
  • trunk/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp

    r89366 r90661  
    3737#include "Gradient.h"
    3838#include "GraphicsContextGPU.h"
    39 #include "GraphicsContextPlatformPrivate.h"
    4039#include "ImageBuffer.h"
    4140#include "IntRect.h"
     
    227226void GraphicsContext::platformInit(PlatformGraphicsContext* gc)
    228227{
    229     m_data = new GraphicsContextPlatformPrivate(gc);
    230     setPaintingDisabled(!gc || !platformContext()->canvas());
     228    // the caller owns the gc
     229    m_data = gc;
     230    setPaintingDisabled(!gc || !gc->canvas());
    231231}
    232232
    233233void GraphicsContext::platformDestroy()
    234234{
    235     delete m_data;
    236235}
    237236
     
    239238{
    240239    ASSERT(!paintingDisabled());
    241     return m_data->context();
     240    return m_data;
    242241}
    243242
Note: See TracChangeset for help on using the changeset viewer.