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

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

Issue 21201: Transparency (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/common/gfx/chrome_canvas_win.cc ('k') | skia/ext/bitmap_platform_device_win.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "skia/ext/platform_device_mac.h" 9 #include "skia/ext/platform_device_mac.h"
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // See warning for copy constructor above. 55 // See warning for copy constructor above.
56 BitmapPlatformDeviceMac& operator=(const BitmapPlatformDeviceMac& other); 56 BitmapPlatformDeviceMac& operator=(const BitmapPlatformDeviceMac& other);
57 57
58 virtual CGContextRef GetBitmapContext(); 58 virtual CGContextRef GetBitmapContext();
59 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region); 59 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region);
60 60
61 virtual void DrawToContext(CGContextRef context, int x, int y, 61 virtual void DrawToContext(CGContextRef context, int x, int y,
62 const CGRect* src_rect); 62 const CGRect* src_rect);
63 virtual bool IsVectorial() { return false; } 63 virtual bool IsVectorial() { return false; }
64 virtual void fixupAlphaBeforeCompositing() { };
65 64
66 // Returns the color value at the specified location. This does not 65 // Returns the color value at the specified location. This does not
67 // consider any transforms that may be set on the device. 66 // consider any transforms that may be set on the device.
68 SkColor getColorAt(int x, int y); 67 SkColor getColorAt(int x, int y);
69 68
70 protected: 69 protected:
71 // Reference counted data that can be shared between multiple devices. This 70 // Reference counted data that can be shared between multiple devices. This
72 // allows copy constructors and operator= for devices to work properly. The 71 // allows copy constructors and operator= for devices to work properly. The
73 // bitmaps used by the base device class are already refcounted and copyable. 72 // bitmaps used by the base device class are already refcounted and copyable.
74 class BitmapPlatformDeviceMacData; 73 class BitmapPlatformDeviceMacData;
(...skipping 12 matching lines...) Expand all
87 86
88 // Data associated with this device, guaranteed non-null. We hold a reference 87 // Data associated with this device, guaranteed non-null. We hold a reference
89 // to this object. 88 // to this object.
90 BitmapPlatformDeviceMacData* data_; 89 BitmapPlatformDeviceMacData* data_;
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_
96 95
OLDNEW
« no previous file with comments | « chrome/common/gfx/chrome_canvas_win.cc ('k') | skia/ext/bitmap_platform_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698