Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Side by Side Diff: Source/platform/graphics/skia/OpaqueRegionSkia.h

Issue 379253002: Initial implementation of display list backed 2D canvases (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: compile error fix Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698