Searched refs:renderer (Results 1 - 25 of 62) sorted by relevance

123

/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpRendererTests.cpp27 BakedOpRenderer renderer(Caches::getInstance(), renderThread.renderState(), true, sLightInfo);
32 renderer.startRepaintLayer(&layer, Rect(200, 200));
34 renderer.endLayer();
39 renderer.startRepaintLayer(&layer, Rect(100, 200)); // repainting left side
44 renderer.endLayer();
49 renderer.startRepaintLayer(&layer, Rect(100, 0, 200, 200)); // repainting right side
52 renderer.endLayer();
H A DLeakCheckTests.cpp48 BakedOpRenderer renderer(caches, renderState, true, sLightInfo);
49 frameBuilder.replayBakedOps<BakedOpDispatcher>(renderer);
65 BakedOpRenderer renderer(caches, renderState, true, sLightInfo);
66 frameBuilder.replayBakedOps<BakedOpDispatcher>(renderer);
H A DFrameBuilderTests.cpp87 * Dispatches all static methods to similar formed methods on renderer, which fail by default but
94 static void on##Type(TestRendererBase& renderer, const Type& op, const BakedOpState& state) { \
95 renderer.on##Type(op, state); \
102 static void onMerged##Type##s(TestRendererBase& renderer, const MergedBakedOpList& opList) { \
103 renderer.onMerged##Type##s(opList); \
140 SimpleTestRenderer renderer; local
141 frameBuilder.replayBakedOps<TestDispatcher>(renderer);
142 EXPECT_EQ(4, renderer.getIndex()); // 2 ops + start + end
168 SimpleStrokeTestRenderer renderer; local
169 frameBuilder.replayBakedOps<TestDispatcher>(renderer);
185 FailRenderer renderer; local
220 SimpleBatchingTestRenderer renderer; local
247 DeferRenderNodeTranslateClipTestRenderer renderer; local
316 DeferRenderNodeSceneTestRenderer renderer; local
335 EmptyNoFbo0TestRenderer renderer; local
359 EmptyWithFbo0TestRenderer renderer; local
390 AvoidOverdrawRectsTestRenderer renderer; local
433 AvoidOverdrawBitmapsTestRenderer renderer; local
475 ClippedMergingTestRenderer renderer; local
505 TextMergingTestRenderer renderer; local
539 TextStrikethroughTestRenderer renderer; local
597 TextStyleTestRenderer renderer; local
631 TextureLayerClipLocalMatrixTestRenderer renderer; local
663 TextureLayerCombineMatricesTestRenderer renderer; local
682 FailRenderer renderer; local
706 FunctorTestRenderer renderer; local
731 ColorTestRenderer renderer; local
778 RenderNodeTestRenderer renderer; local
805 ClippedTestRenderer renderer; local
854 SaveLayerSimpleTestRenderer renderer; local
937 SaveLayerNestedTestRenderer renderer; local
960 FailRenderer renderer; local
1005 SaveLayerUnclippedSimpleTestRenderer renderer; local
1039 SaveLayerUnclippedRoundTestRenderer renderer; local
1096 SaveLayerUnclippedMergedClearsTestRenderer renderer; local
1139 SaveLayerUnclippedClearClipTestRenderer renderer; local
1158 FailRenderer renderer; local
1226 SaveLayerUnclippedComplexTestRenderer renderer; local
1287 HwLayerSimpleTestRenderer renderer; local
1394 HwLayerComplexTestRenderer renderer; local
1452 BuildLayerTestRenderer renderer; local
1502 ZReorderTestRenderer renderer; local
1595 ProjectionReorderTestRenderer renderer; local
1683 ProjectionHwLayerTestRenderer renderer; local
1741 ProjectionChildScrollTestRenderer renderer; local
1786 ShadowTestRenderer renderer; local
1832 ShadowSaveLayerTestRenderer renderer; local
1887 ShadowHwLayerTestRenderer renderer; local
1917 ShadowLayeringTestRenderer renderer; local
1947 ShadowClippingTestRenderer renderer; local
2205 ClipReplaceTestRenderer renderer; local
[all...]
H A DBakedOpDispatcherTests.cpp44 static void ValidatingGlopReceiver(BakedOpRenderer& renderer, const Rect* dirtyBounds, argument
47 auto vbor = reinterpret_cast<ValidatingBakedOpRenderer*>(&renderer);
68 ValidatingBakedOpRenderer renderer(renderThread.renderState(), glopReceiver);
72 [](BakedOpRenderer& renderer, const BakedOpState& state) { \
73 BakedOpDispatcher::on##Type(renderer, static_cast<const Type&>(*(state.op)), state); \
77 unmergedReceivers[op->opId](renderer, *state);
187 ValidatingBakedOpRenderer renderer(renderThread.renderState(), glopReceiver);
193 frameBuilder.replayBakedOps<BakedOpDispatcher>(renderer);
218 ValidatingBakedOpRenderer renderer(renderThread.renderState(), validator);
223 frameBuilder.replayBakedOps<BakedOpDispatcher>(renderer);
[all...]
/frameworks/base/libs/hwui/
H A DBakedOpDispatcher.h30 * onXXXOp methods must either render directly with the renderer, or call a static renderYYY
38 static void onMerged##Type##s(BakedOpRenderer& renderer, const MergedBakedOpList& opList);
44 static void on##Type(BakedOpRenderer& renderer, const Type& op, const BakedOpState& state);
H A DBakedOpDispatcher.cpp45 void BakedOpDispatcher::onMergedBitmapOps(BakedOpRenderer& renderer, argument
51 AssetAtlas::Entry* entry = renderer.renderState().assetAtlas().getEntry(bitmap->pixelRef());
52 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(bitmap);
73 renderer.dirtyRenderTarget(opBounds);
79 GlopBuilder(renderer.renderState(), renderer.caches(), &glop)
88 renderer.renderGlop(nullptr, clip, glop);
91 void BakedOpDispatcher::onMergedPatchOps(BakedOpRenderer& renderer, argument
95 AssetAtlas::Entry* entry = renderer.renderState().assetAtlas().getEntry(
107 const Patch* opMesh = renderer
197 renderTextShadow(BakedOpRenderer& renderer, const TextOp& op, const BakedOpState& textOpState) argument
265 renderText(BakedOpRenderer& renderer, const TextOp& op, const BakedOpState& state, const ClipBase* renderClip, TextRenderType renderType) argument
320 onMergedTextOps(BakedOpRenderer& renderer, const MergedBakedOpList& opList) argument
346 renderVertexBuffer(BakedOpRenderer& renderer, const BakedOpState& state, const VertexBuffer& vertexBuffer, float translateX, float translateY, const SkPaint& paint, int vertexBufferRenderFlags) argument
366 renderConvexPath(BakedOpRenderer& renderer, const BakedOpState& state, const SkPath& path, const SkPaint& paint) argument
374 renderPathTexture(BakedOpRenderer& renderer, const BakedOpState& state, float xOffset, float yOffset, PathTexture& texture, const SkPaint& paint) argument
399 onArcOp(BakedOpRenderer& renderer, const ArcOp& op, const BakedOpState& state) argument
426 onBitmapOp(BakedOpRenderer& renderer, const BitmapOp& op, const BakedOpState& state) argument
444 onBitmapMeshOp(BakedOpRenderer& renderer, const BitmapMeshOp& op, const BakedOpState& state) argument
518 onBitmapRectOp(BakedOpRenderer& renderer, const BitmapRectOp& op, const BakedOpState& state) argument
543 onColorOp(BakedOpRenderer& renderer, const ColorOp& op, const BakedOpState& state) argument
559 onFunctorOp(BakedOpRenderer& renderer, const FunctorOp& op, const BakedOpState& state) argument
563 onLinesOp(BakedOpRenderer& renderer, const LinesOp& op, const BakedOpState& state) argument
571 onOvalOp(BakedOpRenderer& renderer, const OvalOp& op, const BakedOpState& state) argument
594 onPatchOp(BakedOpRenderer& renderer, const PatchOp& op, const BakedOpState& state) argument
623 onPathOp(BakedOpRenderer& renderer, const PathOp& op, const BakedOpState& state) argument
633 onPointsOp(BakedOpRenderer& renderer, const PointsOp& op, const BakedOpState& state) argument
644 onRectOp(BakedOpRenderer& renderer, const RectOp& op, const BakedOpState& state) argument
683 onRoundRectOp(BakedOpRenderer& renderer, const RoundRectOp& op, const BakedOpState& state) argument
702 renderShadow(BakedOpRenderer& renderer, const BakedOpState& state, float casterAlpha, const VertexBuffer* ambientShadowVertexBuffer, const VertexBuffer* spotShadowVertexBuffer) argument
729 onShadowOp(BakedOpRenderer& renderer, const ShadowOp& op, const BakedOpState& state) argument
734 onSimpleRectsOp(BakedOpRenderer& renderer, const SimpleRectsOp& op, const BakedOpState& state) argument
746 onTextOp(BakedOpRenderer& renderer, const TextOp& op, const BakedOpState& state) argument
751 onTextOnPathOp(BakedOpRenderer& renderer, const TextOnPathOp& op, const BakedOpState& state) argument
780 onTextureLayerOp(BakedOpRenderer& renderer, const TextureLayerOp& op, const BakedOpState& state) argument
794 renderRectForLayer(BakedOpRenderer& renderer, const LayerOp& op, const BakedOpState& state, int color, SkXfermode::Mode mode, SkColorFilter* colorFilter) argument
804 onLayerOp(BakedOpRenderer& renderer, const LayerOp& op, const BakedOpState& state) argument
836 onCopyToLayerOp(BakedOpRenderer& renderer, const CopyToLayerOp& op, const BakedOpState& state) argument
842 onCopyFromLayerOp(BakedOpRenderer& renderer, const CopyFromLayerOp& op, const BakedOpState& state) argument
[all...]
H A DDisplayListOp.h95 // default behavior only affects immediate, deferrable state, issue directly to renderer
100 * State operations are applied directly to the renderer, but can cause the deferred drawing op
108 virtual void applyState(OpenGLRenderer& renderer, int saveCount) const = 0;
135 virtual void applyDraw(OpenGLRenderer& renderer, Rect& dirty) = 0;
144 virtual void multiDraw(OpenGLRenderer& renderer, Rect& dirty, argument
147 renderer.restoreDisplayState(*(ops[i].state), true);
148 ops[i].op->applyDraw(renderer, dirty);
162 virtual void onDefer(OpenGLRenderer& renderer, DeferInfo& deferInfo, argument
266 // STATE OPERATIONS - these may affect the state of the canvas/renderer, but do
281 virtual void applyState(OpenGLRenderer& renderer, in
615 getAtlasEntry(OpenGLRenderer& renderer) argument
697 uvMap(OpenGLRenderer& renderer, Rect& texCoords) argument
780 getAtlasEntry(OpenGLRenderer& renderer) argument
788 getMesh(OpenGLRenderer& renderer) argument
[all...]
H A DDeferredDisplayList.cpp57 virtual void replay(OpenGLRenderer& renderer, Rect& dirty, int index) = 0;
96 virtual void replay(OpenGLRenderer& renderer, Rect& dirty, int index) override {
103 renderer.restoreDisplayState(*state);
106 renderer.eventMark(op->name());
108 op->applyDraw(renderer, dirty);
116 renderer.drawScreenSpaceColorRect(bounds.left, bounds.top, bounds.right, bounds.bottom,
255 virtual void replay(OpenGLRenderer& renderer, Rect& dirty, int index) override {
260 DrawBatch::replay(renderer, dirty, -1);
265 renderer.setupMergedMultiDraw(mClipSideFlags ? &mClipRect : nullptr);
269 renderer
338 replay(OpenGLRenderer& renderer, Rect& dirty, int index) argument
397 addClip(OpenGLRenderer& renderer, ClipOp* op) argument
422 addSaveLayer(OpenGLRenderer& renderer, SaveLayerOp* op, int newSaveCount) argument
435 addSave(OpenGLRenderer& renderer, SaveOp* op, int newSaveCount) argument
457 addRestoreToCount(OpenGLRenderer& renderer, StateOp* op, int newSaveCount) argument
475 addDrawOp(OpenGLRenderer& renderer, DrawOp* op) argument
607 storeStateOpBarrier(OpenGLRenderer& renderer, StateOp* op) argument
616 storeRestoreToCountBarrier(OpenGLRenderer& renderer, StateOp* op, int newSaveCount) argument
633 replayBatchList(const std::vector<Batch*>& batchList, OpenGLRenderer& renderer, Rect& dirty) argument
644 flush(OpenGLRenderer& renderer, Rect& dirty) argument
[all...]
H A DDeferredDisplayList.h102 * Plays back all of the draw ops recorded into batches to the renderer.
103 * Adjusts the state of the renderer as necessary, and restores it when complete
105 void flush(OpenGLRenderer& renderer, Rect& dirty);
107 void addClip(OpenGLRenderer& renderer, ClipOp* op);
108 void addSaveLayer(OpenGLRenderer& renderer, SaveLayerOp* op, int newSaveCount);
109 void addSave(OpenGLRenderer& renderer, SaveOp* op, int newSaveCount);
110 void addRestoreToCount(OpenGLRenderer& renderer, StateOp* op, int newSaveCount);
116 void addDrawOp(OpenGLRenderer& renderer, DrawOp* op);
137 void storeStateOpBarrier(OpenGLRenderer& renderer, StateOp* op);
138 void storeRestoreToCountBarrier(OpenGLRenderer& renderer, StateO
[all...]
H A DLayer.cpp80 if (!renderer) {
81 renderer.reset(new LayerRenderer(renderState, this));
82 renderer->initProperties();
87 if (renderer && rendererLightPosDirty) {
88 // re-init renderer's light position, based upon last cached location in window
91 renderer->initLight(rootRenderer.getLightRadius(),
94 renderer->setLightCenter(lightPos);
234 DeferStateStruct deferredState(*deferredList, *renderer,
237 renderer->setupFrameState(width, height, dirtyRect.left, dirtyRect.top,
253 // renderer i
[all...]
H A DFrameBuilder.h88 void replayBakedOps(Renderer& renderer) { argument
97 * StaticDispatcher::onBitmapOp(Renderer& renderer, const BitmapOp& op, const BakedOpState& state);
100 [](void* renderer, const BakedOpState& state) { \
101 StaticDispatcher::on##Type(*(static_cast<Renderer*>(renderer)), \
112 [](void* renderer, const MergedBakedOpList& opList) { \
113 StaticDispatcher::onMerged##Type##s(*(static_cast<Renderer*>(renderer)), opList); \
125 renderer.startRepaintLayer(layer.offscreenBuffer, layer.repaintRect);
127 layer.replayBakedOpsImpl((void*)&renderer, unmergedReceivers, mergedReceivers);
129 renderer.endLayer();
132 layer.offscreenBuffer = renderer
[all...]
H A DFrameInfoVisualizer.cpp95 void FrameInfoVisualizer::draw(ContentRenderer* renderer) { argument
103 renderer->drawRect(mDirtyRegion.fLeft, mDirtyRegion.fTop,
118 initializeRects(renderer->getViewportHeight(), renderer->getViewportWidth());
119 drawGraph(renderer);
120 drawThreshold(renderer);
201 void FrameInfoVisualizer::drawGraph(ContentRenderer* renderer) { argument
206 renderer->drawRects(mFastRects.get(), mNumFastRects * 4, &paint);
208 renderer->drawRects(mJankyRects.get(), mNumJankyRects * 4, &paint);
212 void FrameInfoVisualizer::drawThreshold(ContentRenderer* renderer) { argument
[all...]
H A DFrameInfoVisualizer.h55 void draw(ContentRenderer* renderer);
65 void drawGraph(ContentRenderer* renderer);
66 void drawThreshold(ContentRenderer* renderer);
H A DDisplayList.h77 PlaybackStateStruct(OpenGLRenderer& renderer, int replayFlags, LinearAllocator* allocator) argument
78 : mRenderer(renderer)
97 DeferStateStruct(DeferredDisplayList& deferredList, OpenGLRenderer& renderer, int replayFlags) argument
98 : PlaybackStateStruct(renderer, replayFlags, &(deferredList.mAllocator)),
105 ReplayStateStruct(OpenGLRenderer& renderer, Rect& dirty, int replayFlags) argument
106 : PlaybackStateStruct(renderer, replayFlags, &mReplayAllocator),
H A DRenderNode.cpp376 // updateDeferred on a previous prepare pass that didn't have a renderer
377 if (info.renderer && mLayer->deferredUpdateScheduled) {
378 info.renderer->pushLayerUpdate(mLayer);
580 void RenderNode::setViewProperties(OpenGLRenderer& renderer, T& handler) { argument
585 renderer.translate(properties().getLeft(), properties().getTop());
588 renderer.concatMatrix(*properties().getStaticMatrix());
590 renderer.concatMatrix(*properties().getAnimationMatrix());
594 renderer.translate(properties().getTranslationX(), properties().getTranslationY());
596 renderer.concatMatrix(*properties().getTransformMatrix());
607 renderer
907 issueOperationsOf3dChildren(ChildrenSelectMode mode, const Matrix4& initialTransform, const std::vector<ZDrawRenderNodeOpPair>& zTranslatedNodes, OpenGLRenderer& renderer, T& handler) argument
980 issueOperationsOfProjectedChildren(OpenGLRenderer& renderer, T& handler) argument
1033 issueOperations(OpenGLRenderer& renderer, T& handler) argument
[all...]
/frameworks/base/core/java/android/view/
H A DHardwareLayer.java40 private HardwareLayer(ThreadedRenderer renderer, long deferredUpdater) { argument
41 if (renderer == null || deferredUpdater == 0) {
42 throw new IllegalArgumentException("Either hardware renderer: " + renderer
45 mRenderer = renderer;
144 static HardwareLayer adoptTextureLayer(ThreadedRenderer renderer, long layer) { argument
145 return new HardwareLayer(renderer, layer);
H A DDisplayListCanvas.java162 private static native void nInsertReorderBarrier(long renderer, boolean enableReorder); argument
170 * functionality used by webview for calling into their renderer from our display lists.
180 * functionality used by webview for calling into their renderer from our display lists.
194 private static native void nCallDrawGLFunction(long renderer, argument
201 protected static native long nFinishRecording(long renderer); argument
213 private static native void nDrawRenderNode(long renderer, long renderNode); argument
228 private static native void nDrawLayer(long renderer, long layer); argument
240 private static native void nDrawCircle(long renderer, long propCx, argument
252 private static native void nDrawRoundRect(long renderer, long propLeft, long propTop, argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DIPdfEditor.aidl17 package com.android.printspooler.renderer;
H A DIPdfRenderer.aidl17 package com.android.printspooler.renderer;
25 * Interface for communication with a remote pdf renderer.
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DGLExtensions.cpp35 GLubyte const* renderer,
40 mRenderer = (char const*)renderer;
33 initWithGLStrings( GLubyte const* vendor, GLubyte const* renderer, GLubyte const* version, GLubyte const* extensions) argument
/frameworks/base/libs/hwui/tests/common/scenes/
H A DRecentsAnimation.cpp31 void createContent(int width, int height, TestCanvas& renderer) override {
42 renderer.drawColor(Color::White, SkXfermode::kSrcOver_Mode);
43 renderer.insertReorderBarrier(true);
52 renderer.drawRenderNode(card.get());
57 renderer.insertReorderBarrier(false);
/frameworks/base/libs/hwui/tests/microbench/
H A DFrameBuilderBench.cpp86 BakedOpRenderer renderer(caches, renderState, true, sLightInfo);
87 frameBuilder.replayBakedOps<BakedOpDispatcher>(renderer);
88 benchmark::DoNotOptimize(&renderer);
145 BakedOpRenderer renderer(caches, renderState, true, sLightInfo);
146 frameBuilder.replayBakedOps<BakedOpDispatcher>(renderer);
147 benchmark::DoNotOptimize(&renderer);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDecoderPassThrough.h30 const sp<Renderer> &renderer);
40 virtual void onSetRenderer(const sp<Renderer> &renderer);
/frameworks/base/media/java/android/media/
H A DSubtitleController.java323 for (Renderer renderer: mRenderers) {
324 if (renderer.supports(format)) {
325 SubtitleTrack track = renderer.createTrack(format);
390 * renderer
412 * @param renderer a {@link SubtitleController.Renderer} object that adds
415 public void registerRenderer(Renderer renderer) { argument
418 if (!mRenderers.contains(renderer)) {
420 mRenderers.add(renderer);
429 for (Renderer renderer: mRenderers) {
430 if (renderer
[all...]
/frameworks/base/packages/PrintSpooler/
H A DAndroid.mk25 src/com/android/printspooler/renderer/IPdfRenderer.aidl \
26 src/com/android/printspooler/renderer/IPdfEditor.aidl

Completed in 2313 milliseconds

123