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

Unified Diff: Source/platform/mac/LocalCurrentGraphicsContext.h

Issue 488353003: Specify clip rects when drawing Mac native widgets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporate review feedbac Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/mac/LocalCurrentGraphicsContext.h
diff --git a/Source/platform/mac/LocalCurrentGraphicsContext.h b/Source/platform/mac/LocalCurrentGraphicsContext.h
index 0d9bf0d2fe7ed5429561193f885dcc61446d9aa9..a07200b694cb7a448928d3f8fb64ca221c3e26b8 100644
--- a/Source/platform/mac/LocalCurrentGraphicsContext.h
+++ b/Source/platform/mac/LocalCurrentGraphicsContext.h
@@ -17,6 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
+#include "platform/Geometry/IntRect.h"
#include "platform/PlatformExport.h"
#include "skia/ext/skia_utils_mac.h"
#include "wtf/Noncopyable.h"
@@ -32,10 +33,11 @@ class GraphicsContext;
class PLATFORM_EXPORT LocalCurrentGraphicsContext {
WTF_MAKE_NONCOPYABLE(LocalCurrentGraphicsContext);
public:
- LocalCurrentGraphicsContext(GraphicsContext* graphicsContext);
+ LocalCurrentGraphicsContext(GraphicsContext*, IntRect clipRect);
~LocalCurrentGraphicsContext();
CGContextRef cgContext();
private:
+
GraphicsContext* m_savedGraphicsContext;
NSGraphicsContext* m_savedNSGraphicsContext;
bool m_didSetGraphicsContext;

Powered by Google App Engine
This is Rietveld 408576698