3e9999bd866fac71c72e6b484a9836c87c328a08 |
|
20-Jan-2017 |
sergeyv <sergeyv@google.com> |
Explicitly destroy Layer in DeferredLayerUpdater on destroyHardwareResources() Change-Id: I0987104eabda9a2a302b9e765213aad48f93aea4 Test: refactoring CL. Existing tests still pass bug:33753499
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
ec4a4b13eae2241d1613890c1c1c096bed891845 |
|
21-Oct-2016 |
sergeyv <sergeyv@google.com> |
Use Bitmap in DisplayList & RecordedOps instead of SkBitmap Test: refactoring cl. bug:32216791 Change-Id: I1d8a9a6e772e2176b6c2409409a910478b45f8db
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
260ab726486317496bc12a57d599ea96dcde3284 |
|
07-Oct-2016 |
Mike Reed <reed@google.com> |
use SkBlendMode instead of SkXfermode use sk_sp versions of paint setters/getters Change-Id: I86591a0a8ec92e6039776cbf00424ea24f585b28
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
253f2c213f6ecda63b6872aee77bd30d5ec07c82 |
|
29-Sep-2016 |
Romain Guy <romainguy@google.com> |
Linear blending, step 1 NOTE: Linear blending is currently disabled in this CL as the feature is still a work in progress Android currently performs all blending (any kind of linear math on colors really) on gamma-encoded colors. Since Android assumes that the default color space is sRGB, all bitmaps and colors are encoded with the sRGB Opto-Electronic Conversion Function (OECF, which can be approximated with a power function). Since the power curve is not linear, our linear math is incorrect. The result is that we generate colors that tend to be too dark; this affects blending but also anti-aliasing, gradients, blurs, etc. The solution is to convert gamma-encoded colors back to linear space before doing any math on them, using the sRGB Electo-Optical Conversion Function (EOCF). This is achieved in different ways in different parts of the pipeline: - Using hardware conversions when sampling from OpenGL textures or writing into OpenGL frame buffers - Using software conversion functions, to translate app-supplied colors to and from sRGB - Using Skia's color spaces Any type of processing on colors must roughly ollow these steps: [sRGB input]->EOCF->[linear data]->[processing]->OECF->[sRGB output] For the sRGB color space, the conversion functions are defined as follows: OECF(linear) := linear <= 0.0031308 ? linear * 12.92 : (pow(linear, 1/2.4) * 1.055) - 0.055 EOCF(srgb) := srgb <= 0.04045 ? srgb / 12.92 : pow((srgb + 0.055) / 1.055, 2.4) The EOCF is simply the reciprocal of the OECF. While it is highly recommended to use the exact sRGB conversion functions everywhere possible, it is sometimes useful or beneficial to rely on approximations: - pow(x,2.2) and pow(x,1/2.2) - x^2 and sqrt(x) The latter is particularly useful in fragment shaders (for instance to apply dithering in sRGB space), especially if the sqrt() can be replaced with an inversesqrt(). Here is a fairly exhaustive list of modifications implemented in this CL: - Set TARGET_ENABLE_LINEAR_BLENDING := false in BoardConfig.mk to disable linear blending. This is only for GLES 2.0 GPUs with no hardware sRGB support. This flag is currently assumed to be false (see note above) - sRGB writes are disabled when entering a functor (WebView). This will need to be fixed at some point - Skia bitmaps are created with the sRGB color space - Bitmaps using a 565 config are expanded to 888 - Linear blending is disabled when entering a functor - External textures are not properly sampled (see below) - Gradients are interpolated in linear space - Texture-based dithering was replaced with analytical dithering - Dithering is done in the quantization color space, which is why we must do EOCF(OECF(color)+dither) - Text is now gamma corrected differently depending on the luminance of the source pixel. The asumption is that a bright pixel will be blended on a dark background and the other way around. The source alpha is gamma corrected to thicken dark on bright and thin bright on dark to match the intended design of fonts. This also matches the behavior of popular design/drawing applications - Removed the asset atlas. It did not contain anything useful and could not be sampled in sRGB without a yet-to-be-defined GL extension - The last column of color matrices is converted to linear space because its value are added to linear colors Missing features: - Resource qualifier? - Regeneration of goldeng images for automated tests - Handle alpha8/grey8 properly - Disable sRGB write for layers with external textures Test: Manual testing while work in progress Bug: 29940137 Change-Id: I6a07b15ab49b554377cd33a36b6d9971a15e9a0b
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
aebbbef5658fea13b06586d39adca351135d9edb |
|
31-May-2016 |
sergeyv <sergeyv@google.com> |
HWUI: do nothing in case of empty layer bug:28862058 Change-Id: I8e09a5c33d0eb00a829be4df706dab49cad48b1e
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
37413289478a965336239c731ebfea37ac4dde28 |
|
13-May-2016 |
Chris Craik <ccraik@google.com> |
Fix hw layer overdraw/update visualization Fixes: 28748255 Change-Id: I83b531cdf5e4407fd17edd72d96e6189924926fa
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
45d6e7956544051c06a228755b7fd7c179bcdbfe |
|
11-May-2016 |
Sergei Vasilinetc <sergeyv@google.com> |
Merge "Draw textShadow always first." into nyc-dev
|
284b765e3c1647859d4dac772744e8859c033216 |
|
10-May-2016 |
sergeyv <sergeyv@google.com> |
Draw textShadow always first. Interleaving text and shadow rendering resulted in issuing draw commands from FontRenderer::renderDropShadow. bug: 28528923 Change-Id: Ife2677f58180aaf10ec74d7c6efe5c44fe248daa
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
b2e36d7939610de538a6ec95a821b61b365b3073 |
|
04-May-2016 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "Use LUT for computing final shadow alpha" into nyc-dev
|
138c21fbec12bead3c7ca1f181c3fd35542ccb00 |
|
29-Apr-2016 |
Chris Craik <ccraik@google.com> |
Use LUT for computing final shadow alpha bug:27415250 Significantly reduces shadow fragment shader computation. Change-Id: Ie9b3c712700754b3734d0ae9cda8751c298fc59e
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
8438a7297c16c1ee73f4e67efef18ad9062e15f1 |
|
27-Apr-2016 |
Chris Craik <ccraik@google.com> |
Merge "Fix oval positioning when drawn with patheffect" into nyc-dev
|
e98a046d3110eb2ff11a17f4ff27764b803a1379 |
|
27-Apr-2016 |
Chris Craik <ccraik@google.com> |
Fix oval positioning when drawn with patheffect Fixes: 28396277 Change-Id: I9e21696d81d7cd219f3eaa081bf3d9ba988fe051
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
92a5d4b99a5554adca0e94627d44d2bd7f4f0bc0 |
|
20-Apr-2016 |
sergeyv <sergeyv@google.com> |
Stop always set OffsetByFudgeFactor in renderVertexBuffer bug:27857128 Change-Id: Id92e0a5790b14f76cfa8bb38e8b11ce649775da0
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
74af6e282f8a8f75928a071e8200039517cf5c12 |
|
05-Apr-2016 |
Chris Craik <ccraik@google.com> |
Fix OffscreenBuffer leak Fixes: 27941148 Make OffscreenBuffer lifecycle an explicit (and tested) contract between FrameBuilder and BakedOpRenderer, entirely separate from dispatch. This makes it safe to reject any rendering work via overdraw content rejection (before it gets to a BakedOpDispatcher). Adds a couple tests around OffscreenBuffer leaks, and switches OffscreenBuffer tests to RENDERTHREAD_TEST macro, as appropriate. Change-Id: Id114b835d042708ae921028fb4b17e5fa485fe64
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
70969ccde405ea410fc7ccfe869999a03f056686 |
|
31-Mar-2016 |
Chris Craik <ccraik@google.com> |
Fix layer damage and clipping for Text shadows Fixes: 27787426 Change-Id: I4c65cca0cfcd343a9cfbaedd3a32b83f90df2ecf
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
a204848b1dc63877a12e2d24108e9d8e1e691e28 |
|
25-Mar-2016 |
Chris Craik <ccraik@google.com> |
Create first class unbounded ColorOp bug:27810783 Previous drawColor->drawPaint conversion failed to preserve unbounded nature of drawColor from old pipeline. Change-Id: Ifd7a7b9d645f0887e252e48ca95d3195ee31615f
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
f6c20e4b4232e30901676bcdf1aed64801d50c7e |
|
02-Mar-2016 |
Chris Craik <ccraik@google.com> |
Fix merged bitmap mesh generation and reenable merging bug:26793764 bug:26569206 Change-Id: I54628e99b61f58f5726a387ea3599c29695c0efc
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
b67985f337e1592f621e1b85f525098887804ccd |
|
02-Mar-2016 |
Chris Craik <ccraik@google.com> |
Merge changes I4f72448f,I74b7233c into nyc-dev * changes: Fix ripple positioning within scrolled node Clip projected ripples to outlines
|
678ff81105753656aa4822f4f675ef96dc9d2b83 |
|
01-Mar-2016 |
Chris Craik <ccraik@google.com> |
Clip projected ripples to outlines bug:27343928 Also fixes positioning of ripples to a scrolled projection receiver. Change-Id: I74b7233c46d7c15839ca8bf50e188ba6646d7432
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
0066a01d7ceb9db89fe5edb97e06f62db1c52a74 |
|
29-Feb-2016 |
Chris Craik <ccraik@google.com> |
Fix arc positioning bug:27389290 Change-Id: I479a34ea079f1fce1c308aa809a57885ffa1d004
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
e2822e4c799815e6e5633af0f75fe5f221897d87 |
|
23-Feb-2016 |
Chris Craik <ccraik@google.com> |
Fix positioning in path fallback case bug:26923968 Change-Id: Iaf686fb69b629cf5c8762188073e57c8664150a8
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
e8c3c813b0e3ac98304b17a751ce6e436e252bd9 |
|
06-Feb-2016 |
Chris Craik <ccraik@google.com> |
Fix TextDropShadowCacheTests and glyph_t everywhere Change-Id: I943eae4e9408c77bdfba6304ba7ee3e862351a41
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
c8ca8ceba067e5f439560275fd9529646f2b569a |
|
04-Feb-2016 |
Chris Craik <ccraik@google.com> |
Merge "Simplify shadow task cleanup"
|
d8165e863b37d82c937ad960dc970f2d2cf72c2a |
|
04-Feb-2016 |
Chris Craik <ccraik@google.com> |
Simplify shadow task cleanup bug:26964750 Removes 3 news/deletes per task, as well as the waitOnTask inside destruction Change-Id: Iec11165bcfa7f98ca41574885734c2ad39328cc8
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
bcda2da5fe9ab9ee1fe765e1e80a49c12c86cdca |
|
03-Feb-2016 |
Chris Craik <ccraik@google.com> |
Merge "Early kickoff of shadow tasks"
|
6e068c0182f6f85bccb855a647510724d1c65a13 |
|
16-Jan-2016 |
Chris Craik <ccraik@google.com> |
Early kickoff of shadow tasks bug:26562703 Change-Id: I7cdf18f2c662380bd31c7ffeefd5c3f569e5c1c6
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
c0f3f2f8c0c2fa97099e5f3c5e3860653ce0f261 |
|
03-Feb-2016 |
Chris Craik <ccraik@google.com> |
Fix null offscreen buffer crash bug:26571145 Change-Id: I6e885fd6135c0987360275cbf5b46475c24401d4
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
975591a7af883d866d86ab819e164c6004694744 |
|
23-Jan-2016 |
John Reck <jreck@google.com> |
Add fine-grained debug layer Full GLES error checking layer via -include trickery. Change DEBUG_OPENGL to a level system. HIGH = every GL call is error checked MODERATE = checkpointing at interesting spots LOW = only asserts there are no errors at the end of a frame or when the FBO changes NONE = AIN'T GOT NO TIME FOR ERRORS GOTTA GO FAST! Change-Id: Ibe81aae93d942059c4ddf1cbb11c828b7ce4c10b
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
9372ac3621848085e77b867f220c0b5ffce4010d |
|
19-Jan-2016 |
John Reck <jreck@google.com> |
Fix ordering of texture->upload arguments Caught by scatter-shotting GL_CHECKPOINTS which seem generally useful to have Bug: 26609444 Change-Id: Ie31d9297d8dae56405126720f338b4256c8bae77
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
7db5ffb7dbd30202468459e2ef4426e91d4fcbb3 |
|
15-Jan-2016 |
John Reck <jreck@google.com> |
Revert "Revert "Fix leak in unclipped save layer"" This reverts commit a6fc36d4cd7f27147fd304960acdd1d2f47fc1c6. Change-Id: I6b96afe4a32dc894d5b17cfb870b45063257aed2
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
a6fc36d4cd7f27147fd304960acdd1d2f47fc1c6 |
|
15-Jan-2016 |
Daniel Chapin <chapin@google.com> |
Revert "Fix leak in unclipped save layer" This reverts commit 8e068d5fd38dd103a122215fb6d185135182edf3. Change-Id: Icd8ad5a2450db34aacecf748d6103df9faaa4c81
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
8e068d5fd38dd103a122215fb6d185135182edf3 |
|
15-Jan-2016 |
John Reck <jreck@google.com> |
Fix leak in unclipped save layer Change-Id: I31f146af2cb6f5cb8dd19bb0feff0ae35b864eba
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
38e0c32852e3b9d8ca4a9d3791577f52536419cb |
|
10-Nov-2015 |
John Reck <jreck@google.com> |
Track texture memory globally Also mostly consolidates texture creation Change-Id: Ifea01303afda531dcec99b8fe2a0f64cf2f24420
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
89ceb5c97745c6901620c20eb0828a5c2f768f4f |
|
12-Jan-2016 |
Chris Craik <ccraik@google.com> |
Fix 9 patch mesh usage Change-Id: I638fd5816d68a9ecd7f1709624fde2f372de5fa7
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
f9b36785346ab7df83d9259681c1cfabf02d917a |
|
11-Jan-2016 |
Chris Craik <ccraik@google.com> |
Fix path position in BakedOpDispatcher Change-Id: I73f4bbcf3fe6f5d3fbdf8058b598bb8f1622097c
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
7435eb148e72382126e9073183e881357bb38a8b |
|
08-Jan-2016 |
Chris Craik <ccraik@google.com> |
Unclipped savelayer support in new renderer bug:22480459 Change-Id: I89dd5de8d7d008a1e298d227d767aabff5c96e27
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
b87eadda1818034ce03d85f30388384d1ac65916 |
|
06-Jan-2016 |
Chris Craik <ccraik@google.com> |
Partial unclipped save layer support Not yet implemented in renderer. Change-Id: I491ec6e7886bfa313d1db71dd5981690d45b78a9
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
7cbf63da4f29e5a6b131796eb3b67fd9ff1521b8 |
|
06-Jan-2016 |
Chris Craik <ccraik@google.com> |
Rework op macros Makes it simpler to add defer-only or render-only opps. Change-Id: I6c8ec64e76d419635429055cff6d96360d21706d
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
e4db79de127cfe961195f52907af8451026eaa20 |
|
23-Dec-2015 |
Chris Craik <ccraik@google.com> |
Stencil support in new recorder/reorderer bug:22480459 bug:26358504 Adds complex (non-rectangular) clipping support, and overdraw visualization. Doesn't support stencil clipping in layers. Change-Id: I8d10c7f1d2769ab5756774ca672344cc09901f87
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
d2dfd8f128b632ed99418ab2b32949c939a9a369 |
|
16-Dec-2015 |
Chris Craik <ccraik@google.com> |
Add TextureView support to new renderer/reorderer bug:22480459 Change-Id: I2e4c0bc6b904706132f3f5087ededc9cac9b40fb
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
d7448e65e243754f31890baef29dff187dc2e5e5 |
|
15-Dec-2015 |
Chris Craik <ccraik@google.com> |
Add TextOnPath support to new reorderer/renderer bug:22480459 Change-Id: I302048ec09901420c15003e21e44a551cc59c7ad
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
e29ce6f51d681af7649c0a7cddee97c471e43eb5 |
|
11-Dec-2015 |
Chris Craik <ccraik@google.com> |
Add functor support to new reorderer/renderer bug:22480459 Change-Id: I95df7e0504f62d254e8ffbd8d65ed5d763080b9c
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
4c1b495f4f9b05e34a2583eb4537cebdda981d4f |
|
15-Dec-2015 |
Chris Craik <ccraik@google.com> |
Merge "Avoid unneeded rect params"
|
5430ab220b231a96b71c3e030d0303d9ce008b05 |
|
11-Dec-2015 |
Chris Craik <ccraik@google.com> |
Avoid unneeded rect params Change-Id: I2d8dcf6b09fdc554a403ac74763bf856b5f5d9fa
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
268a9c0f29c16a64d5819c7dbe8b0633baedab83 |
|
10-Dec-2015 |
Chris Craik <ccraik@google.com> |
Add property animations to new reorderer/renderer bug:22480459 Change-Id: Id8091038004245a56deb48bf3625edfd08ab8681
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
f09ff5aa57bff01cb17595fb7ca8e48d238a6acd |
|
09-Dec-2015 |
Chris Craik <ccraik@google.com> |
Add bitmapmesh, rect, and patch rendering bug:22480459 Change-Id: Id9e9146997dd018b3e4e785c2bc13689e3cf7c3c
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
386aa031793bb037ec43b6cdbd8908c343cc86cb |
|
08-Dec-2015 |
Chris Craik <ccraik@google.com> |
Add more shape drawing to new reorderer/renderer bug:22480459 Add support for outsetting final bounds based on stroke. Change-Id: I659318ccec51882bba1906ce3c7042288ce35c30
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
15c3f19a445b8df575911a16e8a6dba755a084b5 |
|
03-Dec-2015 |
Chris Craik <ccraik@google.com> |
Merged op dispatch in OpReorderer bug:22480459 Also switches std::functions to function pointers on OpReorderer, and switches AssetAtlas' entry getter methods to using pixelRef pointers, so it's clear they're the keys. Change-Id: I3040ce5ff4e178a8364e0fd7ab0876ada7d4de05
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|
9e7fcfda28fde747ba4e026772007cea77374e16 |
|
25-Nov-2015 |
Chris Craik <ccraik@google.com> |
Move BakedOpDispatcher to separate file Change-Id: If7aad6db6b7e54a33eac9b9eddbe8cd844207282
/frameworks/base/libs/hwui/BakedOpDispatcher.cpp
|