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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 virtual WebLayer* layer() const { return 0; }; | 71 virtual WebLayer* layer() const { return 0; }; |
72 virtual bool isAccelerated() const { return false; } | 72 virtual bool isAccelerated() const { return false; } |
73 virtual bool isRecording() const { return false; } | 73 virtual bool isRecording() const { return false; } |
74 virtual Platform3DObject getBackingTexture() const { return 0; } | 74 virtual Platform3DObject getBackingTexture() const { return 0; } |
75 virtual void didModifyBackingTexture() { } | 75 virtual void didModifyBackingTexture() { } |
76 virtual bool cachedBitmapEnabled() const { return false; } | 76 virtual bool cachedBitmapEnabled() const { return false; } |
77 virtual bool isExpensiveToPaint() { return false; } | 77 virtual bool isExpensiveToPaint() { 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 setFilterQuality(SkFilterQuality) { } |
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 void willOverwriteCanvas() { } |
88 virtual PassRefPtr<SkImage> newImageSnapshot() const; | 88 virtual PassRefPtr<SkImage> newImageSnapshot() const; |
89 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); |
90 virtual void setHasExpensiveOp() { } | 90 virtual void setHasExpensiveOp() { } |
91 | 91 |
92 OpacityMode opacityMode() const { return m_opacityMode; } | 92 OpacityMode opacityMode() const { return m_opacityMode; } |
93 const IntSize& size() const { return m_size; } | 93 const IntSize& size() const { return m_size; } |
94 void notifyIsValidChanged(bool isValid) const; | 94 void notifyIsValidChanged(bool isValid) const; |
95 | 95 |
96 protected: | 96 protected: |
97 ImageBufferSurface(const IntSize&, OpacityMode); | 97 ImageBufferSurface(const IntSize&, OpacityMode); |
98 void clear(); | 98 void clear(); |
99 | 99 |
100 private: | 100 private: |
101 OpacityMode m_opacityMode; | 101 OpacityMode m_opacityMode; |
102 IntSize m_size; | 102 IntSize m_size; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
106 | 106 |
107 #endif | 107 #endif |
OLD | NEW |