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

Unified Diff: bench/nanobenchAndroid.h

Issue 1036303002: Move HWUI boilerplate into utils/android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | bench/nanobenchAndroid.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobenchAndroid.h
diff --git a/bench/nanobenchAndroid.h b/bench/nanobenchAndroid.h
index 3baeb1270fb5794a6e6a87e9fb1c7a8b806377d5..7f6ff441d6a25b2eba279580f0ec08ec6aa95fe2 100644
--- a/bench/nanobenchAndroid.h
+++ b/bench/nanobenchAndroid.h
@@ -8,29 +8,15 @@
#ifndef nanobenchAndroid_DEFINED
#define nanobenchAndroid_DEFINED
-#include "DisplayListRenderer.h"
-#include "RenderNode.h"
#include "SkAndroidSDKCanvas.h"
-#include "gui/BufferQueue.h"
-#include "gui/CpuConsumer.h"
-#include "gui/IGraphicBufferConsumer.h"
-#include "gui/IGraphicBufferProducer.h"
-#include "gui/Surface.h"
-#include "renderthread/RenderProxy.h"
+#include "SkHwuiRenderer.h"
#include "nanobench.h"
struct HWUITarget : public Target {
explicit HWUITarget(const Config& c, Benchmark* bench);
- SkAutoTDelete<android::uirenderer::RenderNode> rootNode;
- SkAutoTDelete<android::uirenderer::renderthread::RenderProxy> proxy;
- SkAutoTDelete<android::uirenderer::DisplayListRenderer> renderer;
- android::sp<android::IGraphicBufferProducer> producer;
- android::sp<android::IGraphicBufferConsumer> consumer;
- android::sp<android::CpuConsumer> cpuConsumer;
- android::sp<android::Surface> androidSurface;
- SkISize size;
+ SkHwuiRenderer renderer;
SkAndroidSDKCanvas fc;
void setup() override;
@@ -39,11 +25,8 @@ struct HWUITarget : public Target {
void fence() override;
bool needsFrameTiming() const override;
- /// Returns false if initialization fails
bool init(SkImageInfo info, Benchmark* bench) override;
bool capturePixels(SkBitmap* bmp) override;
};
-
-
#endif // nanobenchAndroid_DEFINED
« no previous file with comments | « no previous file | bench/nanobenchAndroid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698