Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: skia/ext/vector_platform_device_skia.cc

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Syncing merge conflicts. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « skia/ext/vector_platform_device_skia.h ('k') | skia/skia.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « skia/ext/vector_platform_device_skia.h ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698