| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Assume that a vectorial device means a VectorPlatformDeviceSkia, we need | 202 // Assume that a vectorial device means a VectorPlatformDeviceSkia, we need |
| 203 // to unwrap the embedded SkPDFDevice. | 203 // to unwrap the embedded SkPDFDevice. |
| 204 VectorPlatformDeviceSkia* vector_device = | 204 VectorPlatformDeviceSkia* vector_device = |
| 205 static_cast<VectorPlatformDeviceSkia*>(device); | 205 static_cast<VectorPlatformDeviceSkia*>(device); |
| 206 real_device = vector_device->pdf_device_.get(); | 206 real_device = vector_device->pdf_device_.get(); |
| 207 } | 207 } |
| 208 pdf_device_->drawDevice(draw, real_device, x, y, paint); | 208 pdf_device_->drawDevice(draw, real_device, x, y, paint); |
| 209 } | 209 } |
| 210 | 210 |
| 211 #if defined(OS_WIN) | 211 #if defined(OS_WIN) |
| 212 void VectorPlatformDeviceSkia::drawToHDC(HDC dc, | 212 void VectorPlatformDeviceSkia::DrawToNativeContext(HDC dc, |
| 213 int x, | 213 int x, |
| 214 int y, | 214 int y, |
| 215 const RECT* src_rect) { | 215 const RECT* src_rect) { |
| 216 SkASSERT(false); | 216 SkASSERT(false); |
| 217 } | 217 } |
| 218 #endif | 218 #endif |
| 219 | 219 |
| 220 SkDeviceFactory* VectorPlatformDeviceSkia::onNewDeviceFactory() { | 220 SkDeviceFactory* VectorPlatformDeviceSkia::onNewDeviceFactory() { |
| 221 return SkNEW(VectorPlatformDeviceSkiaFactory); | 221 return SkNEW(VectorPlatformDeviceSkiaFactory); |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace skia | 224 } // namespace skia |
| OLD | NEW |