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

Side by Side Diff: base/gfx/bitmap_platform_device_mac.h

Issue 1853: Refactor the platform canvas unit test a bit so that it can be run on... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « base/gfx/bitmap_platform_device.h ('k') | base/gfx/platform_canvas.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 BASE_GFX_BITMAP_PLATFORM_DEVICE_MAC_H__ 5 #ifndef BASE_GFX_BITMAP_PLATFORM_DEVICE_MAC_H__
6 #define BASE_GFX_BITMAP_PLATFORM_DEVICE_MAC_H__ 6 #define BASE_GFX_BITMAP_PLATFORM_DEVICE_MAC_H__
7 7
8 #include "base/gfx/platform_device_mac.h" 8 #include "base/gfx/platform_device_mac.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual CGContextRef GetBitmapContext(); 58 virtual CGContextRef GetBitmapContext();
59 virtual void SetTransform(const SkMatrix& matrix); 59 virtual void SetTransform(const SkMatrix& matrix);
60 virtual void SetDeviceOffset(int x, int y); 60 virtual void SetDeviceOffset(int x, int y);
61 61
62 // This currently only supports extremely simple clip rects. 62 // This currently only supports extremely simple clip rects.
63 virtual void SetClipRegion(const SkRegion& region); 63 virtual void SetClipRegion(const SkRegion& region);
64 64
65 virtual void DrawToContext(CGContextRef context, int x, int y, 65 virtual void DrawToContext(CGContextRef context, int x, int y,
66 const CGRect* src_rect); 66 const CGRect* src_rect);
67 virtual bool IsVectorial() { return false; } 67 virtual bool IsVectorial() { return false; }
68 68 virtual void fixupAlphaBeforeCompositing() { };
69
69 // Returns the color value at the specified location. This does not 70 // Returns the color value at the specified location. This does not
70 // consider any transforms that may be set on the device. 71 // consider any transforms that may be set on the device.
71 SkColor GetColorAt(int x, int y); 72 SkColor GetColorAt(int x, int y);
72 73
73 protected: 74 protected:
74 // Reference counted data that can be shared between multiple devices. This 75 // Reference counted data that can be shared between multiple devices. This
75 // allows copy constructors and operator= for devices to work properly. The 76 // allows copy constructors and operator= for devices to work properly. The
76 // bitmaps used by the base device class are already refcounted and copyable. 77 // bitmaps used by the base device class are already refcounted and copyable.
77 class BitmapPlatformDeviceMacData; 78 class BitmapPlatformDeviceMacData;
78 79
(...skipping 10 matching lines...) Expand all
89 90
90 virtual void processPixels(int x, int y, 91 virtual void processPixels(int x, int y,
91 int width, int height, 92 int width, int height,
92 adjustAlpha adjustor); 93 adjustAlpha adjustor);
93 }; 94 };
94 95
95 } // namespace gfx 96 } // namespace gfx
96 97
97 #endif // BASE_GFX_BITMAP_PLATFORM_DEVICE_MAC_H__ 98 #endif // BASE_GFX_BITMAP_PLATFORM_DEVICE_MAC_H__
98 99
OLDNEW
« no previous file with comments | « base/gfx/bitmap_platform_device.h ('k') | base/gfx/platform_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698