83b1e685d252e589fa4a2e7e54c1f416aca63043 |
|
13-Mar-2016 |
Brian Carlstrom <bdc@google.com> |
frameworks/native: Make Thread::run threadName argument required Bug: 27557176 Change-Id: I009046d04cc127ee280c7b2038c04fab540fc5e6
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
583b1b32191992d6ada58b3c61c71932a71c0c4b |
|
04-Sep-2015 |
Pablo Ceballos <pceballos@google.com> |
BQ: Prevent operations on disconnected BQs - Update unit tests to match Bug 23763412 Change-Id: I77e59bf6b57b328433c3835450455f80a8fa454b
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
53390e1e8c33ebee5bb8100e846f5263ba05ff73 |
|
04-Aug-2015 |
Pablo Ceballos <pceballos@google.com> |
libgui/SF: Fix some code warnings A couple of fixes to satisfy the Eclipse static code analysis tool. - Initialize all members in constructors - Remove unused forward declarations - Add parentheses when combining logical and bitwise operators - Fix a case statement with no break (it was intentional) Change-Id: Icecb8cc98c6f58b97ab33fffb621f0edc33a7d3c
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
04b00cea67b406c4a971b24b9f91e95c754813ed |
|
30-May-2015 |
Michael Lentine <mlentine@google.com> |
Fix libgui crop matrix test. On devices that have the crop image extension the crop is not applied to the transform matrix so we have to expect different results in this case. Change-Id: If62dec1111fb77c9fa2c4332d121665960ce0216
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
f8cebe54576c8100769e2515d4f67bdd013a6927 |
|
20-Apr-2015 |
Dan Stoza <stoza@google.com> |
libgui: Fix some bitrot/warnings in tests These tests hadn't been run in a while and had accumulated some rot. This fixes most of the compile warnings and some tests which fail incorrectly, but 2 failures remain on N6. Change-Id: I7fee78cd058a32f4d7df40ec9f899ff767f68517
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
e49ba8e2ed8e17156eb00c8fc8e2285df62bc018 |
|
24-Jun-2014 |
Dan Stoza <stoza@google.com> |
GLConsumer: Stop using default constructor params Removes the dependency on default constructor parameters for GLConsumer so that a different constructor prototype can safely be added. Change-Id: I0da924bbd4c141edbf305598c1be8bc575654680
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
5603a2fbbd1aae74c4635e2f600819fb05d112e0 |
|
07-Apr-2014 |
Dan Stoza <stoza@google.com> |
Remove deprecated BufferQueue constructor Bug: 13415624 Change-Id: I153b5470b21832cebe3c617d28a4ab9c9bf3b362
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
c6bae007e6e29b585fc1207f84b378a480006173 |
|
15-Aug-2013 |
Mathias Agopian <mathias@google.com> |
Fix build. optional tests were broken. Change-Id: Iba9f5cb57f134559e1f9c55e293578d9f5d8cb96
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
db89edc94bd2a78226b407f9f7261e202e7fa325 |
|
02-Aug-2013 |
Mathias Agopian <mathias@google.com> |
All consumers now take an IGraphicBufferConsumer instead of a BufferQueue this means they only have access to the consumer end of the interface. we had a lot of code that assumed consumers where holding a BufferQueue (i.e.: both ends), so most of this change is untangling in fix that Bug: 9265647 Change-Id: Ic2e2596ee14c7535f51bf26d9a897a0fc036d22c
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
bf5b849ec7b2050e1fe05aebb3914823da6a0d07 |
|
27-Jul-2013 |
Mathias Agopian <mathias@google.com> |
fix build Change-Id: I04df8ec96510b16e84054089f7c02609d8fe2b0c
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
7cdd786fa80cf03551291ae8feca7b77583be1c5 |
|
19-Jul-2013 |
Mathias Agopian <mathias@google.com> |
Make ANW.setSwapInterval(0) work again we can now queue/dequeue a buffer in asynchrnous mode by using the async parameter to these calls. async mode is only specified with those calls (it is not modal anymore). as a consequence it can only be specified when the buffer count is not overidden, as error is returned otherwise. Change-Id: Ic63f4f96f671cb9d65c4cecbcc192615e09a8b6b
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
595264f1af12e25dce57d7c5b1d52ed86ac0d0c9 |
|
17-Jul-2013 |
Mathias Agopian <mathias@google.com> |
BufferQueue improvements and APIs changes this is the first step of a series of improvements to BufferQueue. A few things happen in this change: - setSynchronousMode() goes away as well as the SynchronousModeAllowed flag - BufferQueue now defaults to (what used to be) synchronous mode - a new "controlled by app" flag is passed when creating consumers and producers those flags are used to put the BufferQueue in a mode where it will never block if both flags are set. This is achieved by: - returning an error from dequeueBuffer() if it would block - making sure a buffer is always available by replacing the previous buffer with the new one in queueBuffer() (note: this is similar to what asynchrnous mode used to be) Note: in this change EGL's swap-interval 0 is broken; this will be fixed in another change. Change-Id: I691f9507d6e2e158287e3039f2a79a4d4434211d
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
8f938a53385a3c6d1c6aa24b3f38437bb2cc47ae |
|
13-Jul-2013 |
Mathias Agopian <mathias@google.com> |
always pass the BufferQueue explicitely to consumers Change-Id: I883b0a7b19d8e722f9ab714ba6f49e658b02ca86
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
ad669b04f4633957eea55b8ad2d8253adcefe39b |
|
06-Apr-2013 |
Jamie Gennis <jgennis@google.com> |
libgui: fix an EGLImage leak This moves the call to ConsumerBase::abandon from the ConsumerBase dtor to ConsumerBase::onLastStrongRef. The abandon call relies on virtual methods to perform the clean-up, so calling it from the ConsumerBase dtor after the derived classes dtors ran was skipping some of the clean-up. The onLastStrongRef method should get called just before the most derived class's dtor gets called. Bug: 8349135 Change-Id: I836946826927cc1ed69c049049f525f92b17a269
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
993e14fe1085e78b5f5d8b759dd3c757b4327eb4 |
|
23-Feb-2013 |
Mathias Agopian <mathias@google.com> |
Added a test that checks the error behavior of ConsumerBase::abandon We check that calling eglSwapBuffers() on an abandonned BufferQueue return EGL_BAD_SURFACE -- this is to ensure consistancy between drivers. Change-Id: Ibb548e0cf767ceee69f2fc4a85811d15a6522277
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
cf0b8c85fb0106751256dba7821f86b5ad03126c |
|
20-Feb-2013 |
Mathias Agopian <mathias@google.com> |
get rid of Surface::getISurfaceTexture() this was there just for legacy reasons. Change-Id: I0a48d6e04d7efa65033f9f10c91bba557f16ae8b
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
e3c697fb929c856b59fa56a8e05a2a7eba187c3d |
|
15-Feb-2013 |
Mathias Agopian <mathias@google.com> |
Refactoring: Rename SurfaceTextureClient to Surface Change-Id: Ibed34175ae273608393aaa5f0a7df207dc40d709
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
2adaf04fab35cf47c824d74d901b54094e01ccd3 |
|
18-Dec-2012 |
Andy McFadden <fadden@android.com> |
Rename ISurfaceTexture and SurfaceTexture The C++ class names don't match what the classes do, so rename ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to GLConsumer. Bug 7736700 Change-Id: Ia03e468888025b5cae3c0ee1995434515dbea387
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
c911ea531830b9dd5d25cf6f0c03f2f93908c4d1 |
|
12-Dec-2012 |
Jamie Gennis <jgennis@google.com> |
stop using a deprecated SurfaceTextureClient ctor Change-Id: I8c8282a0debd551db290dd6849faf272a88c704c
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
4697528eac85d34b2b375ece1d4b40aebe3fa5dd |
|
31-Aug-2012 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: fix a few tests Change-Id: Ic74fe8791361f8fe91ad7149720fafd4cc154ac1
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
d8e812ce6fe9ae0388e98b08456e1d18b9498239 |
|
14-Jun-2012 |
Jamie Gennis <jgennis@google.com> |
Update ANativeWindow clients for sync This change updates the uses of ANativeWindow to use the new ANW functions that accept and return Sync HAL fence file descriptors. Change-Id: I3ca648b6ac33f7360e86754f924aa072f95242f6
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
b7a6b96301c00c630610df4cb55a45d666200817 |
|
14-May-2012 |
Jamie Gennis <jgennis@google.com> |
libgui: remove setPostTransformCrop This change removes the setPostTransformCrop function from SurfaceTextureClient. It also includes a small logging fix in BufferQueue. Bug: 6299171 Change-Id: Ifd0ed05b95dad6085e7a8267fda4d69b76ea3bad
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
d72f233ffa125856a44976a50a66ceb669f49ab2 |
|
07-May-2012 |
Jamie Gennis <jgennis@google.com> |
libgui: Add support for post-xform crops. This change adds support for specifying a crop rectangle to a SurfaceTextureClient that is in post-transformed coordinate space. Change-Id: I247901de343e71b32850f7ae3bac62dfa612ad3d Bug: 6299171
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
91a6826d6794c19cdedfa58c42f8820c5cf5fe2b |
|
16-Apr-2012 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: shrink all sides when cropping This change makes SurfaceTexture include an offset for all sides of the crop region when cropping. This keeps the image centered, to minimize the visual changes when switching between the texture transform matrix-based cropping and something that does proper cropping (e.g. HWComposer). Change-Id: I541d3046fd92e49221b488444df36d490924d1c5
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
fa5b40ebb8923133df12dc70591bfe35b3f1c9b3 |
|
15-Mar-2012 |
Jamie Gennis <jgennis@google.com> |
libgui: add BQ consumer buffer free notifications This change adds a new callback for BufferQueue consumers to be notified when the BufferQueue frees some or all of its buffers. This is needed to retain SurfaceTexture behavior where all buffers would be freed when the producer disconnects. This change also modifies the SurfaceTextureGLToGLTest.EglDestroySurfaceUnrefsBuffers test to catch when the buffers are not freed. The implementation is a little complicated because it needs to avoid circular sp<> references across what will be a binder interface (so wp<> can't be used directly). It also needs to avoid the possibility of locking the BufferQueue and consumer (e.g. SurfaceTexture) mutexes in the wrong order. This change also includes a few additional fixes and test cleanups. Change-Id: I27b77d0af15cb4b135f4b63573f634f5f0da2182
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
c10d9d90b2088a3304076e0dc4bf05cdbb5d45ab |
|
21-Jul-2011 |
Mathias Agopian <mathias@google.com> |
clean-up. get rid ofunused code and members in Surface[Control].cpp Change-Id: Ia7790ae28af2c2ac99eae01c2c5044ace4a490a4
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
c8251a06df70de70d45ac477af816dcee7580205 |
|
12-Jul-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: add a multi-SurfaceTexture test This change adds a test that does simple, unverified GL rendering to multiple SurfaceTextures. Change-Id: I51a41d68ae5a27e01ae93842242897b0d3558ca6
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
07ed1a94bcad9b78b20f74f890d4271099da3a97 |
|
15-Jun-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: enable a test that now passes. This change enables the QueryFormatAfterSettingWorks. Change-Id: Ic868011a36a6c86c8646880246cd5b6960a13364
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
8b69defa2fe2cf6a34b00e322a557d8a4dddea41 |
|
07-Apr-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTextureClient: minor test refactoring. Change-Id: Iabc6d27ca35d30d896c6aef65c4f1b5a1eed47b8
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
135abde4c24db77915407e3d9d2478c237638684 |
|
14-Jun-2011 |
Jamie Gennis <jgennis@google.com> |
Merge "SurfaceTexture: add a format querying test."
|
e122079be632b849a71181d83a6d38b701f642f5 |
|
05-May-2011 |
Mathias Agopian <mathias@google.com> |
Temporarily don't return the current buffer in synchronous mode activate synchronous mode by default.
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
a6f35dd36e974c67976c6b4411c31b61f30a3853 |
|
12-Jun-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: add a format querying test. This change adds a test to verify that querying the format of a SurfaceTextureClient immediately after setting it returns the correct result. The test is currently disabled because it does not pass. Change-Id: I5bddb39c5bf96d6104624094383d410ed913e9f3
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
52226048095c2eb27ede0c3389626df270a0abff |
|
08-Jun-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: add getTransformMatrix tests. This change adds a test verifying that with no transform set on the SurfaceTextureClient, the SurfaceTexture will return an identity transform matrix. It also verifies this same effect in the presence of an additional call to native_window_set_buffer_count just before the call to getTransformMatrix. Bug: 4490420 Change-Id: Ic5adfa29b5696cc2b451433834e3758ef20c5edd
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
8dda6b7bf8f6e30cee286a6c048f1cc2adfa3a94 |
|
25-May-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: disable a failing test. The SurfaceTextureSyncModeWaitRetire test was disabled. It is failing because of the synchronization hacks that were added to SurfaceTexture to work around bugs in vendor device drivers. Change-Id: I09a74538bfe14a04833acb6847471e00826cc7fc
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
c2c8dfd71b84598f01074416e57cc3469d5b8ed2 |
|
24-May-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: fix an error check in dequeueBuffer. This change fixes the MIN_UNDEQUEUED_BUFFERS error check in dequeueBuffer. The check should only be performed if a buffer has been queued since the last time the buffer count was changed by the client. The check must be applied conditionally because video decoders require all the bufferes to be dequeued and registered before beginning the decode. Change-Id: I08d96b380544e395c2fcf0f3983a199bfd695b09
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
8cd5ba4b7f01d3a54a8f8bc6d1793aa5fc8e09ef |
|
19-May-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: clean up some comments, tests, etc. This change fixes up some stale comments, member variable names, log messages and disables a failing test. Change-Id: Ic1d3344b18066cf710e4a42838b2417c6b1f2f6c
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
8072711307aa98ee5ee6f7369860ae38c3e19656 |
|
03-May-2011 |
Mathias Agopian <mathias@google.com> |
Implement {Surface|SurfaceTextureClient}::setSwapInterval() Change-Id: I8382e346ddaa2c4c8ff56ac3ffd7f0109572f188
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
7a5b22c4e33928f81c2e8a3d85050c35bd44b1e0 |
|
26-Apr-2011 |
Mathias Agopian <mathias@google.com> |
new tests for SurfaceTexture synchronous mode Change-Id: Icfdaa625238246f8d0224efe28fdf2c1c24203f8
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
eafabcdc1639fb96062d9e3c39b0ae27b0238ae1 |
|
20-Apr-2011 |
Mathias Agopian <mathias@google.com> |
unify SurfaceTexture and Surface Change-Id: I49da2f5d8408e4cd7e148cfb777bb4ff68cd8f37
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
697526bc9e44ce61c88614f98387ae8bbf0a187e |
|
01-May-2011 |
Iliyan Malchev <malchev@google.com> |
frameworks/base: android_native_buffer_t -> ANativeWindowBuffer Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417 Signed-off-by: Iliyan Malchev <malchev@google.com>
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
1b528fb9d818044973abf656c9d2d3c1192bcfdc |
|
26-Apr-2011 |
Jamie Gennis <jgennis@google.com> |
EGL: Allow creating a SurfaceTexture EGLSurface. This change removes the check that disallowed the creation of an EGLSurface that would send frames to a SurfaceTexture. Change-Id: I44c6d5df503cc676a88144d72d39b414692ce4c9
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
a5c75c01620179ce00812354778a29a80d76e71f |
|
01-Apr-2011 |
Mathias Agopian <mathias@google.com> |
SurfaceTexture can now force the client to request a buffer SurfaceTexture now has the concept of default size a new method, setDefaultBufferSize() to set it. When the default size is changed, dequeueBuffer() will return a value telling the client that it must ask for a new buffer. The above only applies if the client has not overriden the buffer size with setGeometry. Change-Id: I520dc40363054b7e37fdb67d6a2e7bce70326e81
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
5c0c93a8c49b4053744efb8953b915fa7f0923a5 |
|
14-Mar-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTexture: disallow unsupported uses. This change makes the ANativeWindow_lock NDK function error out if it is passed an ANativeWindow with a concrete type that is not Surface. It also makes eglCreateWindowSurface fail if it is passed a SurfaceTextureClient as its 'window' argument. Bug: 4087277 Change-Id: Ie68c50c52d88f72d8a387f6c094908044c83a88c
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
bae774eb20bebd409441b93386b51bccda75f546 |
|
14-Mar-2011 |
Jamie Gennis <jgennis@google.com> |
SurfaceTextureClient: Add ISurfaceTexture getter. This change adds a getter method to SurfaceTextureClient to get the ISurfaceTexture object with which the SurfaceTextureClient is communicating. Bug: 4086509 Change-Id: Ifec621e0fe5392a5be56b2348fdc54067cbebcdd
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
391bbe2246a7547dbf3460c231b3c5ba691d4eb1 |
|
14-Mar-2011 |
Jamie Gennis <jgennis@google.com> |
ANativeWindow: add query for the concrete type. This change adds a query to the ANativeWindow interface for getting the concrete type of the ANativeWindow. Bug: 4086509 Change-Id: I64aa86d72fbca3b52a98e1fc35608737781a3178
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|
134f0422866e8985188ed10dfbdcb8e6c34b87f7 |
|
08-Mar-2011 |
Jamie Gennis <jgennis@google.com> |
ANativeWindow: add queues-to-window-composer check. This change adds a new 'method' to the ANativeWindow interface to check whether buffers queued to the window will be sent directly to the system window compositor. Change-Id: I4d4b199e328c110b68b250029aea650f03c8724d Bug: 3495535
/frameworks/native/libs/gui/tests/SurfaceTextureClient_test.cpp
|