Remove unused did_first_* fields from InternalDocumentStateData.
[chromium-blink-merge.git] / skia / ext / platform_device_mac.cc
blob065b7670556380c54872f7ebea5f0192b712d73a
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "skia/ext/platform_device.h"
6 #include "skia/ext/bitmap_platform_device.h"
8 #import <ApplicationServices/ApplicationServices.h>
9 #include "skia/ext/skia_utils_mac.h"
10 #include "third_party/skia/include/core/SkMatrix.h"
11 #include "third_party/skia/include/core/SkPath.h"
12 #include "third_party/skia/include/core/SkTypes.h"
13 #include "third_party/skia/include/core/SkUtils.h"
15 namespace skia {
17 CGContextRef GetBitmapContext(SkBaseDevice* device) {
18 PlatformDevice* platform_device = GetPlatformDevice(device);
19 if (platform_device)
20 return platform_device->GetBitmapContext();
22 return NULL;
25 CGContextRef PlatformDevice::BeginPlatformPaint() {
26 return GetBitmapContext();
29 void PlatformDevice::EndPlatformPaint() {
30 // Flushing will be done in onAccessBitmap.
33 } // namespace skia