| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 class SkImage; | 45 class SkImage; |
| 46 class SkPicture; | 46 class SkPicture; |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 class ImageBuffer; | 50 class ImageBuffer; |
| 51 class WebLayer; | 51 class WebLayer; |
| 52 class FloatRect; | 52 class FloatRect; |
| 53 class GraphicsContext; | 53 class GraphicsContext; |
| 54 | 54 |
| 55 enum OpacityMode { | |
| 56 NonOpaque, | |
| 57 Opaque, | |
| 58 }; | |
| 59 | |
| 60 class PLATFORM_EXPORT ImageBufferSurface { | 55 class PLATFORM_EXPORT ImageBufferSurface { |
| 61 WTF_MAKE_NONCOPYABLE(ImageBufferSurface); WTF_MAKE_FAST_ALLOCATED; | 56 WTF_MAKE_NONCOPYABLE(ImageBufferSurface); WTF_MAKE_FAST_ALLOCATED; |
| 62 public: | 57 public: |
| 63 virtual ~ImageBufferSurface(); | 58 virtual ~ImageBufferSurface(); |
| 64 | 59 |
| 65 virtual SkCanvas* canvas() const = 0; | 60 virtual SkCanvas* canvas() const = 0; |
| 66 virtual const SkBitmap& bitmap(); | 61 virtual const SkBitmap& bitmap(); |
| 67 virtual void willAccessPixels() { } | 62 virtual void willAccessPixels() { } |
| 68 virtual void didDraw(const FloatRect& rect) { } | 63 virtual void didDraw(const FloatRect& rect) { } |
| 69 virtual bool isValid() const = 0; | 64 virtual bool isValid() const = 0; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 98 void clear(); | 93 void clear(); |
| 99 | 94 |
| 100 private: | 95 private: |
| 101 OpacityMode m_opacityMode; | 96 OpacityMode m_opacityMode; |
| 102 IntSize m_size; | 97 IntSize m_size; |
| 103 }; | 98 }; |
| 104 | 99 |
| 105 } // namespace blink | 100 } // namespace blink |
| 106 | 101 |
| 107 #endif | 102 #endif |
| OLD | NEW |