| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, Google Inc. All rights reserved. | 2 * Copyright (c) 2012, 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 SkPaint paint; | 77 SkPaint paint; |
| 78 | 78 |
| 79 // An image mask is being applied to the layer. | 79 // An image mask is being applied to the layer. |
| 80 bool hasImageMask; | 80 bool hasImageMask; |
| 81 // The opaque area in the image mask. | 81 // The opaque area in the image mask. |
| 82 SkRect imageOpaqueRect; | 82 SkRect imageOpaqueRect; |
| 83 | 83 |
| 84 SkRect opaqueRect; | 84 SkRect opaqueRect; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 void reset(); |
| 88 |
| 87 private: | 89 private: |
| 88 void didDraw(const GraphicsContext*, const SkRect&, const SkPaint&, const Sk
Bitmap* sourceBitmap, bool fillsBounds, DrawType); | 90 void didDraw(const GraphicsContext*, const SkRect&, const SkPaint&, const Sk
Bitmap* sourceBitmap, bool fillsBounds, DrawType); |
| 89 void applyOpaqueRegionFromLayer(const GraphicsContext*, const SkRect& layerO
paqueRect, const SkPaint&); | 91 void applyOpaqueRegionFromLayer(const GraphicsContext*, const SkRect& layerO
paqueRect, const SkPaint&); |
| 90 void markRectAsOpaque(const SkRect&); | 92 void markRectAsOpaque(const SkRect&); |
| 91 void markRectAsNonOpaque(const SkRect&); | 93 void markRectAsNonOpaque(const SkRect&); |
| 92 void markAllAsNonOpaque(); | 94 void markAllAsNonOpaque(); |
| 93 | 95 |
| 94 SkRect& currentTrackingOpaqueRect(); | 96 SkRect& currentTrackingOpaqueRect(); |
| 95 | 97 |
| 96 SkRect m_opaqueRect; | 98 SkRect m_opaqueRect; |
| 97 | 99 |
| 98 Vector<CanvasLayerState, 3> m_canvasLayerStack; | 100 Vector<CanvasLayerState, 3> m_canvasLayerStack; |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 } | 103 } |
| 102 #endif // OpaqueRegionSkia_h | 104 #endif // OpaqueRegionSkia_h |
| OLD | NEW |