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 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ | 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ |
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ | 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 const SkPaint& paint); | 77 const SkPaint& paint); |
78 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, | 78 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, |
79 int vertexCount, const SkPoint verts[], | 79 int vertexCount, const SkPoint verts[], |
80 const SkPoint texs[], const SkColor colors[], | 80 const SkPoint texs[], const SkColor colors[], |
81 SkXfermode* xmode, const uint16_t indices[], | 81 SkXfermode* xmode, const uint16_t indices[], |
82 int indexCount, const SkPaint& paint); | 82 int indexCount, const SkPaint& paint); |
83 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, | 83 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, |
84 const SkPaint&); | 84 const SkPaint&); |
85 | 85 |
86 #if defined(OS_WIN) | 86 #if defined(OS_WIN) |
87 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); | 87 virtual void DrawToNativeContext(HDC dc, int x, int y, const RECT* src_rect); |
88 #endif | 88 #endif |
89 | 89 |
90 protected: | 90 protected: |
91 // Override from SkDevice (through PlatformDevice). | 91 // Override from SkDevice (through PlatformDevice). |
92 virtual SkDeviceFactory* onNewDeviceFactory(); | 92 virtual SkDeviceFactory* onNewDeviceFactory(); |
93 | 93 |
94 private: | 94 private: |
95 SkRefPtr<SkPDFDevice> pdf_device_; | 95 SkRefPtr<SkPDFDevice> pdf_device_; |
96 SkRefPtr<BitmapPlatformDevice> raster_surface_; | 96 SkRefPtr<BitmapPlatformDevice> raster_surface_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); | 98 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace skia | 101 } // namespace skia |
102 | 102 |
103 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ | 103 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ |
OLD | NEW |