| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SKIA_H_ | 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_ |
| 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_ | 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "skia/ext/platform_device.h" | 10 #include "skia/ext/platform_device.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // we ever have to share state between some native drawing UI and Skia, like | 40 // we ever have to share state between some native drawing UI and Skia, like |
| 41 // the Windows and Mac versions of this class do. | 41 // the Windows and Mac versions of this class do. |
| 42 explicit BitmapPlatformDevice(const SkBitmap& other); | 42 explicit BitmapPlatformDevice(const SkBitmap& other); |
| 43 virtual ~BitmapPlatformDevice(); | 43 virtual ~BitmapPlatformDevice(); |
| 44 | 44 |
| 45 virtual PlatformSurface BeginPlatformPaint() override; | 45 virtual PlatformSurface BeginPlatformPaint() override; |
| 46 virtual void DrawToNativeContext(PlatformSurface surface, int x, int y, | 46 virtual void DrawToNativeContext(PlatformSurface surface, int x, int y, |
| 47 const PlatformRect* src_rect) override; | 47 const PlatformRect* src_rect) override; |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 virtual SkBaseDevice* onCreateDevice(const SkImageInfo& info, | 50 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo& info) |
| 51 Usage usage) override; | 51 override; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); | 54 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace skia | 57 } // namespace skia |
| 58 | 58 |
| 59 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_ | 59 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_ |
| OLD | NEW |