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

Side by Side Diff: skia/ext/skia_utils_mac.h

Issue 344793003: Stop using (deprecated) getTotalClip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: account for clip_bounds offset Created 6 years, 6 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 | « no previous file | skia/ext/skia_utils_mac.mm » ('j') | skia/ext/skia_utils_mac.mm » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | skia/ext/skia_utils_mac.mm » ('j') | skia/ext/skia_utils_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698