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

Unified Diff: dm/DMSrcSinkAndroid.cpp

Issue 1407053009: Simplify linkages to Android framework internals (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: One gyp file is much like another Created 5 years, 2 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
« no previous file with comments | « bench/nanobenchAndroid.cpp ('k') | gyp/bench.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "";
}
« no previous file with comments | « bench/nanobenchAndroid.cpp ('k') | gyp/bench.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698