| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef WebImageLayer_h | 26 #ifndef WebImageLayer_h |
| 27 #define WebImageLayer_h | 27 #define WebImageLayer_h |
| 28 | 28 |
| 29 #include "WebCommon.h" | 29 #include "WebCommon.h" |
| 30 #include "WebLayer.h" | 30 #include "WebLayer.h" |
| 31 | 31 |
| 32 class SkBitmap; | |
| 33 class SkImage; | 32 class SkImage; |
| 34 | 33 |
| 35 namespace blink { | 34 namespace blink { |
| 36 | 35 |
| 37 class WebImageLayer { | 36 class WebImageLayer { |
| 38 public: | 37 public: |
| 39 virtual ~WebImageLayer() {} | 38 virtual ~WebImageLayer() {} |
| 40 | 39 |
| 41 virtual WebLayer* layer() = 0; | 40 virtual WebLayer* layer() = 0; |
| 42 virtual void setImage(const SkImage*) = 0; | 41 virtual void setImage(const SkImage*) = 0; |
| 43 virtual void setNearestNeighbor(bool) = 0; | 42 virtual void setNearestNeighbor(bool) = 0; |
| 44 }; | 43 }; |
| 45 | 44 |
| 46 } // namespace blink | 45 } // namespace blink |
| 47 | 46 |
| 48 #endif // WebImageLayer_h | 47 #endif // WebImageLayer_h |
| OLD | NEW |