summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix fake bold for fallback fonts." into jb-devVictoria Lease2012-06-053-2/+16
|\
| * Fix fake bold for fallback fonts.Victoria Lease2012-05-313-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | With no knowledge of the actual SkTypeface used to render text before render-time, the best we can do is turn fake bold on for all text and simply ignore it at render-time if the SkTypeface's style is bold. Also the complex FontPlatformData hashing mechanism needed to account for fake styles, as the versions of FontPlatformData with fake styles enabled are otherwise indistinguishable from the normal style version Bug: 6522642 Change-Id: Ic0e9f1bbd8cae9fdd3a6d1d015bb9224c8be545c
* | Reduce base layer false clip size to avoid rounding issuesChris Craik2012-06-052-1/+6
| | | | | | | | | | bug:6605853 Change-Id: I65583e61197452ac70c5adf5f967182f0fd7578a
* | Size change on the base surface invalidates the larger of the new/old dimensionsChris Craik2012-06-041-8/+18
| | | | | | | | | | | | | | | | Fixes an issue where tiles outside the new bounds weren't invalidated, as the layer shrank in one dimension. bug:6609350 Change-Id: I1f6715670654c9e6211dbec71875aa2ea11cd8f8
* | Disable clipping on the base surfaceChris Craik2012-06-012-11/+14
| | | | | | | | | | | | | | | | Base surface can expand dynamically (see BaseLayerAndroid::updatePosition) to fill the viewport, so disable clipping on it. bug:6593707 Change-Id: I3afafb28fbe95d3162c76f8e835932577ded65ce
* | Don't allow merging within an animated layerChris Craik2012-05-312-7/+12
| | | | | | | | | | | | | | Also isolates layer translation fudging so as to not affect child transforms. bug:6585341 Change-Id: If416c6fad90ee37fbe3438e01706b34e683165b7
* | Fix animation in single surface modeTeng-Hui Zhu2012-05-314-27/+27
|/ | | | | | bug:5683630 Change-Id: I4d617962a8412de884903f150799f733ea996e1c
* Merge "Minimize tearing for fixed element in single surface mode" into jb-devTeng-Hui Zhu2012-05-306-12/+28
|\
| * Minimize tearing for fixed element in single surface modeTeng-Hui Zhu2012-05-306-12/+28
| | | | | | | | | | | | bug:5683630 Change-Id: I43f738f2649a79b4ad7865ed27375c07195fa9b9
* | Merge "Draw entire layer tree in capturePicture()" into jb-devChris Craik2012-05-301-0/+1
|\ \
| * | Draw entire layer tree in capturePicture()Chris Craik2012-05-301-0/+1
| |/ | | | | | | | | | | | | Also fixes matrix initialization in BaseLayerAndroid::getLocalTransform() bug:6389297 Change-Id: I6a3df3de129aa263986c5082614d8d76bc7408f7
* | Merge "Don't use setupPaintFill for drawBitmap" into jb-devJohn Reck2012-05-293-2/+15
|\ \
| * | Don't use setupPaintFill for drawBitmapJohn Reck2012-05-293-2/+15
| |/ | | | | | | | | | | | | | | | | | | | | | | Bug: 6505013 When drawing a bitmap, don't use setupPaintFill(). The reason is that setupPaintFill will use the fillColor to influence the alpha set on the SkPaint. However, that fillColor does not apply to the bitmap, and can have the result of applying the wrong alpha (as the alpha set is fillColor alpha * graphicsContext's alpha). Instead, set the alpha on the paint directly and use setupPaintCommon Change-Id: Ib8d7ef494593a2896e6e3ed03c00d8d4d4b7232a
* | Fix for wrong positioningNicolas Roard2012-05-291-1/+1
| | | | | | | | | | bug:6560078 Change-Id: I1ef7b3e6398f1cb9a80027a6917d9a557deb8c6f
* | Merge "Reduce UI-thread computation" into jb-devChris Craik2012-05-297-40/+24
|\ \ | |/ |/|
| * Reduce UI-thread computationChris Craik2012-05-257-40/+24
| | | | | | | | | | | | | | | | | | If the current clip covers the entire view, we don't have to calculate framework invals from swapping layers - we already draw them immediately. bug:6530473 Change-Id: I4b639e06781371e37c246f3220b79f28e7d95649
* | Compute scroll limits correctlyJohn Reck2012-05-253-17/+31
| | | | | | | | | | | | Bug: 6563848 Change-Id: I167487fab64c97b6c4ec7f1b14639415ce15e26f
* | Merge "Use newest available SurfaceBacking scale when counting texture ↵Chris Craik2012-05-251-2/+2
|\ \ | | | | | | | | | usage" into jb-dev
| * | Use newest available SurfaceBacking scale when counting texture usageChris Craik2012-05-251-2/+2
| |/ | | | | | | | | | | | | | | Using m_scale would mean that while zooming out, the clipped area would get larger, but the scale would stay the same. bug:6561401 Change-Id: I0806ecb8f565c4d227a2be2b7a27a0af6aff7b46
* | Merge "Better support for HTML5 audio loop" into jb-devTeng-Hui Zhu2012-05-251-0/+1
|\ \ | |/ |/|
| * Better support for HTML5 audio loopTeng-Hui Zhu2012-05-241-0/+1
| | | | | | | | | | | | | | | | | | bug:5461143 frameworks change: https://android-git.corp.google.com/g/#/c/193751/ Change-Id: I691a8aa7eb2a7fc196358a3ab2929075bd4a8a8b
* | Merge "Compute draw transforms only for new/dynamically transformed layers" ↵Chris Craik2012-05-255-43/+63
|\ \ | | | | | | | | | into jb-dev
| * | Compute draw transforms only for new/dynamically transformed layersChris Craik2012-05-245-43/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, hundreds of layers could take 4+ ms to update transforms. Now, only those that are fixed, have animations, or are scrollable calculate transforms. bug:6530473 Change-Id: Ic9b14b76190c5bd0e5a405914a624d92b7ca7980
* | | Fix memory leakNicolas Roard2012-05-241-2/+2
|/ / | | | | | | | | bug:6535726 Change-Id: Id944448a9dbafa951fd3c7eab0f248380d0a5314
* | Merge "Move scrollOffset into Layer class" into jb-devChris Craik2012-05-245-12/+14
|\ \
| * | Move scrollOffset into Layer classChris Craik2012-05-235-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | Layer can now use the offset to paint, resulting in correct translates for overflow:scroll layers in the Layer::draw() path. bug:6548000 Change-Id: I1dfb88b15491e72e6c3841ce2953e114124e40fd
* | | Merge "Don't set up background images if 1x1" into jb-devNicolas Roard2012-05-231-4/+7
|\ \ \
| * | | Don't set up background images if 1x1Nicolas Roard2012-05-231-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We do this check in other places. We still need a better solution for the general case. bug:6540356 Change-Id: I3f75c62141d7b6993928927117d972d0ec224b55
* | | | Merge "Use Surface areas to compute tile usage" into jb-devChris Craik2012-05-235-20/+30
|\ \ \ \
| * | | | Use Surface areas to compute tile usageChris Craik2012-05-235-20/+30
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Previously we used the surface's first layer's area, which is often incorrect in the case of significant layer merging. bug:6545187 Change-Id: Ied3e5e3cd894b145ed905f8ba83649b3c4f3b1dd
* | | | Merge "Add tracing to interesting/potentially costly functions" into jb-devChris Craik2012-05-233-0/+5
|\ \ \ \
| * | | | Add tracing to interesting/potentially costly functionsChris Craik2012-05-233-0/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | bug:6530473 bug:6344165 Change-Id: I40b190036af8c021134d5ac450e3217098ba2296
* | | | Merge "Clean up the transferQueue code and add more detailed GL log" into jb-devTeng-Hui Zhu2012-05-232-55/+11
|\ \ \ \ | |_|/ / |/| | / | | |/ | |/|
| * | Clean up the transferQueue code and add more detailed GL logTeng-Hui Zhu2012-05-232-55/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove one unnecessary parameter in blitTileFromQueue. Remove syncKHR related code in TransferQueue since that is supported by SurfaceTexture. bug:6516534 Change-Id: Iaf1f46a0f459ad8973c7465a9b8550f760115384
* | | Merge "Correctly handle the EGL context recreation." into jb-devTeng-Hui Zhu2012-05-232-24/+21
|\ \ \ | |/ /
| * | Correctly handle the EGL context recreation.Teng-Hui Zhu2012-05-232-24/+21
| | | | | | | | | | | | | | | bug:6516534 Change-Id: Iaf62359803d65d3a9acb88aa224a1a5c42f8aa4c
* | | Merge "Fix crash" into jb-devNicolas Roard2012-05-231-0/+2
|\ \ \ | |_|/ |/| |
| * | Fix crashNicolas Roard2012-05-231-0/+2
| |/ | | | | | | | | bug:6537803 Change-Id: Ie0bb6e64644fd82c0ed6cf92c592c434f67fdc0d
* | Merge "Don't use an ImageBuffer for scratchContext()" into jb-devJohn Reck2012-05-222-1/+21
|\ \ | |/ |/|
| * Don't use an ImageBuffer for scratchContext()John Reck2012-05-222-1/+21
| | | | | | | | | | | | Bug: 6509450 Change-Id: I6d952b92062e96772663824839b0229062c3a524
* | We need to clear the items even when seeing obsolete tilesTeng-Hui Zhu2012-05-221-0/+1
|/ | | | | | bug:6531360 Change-Id: Ia23ddeb56d384c4e3904cabf787bbe72be4a6f08
* Merge "Disable transform fudging for merged surfaces" into jb-devChris Craik2012-05-212-1/+8
|\
| * Disable transform fudging for merged surfacesChris Craik2012-05-212-1/+8
| | | | | | | | | | | | | | | | | | Draw transforms are used at painting time for merged surfaces, so they shouldn't be manipulated in the draw path. The fudging isn't necessary for these surfaces in the first place, as merged surfaces are always aligned to pixel coordinates. bug:6156523 Change-Id: I3d954869188008f1a9e35915df893d75b49be6a2
* | Turn off autohinting at HDPI. do not mergeBilly Hewlett2012-05-211-0/+4
|/ | | | | | | cherry-pick of CL: 752753e2caf24f28dac51731ee1f1443cf511410 Bug: 6478362 Change-Id: I9734658a509010035eb3081be8affb609863d46c
* Fix memory leak and repaint issues with fixed background elementsNicolas Roard2012-05-184-17/+27
| | | | | | bug:6522485 bug:6486951 Change-Id: Ia707efed9311e4352eed3ab005ec7ca93b8444e4
* Remove paint tile operations for stale paintersChris Craik2012-05-187-2/+46
| | | | | | | | bug:6516612 also adds ClassTracker to several classes Change-Id: I9a503084240d4935fba300a3256d266a2982dcc0
* Merge "Clean up some redundant code" into jb-devTeng-Hui Zhu2012-05-182-6/+2
|\
| * Clean up some redundant codeTeng-Hui Zhu2012-05-172-6/+2
| | | | | | | | | | | | bug:6457191 Change-Id: Ie3ec0315151119b4428fdd97451084894f63db13
* | Make sure CanvasLayer isn't merged and is initialized correctlyJohn Reck2012-05-173-1/+4
| | | | | | | | | | | | Bug: 6516775 Change-Id: Ifecddec18d369ba701668be85d4032918fc8d4fa
* | Merge "Workaround double texture removal" into jb-devBart Sears2012-05-171-1/+5
|\ \