History log of /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/NopCanvas.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
74f36500a9b0c40431953724f228227f92a87db2 02-Feb-2017 Diego Perez <diegoperez@google.com> Fix NopCanvas initialization

Reverse the logic since the field wouldn't be initialized to true before
super is called.

Test: Layoutlib tests
Change-Id: Ic3affb608bdf3306ada25e2dd986a48f6caae202
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/NopCanvas.java
be4d4fa3dfb01af46229777e5da9bb94c00d9633 02-Feb-2017 Diego Perez <diegoperez@google.com> NopCanvas is only hw accelerated during construction

During construction, we want to make NopCanvas as light as possible so
we just say that we are hw accelerated.
This caused some crashes further down the line for some views that
thought that NopCanvas was hw accelerated. From now on, NopCanvas is
only hw accelerated during construction.

Test: Covered by the existing tests
Change-Id: If09a662312e5c90d011e7ab2cbb524ef7b420d12
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/NopCanvas.java
5ca21e4ceca42be633031809b8ee43fd8688389b 10-May-2016 Diego Perez <diegoperez@google.com> Fix VectorDrawable_Delegate and DrawerLayout

Modify the nDraw call that has been changed in the framework to return
an int with the number of pixels allocated.
Modify the animation initialization render call to use the actual
measured size (instead of 0,0) so the DrawerLayout is setup
correctly.

Change-Id: I198de05206382c6489056f7c3d9a1d328864321c
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/NopCanvas.java