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

Unified Diff: bench/nanobenchAndroid.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.h ('k') | dm/DMSrcSinkAndroid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobenchAndroid.cpp
diff --git a/bench/nanobenchAndroid.cpp b/bench/nanobenchAndroid.cpp
index 50673c974864577739ecf3bb7157471c173bbae0..7a166d45a06336bed2667fbdc9c4f1ab4c111abf 100644
--- a/bench/nanobenchAndroid.cpp
+++ b/bench/nanobenchAndroid.cpp
@@ -7,19 +7,12 @@
#include "nanobenchAndroid.h"
-#include "AnimationContext.h"
-#include "IContextFactory.h"
-#include "SkiaCanvasProxy.h"
-#include "android/rect.h"
-#include "android/native_window.h"
-#include "renderthread/TimeLord.h"
-
/* These functions are only compiled in the Android Framework. */
HWUITarget::HWUITarget(const Config& c, Benchmark* bench) : Target(c) { }
void HWUITarget::setup() {
- this->renderer.proxy->fence();
+ this->renderer.fence();
}
SkCanvas* HWUITarget::beginTiming(SkCanvas* canvas) {
@@ -39,7 +32,7 @@ void HWUITarget::endTiming() {
}
void HWUITarget::fence() {
- this->renderer.proxy->fence();
+ this->renderer.fence();
}
bool HWUITarget::needsFrameTiming(int* frameLag) const {
@@ -49,7 +42,7 @@ bool HWUITarget::needsFrameTiming(int* frameLag) const {
}
bool HWUITarget::init(SkImageInfo info, Benchmark* bench) {
- this->renderer.initialize({bench->getSize().x(), bench->getSize().y()});
+ this->renderer.initialize(bench->getSize().x(), bench->getSize().y());
return true;
}
« no previous file with comments | « bench/nanobenchAndroid.h ('k') | dm/DMSrcSinkAndroid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698