Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |