summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Glop based composeLayerRegion/Rect"Chris Craik2015-03-101-6/+58
|\
| * Glop based composeLayerRegion/RectChris Craik2015-03-091-6/+58
| | | | | | | | Change-Id: I69440cabca84948e8aaead9479d616ebc2496517
* | Fix unused local variale warning from clang/llvm.Chih-Hung Hsieh2015-03-061-5/+1
|/ | | | Change-Id: Ib9b5d06313e5bf933edfb38a4522929104c7917a
* Patch cleanup, reenable Patch GlopsChris Craik2015-03-041-2/+2
| | | | | | bug:19597454 Change-Id: If12b95e83588b81a553210cd8c2437c6c771073a
* Temporarily disable Patch glopsChris Craik2015-03-041-1/+1
| | | | | | bug:19597454 Change-Id: I9dbe781a714582717a5585113b9a56821265b36e
* Glop DrawPatch supportChris Craik2015-03-031-1/+20
| | | | Change-Id: Icaa78bdb2cf52c1fc2194ec4016634967d17fb6a
* Glop drawBitmaps, drawPatchesChris Craik2015-03-031-80/+105
| | | | Change-Id: I3f1cd3f47f97d2e0c9b9d153732e26ee0b1c58c2
* Cleanup of FontRendererChris Craik2015-02-271-17/+6
| | | | | | | Remove invalid and over complicated buffer unbinding optimization, and simplify constructor. Change-Id: I3dd90528de4f377e972bbd7967e7e232875387e4
* Fix glop rendering within unclipped saveLayersChris Craik2015-02-271-40/+43
| | | | | | | | | bug:19541881 Additionally, clean up GlopBuilders and rename onGetSnapshot() for clarity Change-Id: I0303e4cd61eef87cf80af2d968c4aa67193cd008
* Glop TextureLayer supportChris Craik2015-02-271-5/+18
| | | | Change-Id: I348a926bd4a2f47be9fdbe74058c0aa2f8dc6276
* Glop mesh reorg, support for drawBitmapMeshChris Craik2015-02-261-12/+25
| | | | Change-Id: Iaf5550bdd93da93e59a5b838234ab5612e067387
* Remove renderer abstract classChris Craik2015-02-251-3/+3
| | | | | | | No longer needed, allowing vast majority of methods on OpenGLRenderer to be non-virtual. Change-Id: I8a6ee042b95050dc666887579ef4e1c7a8f9b33b
* Glop support for custom textured UVs, simplify drawBitmap(src,dst)Chris Craik2015-02-251-41/+38
| | | | | | Front load the scaling-to-support-shaders to record time. Change-Id: I861c82d9d16d3c5e063cf87230127eed0b3f9b54
* Glop layer mesh renderingChris Craik2015-02-191-73/+74
| | | | Change-Id: I2d902819d5d77f496b67d4d25a298782903e410d
* Glop text shadows, clearLayerRegions, and rectangleListChris Craik2015-02-171-28/+65
| | | | Change-Id: I83b36d1ee5d8f05f41acf244639019f9b8da79cd
* Glop SkiaShader supportChris Craik2015-02-171-21/+7
| | | | Change-Id: I894a0b62701bd02367ab970813e4c332147351a2
* Glop path texture supportChris Craik2015-02-121-8/+22
| | | | Change-Id: I505eb05991ca4c9b2e01e49988b8f962fad51462
* Glop Bitmap and RoundRect clipping supportChris Craik2015-02-121-56/+79
| | | | Change-Id: I4577546a5d2e5f084cc03f39a89db9231b8111ee
* Glop support for indexed quadsChris Craik2015-02-091-10/+27
| | | | | bug:19014311 Change-Id: If35a873421b41cc4508b0d8ac1b4d900c9bb3717
* Merge "Glop ColorFilter & VertexBuffer support, initial enable"Chris Craik2015-02-061-36/+70
|\
| * Glop ColorFilter & VertexBuffer support, initial enableChris Craik2015-02-061-36/+70
| | | | | | | | | | | | | | Enables Glop rendering for supported Rects and VertexBuffers Also removes unused Query object Change-Id: Ibe227bc362685a153159f75077664f0947764e06
* | Merge "GlopBuilder, and test app refactor"Chris Craik2015-02-051-4/+7
|\ \ | |/
| * GlopBuilder, and test app refactorChris Craik2015-02-041-4/+7
| | | | | | | | Change-Id: I2cd299ccf178007fd5f83bab6c3448f03aec7843
* | Merge "Refactoring of Program ownership/lifecycle, and WIP Glop rendering path"Chris Craik2015-02-031-46/+29
|\ \ | |/
| * Refactoring of Program ownership/lifecycle, and WIP Glop rendering pathChris Craik2015-02-021-46/+29
| | | | | | | | Change-Id: I2549032790bddbc048b0bccc224ed8f386b4517c
* | Merge "Add a WAIT_FOR_GPU_COMPLETION option"John Reck2015-01-301-2/+1
|\ \ | |/ |/|
| * Add a WAIT_FOR_GPU_COMPLETION optionJohn Reck2015-01-301-2/+1
| | | | | | | | Change-Id: I18d526120651676109200bfd5da87cafcd7e3d13
* | Refactor blending and texture gl stateChris Craik2015-01-301-98/+24
|/ | | | Change-Id: Ia6b3c8b2afd3dfcee7f3ce401d846b789612054a
* Move more GL state management to RenderState and its directoryChris Craik2015-01-281-65/+68
| | | | Change-Id: Ic68584e1c08dc64be2ad43450cb6caa1de834fdc
* Move scissor state to RenderStateChris Craik2015-01-271-43/+47
| | | | Change-Id: I1227a3886fb24e4d9fad79fca469794f06cfb15e
* Merge "Clipping performance improvements"Rob Tsuk2015-01-151-30/+111
|\
| * Clipping performance improvementsRob Tsuk2015-01-141-30/+111
| | | | | | | | | | | | | | | | | | | | | | | | Create a ClipArea class to handle tracking clip regions. This class can select the most efficient implementation depending on the types of clipping presented. ClipArea re-used the rectangle and region-based clipping implementations as well as adding a "list of rotated rectangles" approach that is more efficient for rotated views with children. Change-Id: I2133761a2462ebc0852b394220e265974b3086f0
* | Update HWUI to store its own SkBitmap objectsDerek Sollenberger2015-01-091-18/+0
|/ | | | | | | | | | | This enables us to... 1) simplify the lifecycle/ownership between Java and HWUI 2) remove DisplayListRenderer::drawBitmapData and associated logic 3) track pixel lifecycle using standard SkPixelRef refcounting 4) Remove uncessary calls to ref/unref the bitmap's pixels and colorTable Change-Id: I3c95078da20995444f6388a029414280fd654318
* Make DisplayListRenderer inherit from Canvas, merge JNITom Hudson2015-01-051-9/+13
| | | | | | | | | | | | | Incrementally unify the upper layers for Skia and HWUI. Remove redundant code from GLES20Canvas.java; instead use inherited mNativeCanvasWrapper and superclass method definitions. Moves some unrelated SkPaint utility functions from Renderer to new utils/PaintUtils. bug: 15672762 Change-Id: I4ddd4214b8e9eeb95289d054ef423f2542bb5fa5
* Cleanup various clang warnings, use unique_ptrs in several placesChris Craik2014-12-231-27/+12
| | | | Change-Id: I347904b25e51fcc7de14b1e72f1acd0f6ba26f3f
* Add overrides and switch to nullptr keywordChris Craik2014-12-221-57/+63
| | | | | | | | Changes generated with clang-modernize. Additionally, fixed some struct-vs-class usage to make clang happy. Change-Id: Ic6ef2427401ff1e794d26f21f7b44868fc75fb72
* CleanupChris Craik2014-12-221-7/+3
| | | | Change-Id: I91ffb9c66697741116fdeaa31abdf6cfd79155df
* resolved conflicts for merge of fd461ede to masterChris Craik2014-12-171-1/+4
|\ | | | | | | Change-Id: I36f263c7e6d96355dd8a2c3565581b9a983ae481
| * am 93492d1a: am c748832f: Merge "Revert overdraw avoidance visualization ↵Chris Craik2014-12-171-1/+4
| |\ | | | | | | | | | | | | | | | | | | change" into lmp-mr1-dev * commit '93492d1a478770783abab764855c8d47e0264f71': Revert overdraw avoidance visualization change
| | * Merge "Revert overdraw avoidance visualization change" into lmp-mr1-devChris Craik2014-12-171-1/+4
| | |\
| | | * Revert overdraw avoidance visualization changeChris Craik2014-12-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:18787324 Partial revert of 23d307c8d88f4a3849163b9e5b7cd11d0d4f372c. Change-Id: Ic8b91b046707fc5b8fa53c35ea7b37bb19c3c943
| * | | Fix styleJohn Reck2014-12-121-2/+2
| | | | | | | | | | | | | | | | Change-Id: I7227b0eac126bf470ed50249a7809b845872983b
* | | | resolved conflicts for merge of d67bb501 to masterYohann Roussel2014-12-111-3/+3
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I40698ce1e382cb41eec7af5ea49ac0e2f997d555
| * | | am eb2dcc79: Merge "Don\'t preload textures for AssetAtlas" into lmp-mr1-devJohn Reck2014-12-111-3/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | automerge: e4a6ed9 * commit 'e4a6ed9d6d8721c9fad018b0d43dfe7daf4b24e7': Don't preload textures for AssetAtlas
| | * | Merge "Don't preload textures for AssetAtlas" into lmp-mr1-devJohn Reck2014-12-111-3/+3
| | |\ \
| | | * | Don't preload textures for AssetAtlasJohn Reck2014-12-101-3/+3
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18317479 RenderNode::prepareSubTree calls prefetchAndMarkInUse on every bitmapResoruce in the DisplayList. However, this resulted in textures being uploaded for bitmaps that would be drawn from the AssetAtlas instead. To fix this we teach TextureCache about the AssetAtlas so that calls to TextureCache return the Texture from AssetAtlas if it exists. Thus usage of AssetAtlas is now purely to allow for further optimizations via draw merging instead of a requirement to get any benefit at all. Change-Id: I65282fa05bac46f4e93822b3467ffa0261ccf200
* | | | resolved conflicts for merge of 5369b769 to masterChris Craik2014-12-101-0/+5
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: Iccb2ce948321534e05d67e64dc40a38332adb1a7
| * | | resolve merge conflicts of ed211b9 to lmp-mr1-dev-plus-aosp.Chris Craik2014-12-101-0/+5
| |\ \ \ | | |/ / | | | | | | | | Change-Id: Ib9d6d301282bbaae6b23b9ce07b9e6a4e9075991
| | * | Fix frame-allocated path lifecyclesChris Craik2014-12-101-0/+5
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:18667472 Previously, we were allocating per-frame temporary paths within the PlaybackStateStruct, but these are not safe as layers allocate these transiently. Instead, move these to the OpenGLRenderer, which has better define lifecycle. Additionally, don't store SkPath objects directly in vector, since they are then subject to relocation. Change-Id: I8187ef542fcd5b030502bb75eb123ee26c0daa96
| | * Merge "Enable stencil clipping within clearLayerRegions" into lmp-mr1-devChris Craik2014-12-011-7/+1
| | |\