diff options
| author | 2013-02-08 17:11:31 -0800 | |
|---|---|---|
| committer | 2013-02-08 20:56:00 -0800 | |
| commit | a9a7b3740598c79792cbcebca6a00d1595324ae9 (patch) | |
| tree | 85abcb4eed70a1334fcdd8d576c2ad5454dbe0eb /libs/hwui/Program.cpp | |
| parent | 7bd280ac8d56a9eb73240ccd5a403855286e6cb9 (diff) | |
Fix copyFrom() to use proper dimensions for copying.
This change actually fixes several bugs related to stride:
* copyFrom() needs to call the 2D or 1D version, depending on the dimensions
of the corresponding Allocation.
* Add an internal-only copy2DRangeFromUnchecked(), since we don't really
want to expose it as another public API (only via copyFromUnchecked()).
* Call the proper 1D/2D version in copyFromUnchecked() based on the
Allocation dimensions.
* Add Element checks to the "checked" copy2DRangeFrom() routines.
Change-Id: I690706d36884ee749bf90937c715855f6c07368c
Diffstat (limited to 'libs/hwui/Program.cpp')
0 files changed, 0 insertions, 0 deletions