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

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

Issue 1013453002: remove deprecated onCreateCompatibleDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « skia/ext/bitmap_platform_device_cairo.cc ('k') | skia/ext/bitmap_platform_device_mac.cc » ('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) 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_BITMAP_PLATFORM_DEVICE_MAC_H_ 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_
6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "skia/ext/platform_device.h" 10 #include "skia/ext/platform_device.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // SkBaseDevice overrides 51 // SkBaseDevice overrides
52 void setMatrixClip(const SkMatrix& transform, 52 void setMatrixClip(const SkMatrix& transform,
53 const SkRegion& region, 53 const SkRegion& region,
54 const SkClipStack&) override; 54 const SkClipStack&) override;
55 55
56 protected: 56 protected:
57 BitmapPlatformDevice(CGContextRef context, 57 BitmapPlatformDevice(CGContextRef context,
58 const SkBitmap& bitmap); 58 const SkBitmap& bitmap);
59 59
60 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo& info) override;
61 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; 60 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
62 61
63 private: 62 private:
64 void ReleaseBitmapContext(); 63 void ReleaseBitmapContext();
65 64
66 // Sets the transform and clip operations. This will not update the CGContext, 65 // Sets the transform and clip operations. This will not update the CGContext,
67 // but will mark the config as dirty. The next call of LoadConfig will 66 // but will mark the config as dirty. The next call of LoadConfig will
68 // pick up these changes. 67 // pick up these changes.
69 void SetMatrixClip(const SkMatrix& transform, const SkRegion& region); 68 void SetMatrixClip(const SkMatrix& transform, const SkRegion& region);
70 69
(...skipping 15 matching lines...) Expand all
86 SkMatrix transform_; 85 SkMatrix transform_;
87 86
88 // The current clipping 87 // The current clipping
89 SkRegion clip_region_; 88 SkRegion clip_region_;
90 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); 89 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice);
91 }; 90 };
92 91
93 } // namespace skia 92 } // namespace skia
94 93
95 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ 94 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_cairo.cc ('k') | skia/ext/bitmap_platform_device_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698