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 #ifndef SKIA_EXT_PLATFORM_DEVICE_H_ | 5 #ifndef SKIA_EXT_PLATFORM_DEVICE_H_ |
6 #define SKIA_EXT_PLATFORM_DEVICE_H_ | 6 #define SKIA_EXT_PLATFORM_DEVICE_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // operations drawing into the bitmap. This is possibly heavyweight, so it | 58 // operations drawing into the bitmap. This is possibly heavyweight, so it |
59 // should exist only during one pass of rendering. | 59 // should exist only during one pass of rendering. |
60 virtual CGContextRef GetBitmapContext(const SkMatrix& transform, | 60 virtual CGContextRef GetBitmapContext(const SkMatrix& transform, |
61 const SkIRect& clip_bounds) = 0; | 61 const SkIRect& clip_bounds) = 0; |
62 #endif | 62 #endif |
63 | 63 |
64 private: | 64 private: |
65 // The DC that corresponds to the bitmap, used for GDI operations drawing | 65 // The DC that corresponds to the bitmap, used for GDI operations drawing |
66 // into the bitmap. This is possibly heavyweight, so it should be existant | 66 // into the bitmap. This is possibly heavyweight, so it should be existant |
67 // only during one pass of rendering. | 67 // only during one pass of rendering. |
68 virtual PlatformSurface BeginPlatformPaint(const SkMatrix& transform, | 68 virtual NativeDrawingContext BeginPlatformPaint(const SkMatrix& transform, |
69 const SkIRect& clip_bounds); | 69 const SkIRect& clip_bounds); |
70 | 70 |
71 friend class ScopedPlatformPaint; | 71 friend class ScopedPlatformPaint; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace skia | 74 } // namespace skia |
75 | 75 |
76 #endif // SKIA_EXT_PLATFORM_DEVICE_H_ | 76 #endif // SKIA_EXT_PLATFORM_DEVICE_H_ |
OLD | NEW |