diff options
author | Robert Carr <racarr@google.com> | 2020-04-02 15:24:51 -0700 |
---|---|---|
committer | Robert Carr <racarr@google.com> | 2020-04-02 15:29:34 -0700 |
commit | 1dd148d9ac105af3dce7ee6776c8ba738ad2afad (patch) | |
tree | fb0d4f5a2f610ca013844120a1aa048e5e9fc0c5 /tools/stats_log_api_gen/java_writer.cpp | |
parent | cb250de686d3a4b318c11ea7970d91fc5ff3c041 (diff) |
BLASTBufferQueue: Fix unnecessary copying of Surface
When we call mSurface.transferFrom(getOrCreateBLASTSurface()) we
always end up incrementing mSurface.generationId, because
BLASTBufferQueue.java::getSurface will always return a new native
wrapper object. We had a similar situation with
mSurface.copyFrom(mSurfaceControl), and had to build IGBP
comparison in to the native method. Here though, it's easier
to just rely on the stability of the Surface (never changes
for the lifetime of the BLASTBufferQueueAdapter) to avoid
duplicate calls to transferFrom.
Bug: 152501005
Test: Existing tests pass.
Change-Id: I64b9a6ae3cabfa75974e040460638417bfac6845
Diffstat (limited to 'tools/stats_log_api_gen/java_writer.cpp')
0 files changed, 0 insertions, 0 deletions