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_SKIA_UTILS_MAC_H_ | 5 #ifndef SKIA_EXT_SKIA_UTILS_MAC_H_ |
6 #define SKIA_EXT_SKIA_UTILS_MAC_H_ | 6 #define SKIA_EXT_SKIA_UTILS_MAC_H_ |
7 | 7 |
8 #include <ApplicationServices/ApplicationServices.h> | 8 #include <ApplicationServices/ApplicationServices.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 public: | 110 public: |
111 explicit SkiaBitLocker(SkCanvas* canvas); | 111 explicit SkiaBitLocker(SkCanvas* canvas); |
112 ~SkiaBitLocker(); | 112 ~SkiaBitLocker(); |
113 CGContextRef cgContext(); | 113 CGContextRef cgContext(); |
114 | 114 |
115 private: | 115 private: |
116 void releaseIfNeeded(); | 116 void releaseIfNeeded(); |
117 SkCanvas* canvas_; | 117 SkCanvas* canvas_; |
118 CGContextRef cgContext_; | 118 CGContextRef cgContext_; |
119 SkBitmap bitmap_; | 119 SkBitmap bitmap_; |
| 120 SkIPoint bitmapOffset_; |
120 bool useDeviceBits_; | 121 bool useDeviceBits_; |
121 }; | 122 }; |
122 | 123 |
123 | 124 |
124 } // namespace gfx | 125 } // namespace gfx |
125 | 126 |
126 #endif // SKIA_EXT_SKIA_UTILS_MAC_H_ | 127 #endif // SKIA_EXT_SKIA_UTILS_MAC_H_ |
OLD | NEW |