summaryrefslogtreecommitdiffstats
path: root/include/ui/Rect.h
Commit message (Collapse)AuthorAgeFilesLines
* improve [un]marshalling of non-binder objectsMathias Agopian2012-08-131-1/+2
| | | | | | | | | | | | | | | | | this change introduces a new class LightFlattenable<> which is a protocol to flatten simple objects that don't require binders or file descriptors; the benefit of this protocol is that it doesn't require the objects to have a virtual table and give us a consitant way of doing this. we also introduce an implementation of this protocol for POD structures, LightFlattenablePod<>. Parcel has been update to handle this protocol automatically. Sensor, Rect, Point and Region now use this new protocol. Change-Id: Icb3ce7fa1d785249eb666f39c2129f2fc143ea4a
* minor Rect.h cleanupMathias Agopian2012-05-131-2/+9
| | | | | | | add getBounds(), getWidth(), getHeight(), width() and height() are kept for backward compatibility. Change-Id: I83837abf17dc2f8bded1beff73430e8c7d9bbdb3
* SurfaceFlinger: add a crop to the layer stateJamie Gennis2012-05-111-1/+1
| | | | | | | | | This change adds a crop rectangle specified in window coordinates to the layer state. The all window pixels outside this crop rectangle are treated as though they were fully transparent. This change also adds the plumbing necessary for WindowManager to set that crop. Change-Id: I582bc445dc8c97d4c943d4db8d582a6ef5a66081
* libui: add the Rect::transform methodJamie Gennis2012-05-071-1/+9
| | | | | | | | This change adds a method to Rect to transform a rectangle by a graphics HAL transform. Change-Id: Ic0d0988e731bdb5662faee41a5927b1242891658 Bug: 6299171
* fix the float Rect in OpenGLRenderer to handle NANsMathias Agopian2011-09-191-1/+1
| | | | | | | | | | | | | | | - we want functions like isEmpty() to return true if NANs are involved in the Rect - also clean-up the intersect familly of calls - minor cleanup in the int32_t Rect as well These played a role in http://b/5331198. Bug: 5331198 Change-Id: I5369725ab482e4b83da9f1bd4cee5256e5de75b2
* Add ANativeWindow API for directly drawing to the surface bits.Dianne Hackborn2010-07-091-18/+15
| | | | | | | | | | | Also other cleanup and fixes: - We now properly set the default window format to 565. - New APIs to set the window format and flags from native code. - Tweaked glue for simpler handling of the "destroy" message. - Um, other stuff. Change-Id: Id7790a21a2fa9a19b91854d225324a7c1e7c6ade
* oops forgot these changes in the previous merge. fixes buildMathias Agopian2009-05-271-1/+7
|
* minor clean-up to Rect and Point.Mathias Agopian2009-05-261-23/+17
| | | | | | - return "const" objects for overloaded operators to disallow constructs like: (a+b) = c; - don't return references to non-static members, it's not always safe. - Point.cpp was empty, so get rid of it
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+152
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-152/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+152