diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-05-05 11:26:15 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-05 15:53:36 +0000 |
commit | fe199b7d512a7cfc56deaaa134260e1d47a1e7e0 (patch) | |
tree | 24fc11a386071faf994735e193c8f37095a589d4 /gn | |
parent | 9d687dfa3e341bc4bae7806b6e3262ae3d441889 (diff) |
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>
Diffstat (limited to 'gn')
-rw-r--r-- | gn/gpu.gni | 4 | ||||
-rw-r--r-- | gn/tests.gni | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gn/gpu.gni b/gn/gpu.gni index 2b3423244e..92dc7d6092 100644 --- a/gn/gpu.gni +++ b/gn/gpu.gni @@ -122,8 +122,8 @@ skia_gpu_sources = [ "$_src/gpu/GrPathUtils.cpp", "$_src/gpu/GrPathUtils.h", "$_src/gpu/GrPendingProgramElement.h", - "$_src/gpu/GrPreFlushResourceProvider.cpp", - "$_src/gpu/GrPreFlushResourceProvider.h", + "$_src/gpu/GrOnFlushResourceProvider.cpp", + "$_src/gpu/GrOnFlushResourceProvider.h", "$_src/gpu/GrPipeline.cpp", "$_src/gpu/GrPipeline.h", "$_src/gpu/GrPipelineBuilder.h", diff --git a/gn/tests.gni b/gn/tests.gni index be4389be4f..a0343f5b26 100644 --- a/gn/tests.gni +++ b/gn/tests.gni @@ -156,7 +156,7 @@ tests_sources = [ "$_tests/PDFMetadataAttributeTest.cpp", "$_tests/PDFOpaqueSrcModeToSrcOverTest.cpp", "$_tests/PDFPrimitivesTest.cpp", - "$_tests/PreFlushCallbackTest.cpp", + "$_tests/OnFlushCallbackTest.cpp", "$_tests/PictureBBHTest.cpp", "$_tests/PictureShaderTest.cpp", "$_tests/PictureTest.cpp", |