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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual bool isValid() const = 0; | 68 virtual bool isValid() const = 0; |
69 virtual bool restore() { return false; } | 69 virtual bool restore() { return false; } |
70 virtual WebLayer* layer() const { return 0; } | 70 virtual WebLayer* layer() const { return 0; } |
71 virtual bool isAccelerated() const { return false; } | 71 virtual bool isAccelerated() const { return false; } |
72 virtual bool isRecording() const { return false; } | 72 virtual bool isRecording() const { return false; } |
73 virtual bool isExpensiveToPaint() { return false; } | 73 virtual bool isExpensiveToPaint() { return false; } |
74 virtual void setFilterQuality(SkFilterQuality) {} | 74 virtual void setFilterQuality(SkFilterQuality) {} |
75 virtual void setIsHidden(bool) {} | 75 virtual void setIsHidden(bool) {} |
76 virtual void setImageBuffer(ImageBuffer*) {} | 76 virtual void setImageBuffer(ImageBuffer*) {} |
77 virtual sk_sp<PaintRecord> getPicture(); | 77 virtual sk_sp<PaintRecord> getPicture(); |
78 virtual void finalizeFrame(const FloatRect& dirtyRect) {} | 78 virtual void finalizeFrame() {} |
| 79 virtual void doPaintInvalidation(const FloatRect& dirtyRect) {} |
79 virtual void draw(GraphicsContext&, | 80 virtual void draw(GraphicsContext&, |
80 const FloatRect& destRect, | 81 const FloatRect& destRect, |
81 const FloatRect& srcRect, | 82 const FloatRect& srcRect, |
82 SkBlendMode); | 83 SkBlendMode); |
83 virtual void setHasExpensiveOp() {} | 84 virtual void setHasExpensiveOp() {} |
84 virtual GLuint getBackingTextureHandleForOverwrite() { return 0; } | 85 virtual GLuint getBackingTextureHandleForOverwrite() { return 0; } |
85 | 86 |
86 // Executes all deferred rendering immediately. | 87 // Executes all deferred rendering immediately. |
87 virtual void flush(FlushReason); | 88 virtual void flush(FlushReason); |
88 | 89 |
(...skipping 28 matching lines...) Expand all Loading... |
117 private: | 118 private: |
118 OpacityMode m_opacityMode; | 119 OpacityMode m_opacityMode; |
119 IntSize m_size; | 120 IntSize m_size; |
120 sk_sp<SkColorSpace> m_colorSpace; | 121 sk_sp<SkColorSpace> m_colorSpace; |
121 SkColorType m_colorType; | 122 SkColorType m_colorType; |
122 }; | 123 }; |
123 | 124 |
124 } // namespace blink | 125 } // namespace blink |
125 | 126 |
126 #endif | 127 #endif |
OLD | NEW |