Changeset 70675 in webkit


Ignore:
Timestamp:
Oct 27, 2010 11:05:20 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-27 Kwang Yul Seo <skyul@company100.net>

Reviewed by James Robinson.

[BREWMP] Port graphics backend
https://bugs.webkit.org/show_bug.cgi?id=40275

Add PLATFORM(BREWMP) guard to skia's FontCustomPlatformData
to share OS(LINUX) implementation.

  • loader/CachedFont.cpp:
  • platform/graphics/skia/FontCustomPlatformData.cpp: (WebCore::FontCustomPlatformData::~FontCustomPlatformData): (WebCore::FontCustomPlatformData::fontPlatformData): (WebCore::createFontCustomPlatformData):
  • platform/graphics/skia/FontCustomPlatformData.h:
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r70669 r70675  
     12010-10-27  Kwang Yul Seo  <skyul@company100.net>
     2
     3        Reviewed by James Robinson.
     4
     5        [BREWMP] Port graphics backend
     6        https://bugs.webkit.org/show_bug.cgi?id=40275
     7
     8        Add PLATFORM(BREWMP) guard to skia's FontCustomPlatformData
     9        to share OS(LINUX) implementation.
     10
     11        * loader/CachedFont.cpp:
     12        * platform/graphics/skia/FontCustomPlatformData.cpp:
     13        (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
     14        (WebCore::FontCustomPlatformData::fontPlatformData):
     15        (WebCore::createFontCustomPlatformData):
     16        * platform/graphics/skia/FontCustomPlatformData.h:
     17
    1182010-10-27  Satish Sampath  <satish@chromium.org>
    219
  • trunk/WebCore/loader/CachedFont.cpp

    r70250 r70675  
    2828#include "CachedFont.h"
    2929
    30 #if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (OS(WINDOWS) || OS(LINUX) || OS(FREEBSD))) || PLATFORM(HAIKU) || OS(WINCE) || PLATFORM(ANDROID)
     30#if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(GTK) || (PLATFORM(CHROMIUM) && (OS(WINDOWS) || OS(LINUX) || OS(FREEBSD))) || PLATFORM(HAIKU) || OS(WINCE) || PLATFORM(ANDROID) || PLATFORM(BREWMP)
    3131#define STORE_FONT_CUSTOM_PLATFORM_DATA
    3232#endif
  • trunk/WebCore/platform/graphics/skia/FontCustomPlatformData.cpp

    r70250 r70675  
    22 * Copyright (C) 2007 Apple Computer, Inc.
    33 * Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved.
     4 * Copyright (C) 2010 Company 100, Inc.
    45 *
    56 * Redistribution and use in source and binary forms, with or without
     
    3738#include "ChromiumBridge.h"
    3839#include "OpenTypeUtilities.h"
    39 #elif OS(LINUX) || OS(FREEBSD)
     40#elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP)
    4041#include "SkStream.h"
    4142#endif
     
    4849#if OS(WINDOWS)
    4950#include <objbase.h>
    50 #elif OS(LINUX) || OS(FREEBSD)
     51#elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP)
    5152#include <cstring>
    5253#endif
     
    5960    if (m_fontReference)
    6061        RemoveFontMemResourceEx(m_fontReference);
    61 #elif OS(LINUX) || OS(FREEBSD)
     62#elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP)
    6263    if (m_fontReference)
    6364        m_fontReference->unref();
     
    100101    HFONT hfont = CreateFontIndirect(&logFont);
    101102    return FontPlatformData(hfont, size);
    102 #elif OS(LINUX) || OS(FREEBSD)
     103#elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP)
    103104    ASSERT(m_fontReference);
    104105    return FontPlatformData(m_fontReference, "", size, bold && !m_fontReference->isBold(), italic && !m_fontReference->isItalic());
     
    124125#endif
    125126
    126 #if OS(LINUX) || OS(FREEBSD)
     127#if OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP)
    127128class RemoteFontStream : public SkStream {
    128129public:
     
    190191        return 0;
    191192    return new FontCustomPlatformData(fontReference, fontName);
    192 #elif OS(LINUX) || OS(FREEBSD)
     193#elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP)
    193194    RemoteFontStream* stream = new RemoteFontStream(buffer);
    194195    SkTypeface* typeface = SkTypeface::CreateFromStream(stream);
  • trunk/WebCore/platform/graphics/skia/FontCustomPlatformData.h

    r70250 r70675  
    4141#include "PlatformString.h"
    4242#include <windows.h>
    43 #elif OS(LINUX) || OS(FREEBSD)
     43#elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP)
    4444#include "SkTypeface.h"
    4545#endif
     
    5656        , m_name(name)
    5757    {}
    58 #elif OS(LINUX) || OS(FREEBSD)
     58#elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP)
    5959    explicit FontCustomPlatformData(SkTypeface* typeface)
    6060        : m_fontReference(typeface)
     
    7272    HANDLE m_fontReference;
    7373    String m_name;
    74 #elif OS(LINUX) || OS(FREEBSD)
     74#elif OS(LINUX) || OS(FREEBSD) || PLATFORM(BREWMP)
    7575    SkTypeface* m_fontReference;
    7676#endif
Note: See TracChangeset for help on using the changeset viewer.