| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|