Commit a538b144 authored by jbroman@chromium.org's avatar jbroman@chromium.org

Remove GraphicsContextCG.

We haven't supported Core Graphics in some time.
Only one of these functions is implemented at all, and it  is unused.

BUG=381789

Review URL: https://codereview.chromium.org/315403007

git-svn-id: svn://svn.chromium.org/blink/trunk@175724 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b02df768
......@@ -49,7 +49,6 @@
#import "platform/graphics/GraphicsContextStateSaver.h"
#import "platform/graphics/Image.h"
#import "platform/graphics/ImageBuffer.h"
#import "platform/graphics/cg/GraphicsContextCG.h"
#import "platform/mac/ColorMac.h"
#import "platform/mac/LocalCurrentGraphicsContext.h"
#import "platform/mac/ThemeMac.h"
......
......@@ -457,7 +457,6 @@
'geometry/mac/IntPointMac.mm',
'geometry/mac/IntRectMac.mm',
'geometry/mac/IntSizeMac.mm',
'graphics/cg/GraphicsContextCG.h',
'graphics/cpu/arm/WebGLImageConversionNEON.h',
'graphics/cpu/arm/filters/FEBlendNEON.h',
'graphics/cpu/arm/filters/FECompositeArithmeticNEON.h',
......
......@@ -52,10 +52,6 @@
#include "wtf/Assertions.h"
#include "wtf/MathExtras.h"
#if OS(MACOSX)
#include <ApplicationServices/ApplicationServices.h>
#endif
using namespace std;
using blink::WebBlendMode;
......@@ -1726,13 +1722,7 @@ PassRefPtr<SkColorFilter> GraphicsContext::WebCoreColorFilterToSkiaColorFilter(C
return nullptr;
}
#if OS(MACOSX)
CGColorSpaceRef PLATFORM_EXPORT deviceRGBColorSpaceRef()
{
static CGColorSpaceRef deviceSpace = CGColorSpaceCreateDeviceRGB();
return deviceSpace;
}
#else
#if !OS(MACOSX)
void GraphicsContext::draw2xMarker(SkBitmap* bitmap, int index)
{
const SkPMColor lineColor = lineColors(index);
......
/*
* Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef GraphicsContextCG_h
#define GraphicsContextCG_h
#include "platform/graphics/GraphicsContext.h"
typedef struct CGColorSpace *CGColorSpaceRef;
namespace WebCore {
CGColorSpaceRef PLATFORM_EXPORT deviceRGBColorSpaceRef();
CGColorSpaceRef PLATFORM_EXPORT sRGBColorSpaceRef();
CGColorSpaceRef PLATFORM_EXPORT linearRGBColorSpaceRef();
}
#endif
......@@ -43,7 +43,6 @@
#include "qcms.h"
#if OS(MACOSX)
#include <ApplicationServices/ApplicationServices.h>
#include "platform/graphics/cg/GraphicsContextCG.h"
#include "wtf/RetainPtr.h"
#endif
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment