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

Side by Side Diff: bench/nanobenchAndroid.h

Issue 1029423010: Android HWUI backend Nanobench (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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef nanobenchAndroid_DEFINED
9 #define nanobenchAndroid_DEFINED
10
11 #include "DisplayListRenderer.h"
12 #include "RenderNode.h"
13 #include "SkAndroidSDKCanvas.h"
14 #include "gui/BufferQueue.h"
15 #include "gui/CpuConsumer.h"
16 #include "gui/IGraphicBufferConsumer.h"
17 #include "gui/IGraphicBufferProducer.h"
18 #include "gui/Surface.h"
19 #include "renderthread/RenderProxy.h"
20
21 #include "nanobench.h"
22
23 struct HWUITarget : public Target {
24 explicit HWUITarget(const Config& c, Benchmark* bench);
25
26 SkAutoTDelete<android::uirenderer::RenderNode> rootNode;
27 SkAutoTDelete<android::uirenderer::renderthread::RenderProxy> proxy;
28 SkAutoTDelete<android::uirenderer::DisplayListRenderer> renderer;
29 android::sp<android::IGraphicBufferProducer> producer;
30 android::sp<android::IGraphicBufferConsumer> consumer;
31 android::sp<android::CpuConsumer> cpuConsumer;
32 android::sp<android::Surface> androidSurface;
33 SkISize size;
34 SkAndroidSDKCanvas fc;
35
36 void setup() SK_OVERRIDE;
djsollen 2015/03/26 17:57:33 just use override :)
tomhudson 2015/03/26 18:05:03 Done. (Race conditions)
37 SkCanvas* beginTiming(SkCanvas* canvas) SK_OVERRIDE;
38 void endTiming() SK_OVERRIDE;
39 void fence() SK_OVERRIDE;
40 bool needsFrameTiming() const SK_OVERRIDE;
41
42 /// Returns false if initialization fails
43 bool init(SkImageInfo info, Benchmark* bench) SK_OVERRIDE;
44 bool capturePixels(SkBitmap* bmp) SK_OVERRIDE;
45 };
46
47
48
49 #endif // nanobenchAndroid_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698