OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "skia/ext/vector_platform_device_skia.h" | 5 #include "skia/ext/vector_platform_device_skia.h" |
6 | 6 |
7 #include "skia/ext/bitmap_platform_device.h" | 7 #include "skia/ext/bitmap_platform_device.h" |
8 #include "third_party/skia/include/core/SkClipStack.h" | 8 #include "third_party/skia/include/core/SkClipStack.h" |
9 #include "third_party/skia/include/core/SkDraw.h" | 9 #include "third_party/skia/include/core/SkDraw.h" |
10 #include "third_party/skia/include/core/SkRect.h" | 10 #include "third_party/skia/include/core/SkRect.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 #elif defined(OS_MACOSX) | 70 #elif defined(OS_MACOSX) |
71 void VectorPlatformDeviceSkia::DrawToNativeContext(CGContext* context, int x, | 71 void VectorPlatformDeviceSkia::DrawToNativeContext(CGContext* context, int x, |
72 int y, const CGRect* src_rect) { | 72 int y, const CGRect* src_rect) { |
73 SkASSERT(false); | 73 SkASSERT(false); |
74 } | 74 } |
75 | 75 |
76 CGContextRef VectorPlatformDeviceSkia::GetBitmapContext() { | 76 CGContextRef VectorPlatformDeviceSkia::GetBitmapContext() { |
77 SkASSERT(false); | 77 SkASSERT(false); |
78 return NULL; | 78 return NULL; |
79 } | 79 } |
80 #elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_OPENBSD) | 80 #elif defined(OS_POSIX) |
81 void VectorPlatformDeviceSkia::DrawToNativeContext( | 81 void VectorPlatformDeviceSkia::DrawToNativeContext( |
82 PlatformSurface surface, int x, int y, const PlatformRect* src_rect) { | 82 PlatformSurface surface, int x, int y, const PlatformRect* src_rect) { |
83 // Should never be called on Linux. | 83 // Should never be called on Linux. |
84 SkASSERT(false); | 84 SkASSERT(false); |
85 } | 85 } |
86 #endif | 86 #endif |
87 | 87 |
88 } // namespace skia | 88 } // namespace skia |
OLD | NEW |