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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual bool cachedBitmapEnabled() const { return false; } | 77 virtual bool cachedBitmapEnabled() const { return false; } |
78 virtual const SkBitmap& cachedBitmap() const; | 78 virtual const SkBitmap& cachedBitmap() const; |
79 virtual void invalidateCachedBitmap() { } | 79 virtual void invalidateCachedBitmap() { } |
80 virtual void updateCachedBitmapIfNeeded() { } | 80 virtual void updateCachedBitmapIfNeeded() { } |
81 virtual void setFilterLevel(SkPaint::FilterLevel) { } | 81 virtual void setFilterLevel(SkPaint::FilterLevel) { } |
82 virtual void setIsHidden(bool) { } | 82 virtual void setIsHidden(bool) { } |
83 virtual void setImageBuffer(ImageBuffer*) { } | 83 virtual void setImageBuffer(ImageBuffer*) { } |
84 virtual PassRefPtr<SkPicture> getPicture(); | 84 virtual PassRefPtr<SkPicture> getPicture(); |
85 virtual void finalizeFrame(const FloatRect &dirtyRect) { } | 85 virtual void finalizeFrame(const FloatRect &dirtyRect) { } |
86 virtual void willDrawVideo() { } | 86 virtual void willDrawVideo() { } |
| 87 virtual void willOverwriteCanvas() { } |
87 virtual PassRefPtr<SkImage> newImageSnapshot() const; | 88 virtual PassRefPtr<SkImage> newImageSnapshot() const; |
88 virtual void draw(GraphicsContext*, const FloatRect& destRect, const FloatRe
ct& srcRect, SkXfermode::Mode, bool needsCopy); | 89 virtual void draw(GraphicsContext*, const FloatRect& destRect, const FloatRe
ct& srcRect, SkXfermode::Mode, bool needsCopy); |
89 | 90 |
90 OpacityMode opacityMode() const { return m_opacityMode; } | 91 OpacityMode opacityMode() const { return m_opacityMode; } |
91 const IntSize& size() const { return m_size; } | 92 const IntSize& size() const { return m_size; } |
92 void notifyIsValidChanged(bool isValid) const; | 93 void notifyIsValidChanged(bool isValid) const; |
93 | 94 |
94 protected: | 95 protected: |
95 ImageBufferSurface(const IntSize&, OpacityMode); | 96 ImageBufferSurface(const IntSize&, OpacityMode); |
96 void clear(); | 97 void clear(); |
97 | 98 |
98 private: | 99 private: |
99 OpacityMode m_opacityMode; | 100 OpacityMode m_opacityMode; |
100 IntSize m_size; | 101 IntSize m_size; |
101 }; | 102 }; |
102 | 103 |
103 } // namespace blink | 104 } // namespace blink |
104 | 105 |
105 #endif | 106 #endif |
OLD | NEW |