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