/* * 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 SkHwuiRenderer_DEFINED #define SkHwuiRenderer_DEFINED #include "DisplayListCanvas.h" #include "RenderNode.h" #include "SkTypes.h" #include "gui/CpuConsumer.h" #include "gui/IGraphicBufferConsumer.h" #include "gui/IGraphicBufferProducer.h" #include "gui/Surface.h" #include "renderthread/RenderProxy.h" class SkBitmap; struct SkHwuiRenderer { SkAutoTDelete rootNode; SkAutoTDelete proxy; SkAutoTDelete canvas; android::sp producer; android::sp consumer; android::sp cpuConsumer; android::sp androidSurface; SkISize size; void initialize(SkISize size); /// Returns a canvas to draw into. SkCanvas* prepareToDraw(); void finishDrawing(); bool capturePixels(SkBitmap* bmp); }; #endif // SkHwuiRenderer_DEFINED