Index: dm/DMSrcSinkAndroid.cpp |
diff --git a/dm/DMSrcSinkAndroid.cpp b/dm/DMSrcSinkAndroid.cpp |
index 63c9d82848ce8db1eedf29959cf5ee10f6cfe7ed..3958e484fd7fca4a94f06cde206b487249ad6a68 100644 |
--- a/dm/DMSrcSinkAndroid.cpp |
+++ b/dm/DMSrcSinkAndroid.cpp |
@@ -10,24 +10,24 @@ |
#include "SkAndroidSDKCanvas.h" |
#include "SkCanvas.h" |
-#include "SkHwuiRenderer.h" |
#include "SkiaCanvasProxy.h" |
#include "SkStream.h" |
+#include <utils/TestWindowContext.h> |
/* These functions are only compiled in the Android Framework. */ |
namespace DM { |
Error HWUISink::draw(const Src& src, SkBitmap* dst, SkWStream*, SkString*) const { |
- SkHwuiRenderer renderer; |
- renderer.initialize(src.size()); |
+ android::uirenderer::TestWindowContext renderer; |
+ renderer.initialize(src.size().width(), src.size().height()); |
SkCanvas* canvas = renderer.prepareToDraw(); |
Error err = src.draw(canvas); |
if (!err.isEmpty()) { |
return err; |
} |
renderer.finishDrawing(); |
- renderer.proxy->fence(); |
+ renderer.fence(); |
renderer.capturePixels(dst); |
return ""; |
} |