Add postFlush call to GrOnFlushCallbackObject
authorChris Dalton <csmartdalton@google.com>
Fri, 5 May 2017 15:26:15 +0000 (11:26 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 5 May 2017 15:53:36 +0000 (15:53 +0000)
commitfe199b7d512a7cfc56deaaa134260e1d47a1e7e0
tree24fc11a386071faf994735e193c8f37095a589d4
parent9d687dfa3e341bc4bae7806b6e3262ae3d441889
Add postFlush call to GrOnFlushCallbackObject

Adds a new postFlush method and renames the class to
GrOnFlushCallbackObject. Also removes the ref counting in favor of
making the callback object a purely virtual interface. ref/unref on the
callback interface would conflict with existing ref/unref methods on the
subclass. It is now the caller’s responsibility to ensure the lifetime
of the callback is tied to that of the context.

Bug: skia:
Change-Id: I2fc1f98c700032e296a36f3a9a09c0753ab47aea
Reviewed-on: https://skia-review.googlesource.com/15463
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
gn/gpu.gni
gn/tests.gni
src/gpu/GrContext.cpp
src/gpu/GrContextPriv.h
src/gpu/GrDrawingManager.cpp
src/gpu/GrDrawingManager.h
src/gpu/GrOnFlushResourceProvider.cpp [moved from src/gpu/GrPreFlushResourceProvider.cpp with 94% similarity]
src/gpu/GrOnFlushResourceProvider.h [moved from src/gpu/GrPreFlushResourceProvider.h with 65% similarity]
tests/OnFlushCallbackTest.cpp [moved from tests/PreFlushCallbackTest.cpp with 97% similarity]
tools/gpu/GrTest.cpp