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

Unified Diff: bench/nanobenchAndroid.h

Issue 1029423010: Android HWUI backend Nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More SK_OVERRIDE vs override racing 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 | « bench/nanobench.cpp ('k') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..3baeb1270fb5794a6e6a87e9fb1c7a8b806377d5
--- /dev/null
+++ b/bench/nanobenchAndroid.h
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#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 "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;
+ SkAndroidSDKCanvas fc;
+
+ void setup() override;
+ SkCanvas* beginTiming(SkCanvas* canvas) override;
+ void endTiming() override;
+ 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 | « bench/nanobench.cpp ('k') | bench/nanobenchAndroid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698