aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/views/mac/SkNSView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/mac/SkNSView.mm')
-rw-r--r--src/views/mac/SkNSView.mm7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/views/mac/SkNSView.mm b/src/views/mac/SkNSView.mm
index 64c02ca2a5..7366c5c1c8 100644
--- a/src/views/mac/SkNSView.mm
+++ b/src/views/mac/SkNSView.mm
@@ -13,7 +13,6 @@
static_assert(SK_SUPPORT_GPU, "not_implemented_for_non_gpu_build");
#include <OpenGL/gl.h>
-//#define FORCE_REDRAW
// Can be dropped when we no longer support 10.6.
#if defined(MAC_OS_X_VERSION_10_7) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
#define RETINA_API_AVAILABLE 1
@@ -140,11 +139,7 @@ BOOL fRedrawRequestPending;
- (void)drawSkia {
fRedrawRequestPending = false;
if (fWind) {
- sk_sp<SkSurface> surface(fWind->makeSurface());
- fWind->draw(surface->getCanvas());
-#ifdef FORCE_REDRAW
- fWind->inval(NULL);
-#endif
+ fWind->drawIntoSurface();
}
}