skia2/include
kkinnunen 3405800d7a Make SkGLContext lifetime more well-defined
Remove refcounting from SkGLContext.

SkGLContext is expected to behave like GrContextFactory would own
it, as implied by the GrContextFactory function.

If it is refcounted, this does not hold.

Also other use sites, such as in SkOSWindow_win (command buffer gl
object), confirm the behavior. The object is explicitly owned and
destroyed, not shared.

Also fixes potential crashes from using GL context of an abandoned
context.

Also fixes potential crashes in DM/nanobench, if the GrContext lives
longer than GLContext through internal refing of GrContext.

Moves the non-trivial implementations from GrContextFactory.h to
.cpp, just for consistency sake.

Changes pathops_unittest.gyp. The pathops_unittest uses
GrContextFactory, but did not link to its implementation. The reason
they worked was that the implementation used (constructors, destructors)
happened to be in the .h file.

This works towards being able to use command buffer and NVPR from
the SampleApp.

BUG=skia:2992
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1511773005

Committed: https://skia.googlesource.com/skia/+/830e012187f951d49d7e46e196ac8d1e653a25da

Review URL: https://codereview.chromium.org/1511773005
2016-01-06 23:49:31 -08:00
..
android Move SkBitmapRegionDecoder to include/android and src/android 2015-11-13 06:11:09 -08:00
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
c Documentation: C API comments 2015-09-01 10:45:09 -07:00
codec Make BitmapRegionDecoder succeed on invalid requests 2015-12-11 07:38:50 -08:00
config remove SkInstCnt 2015-06-26 11:45:03 -07:00
core Start using <type_traits> and <utility> (C++11). 2016-01-05 14:59:40 -08:00
device/xps CMake, include/: changes to make fiddle 2.0 better 2015-12-01 09:02:49 -08:00
effects move SkDither.h to private, remove unused shadeSpan16 2016-01-04 05:06:07 -08:00
gpu Make SkGLContext lifetime more well-defined 2016-01-06 23:49:31 -08:00
images remove SkInstCnt 2015-06-26 11:45:03 -07:00
pathops Revert of Revert of remove SK_SUPPORT_LEGACY_PATHOP_ENUMS (patchset #1 id:1 of https://codereview.chromium.org/1203983003/) 2015-06-26 10:23:07 -07:00
pipe Fixing leaky handling of SkImage in SkDeferredCanvas. 2015-06-02 11:47:45 -07:00
ports Update documentation for SkFontMgr methods. 2015-12-03 12:12:13 -08:00
private Add additional assert to GrSingleOwner 2016-01-06 09:25:14 -08:00
svg move SkTDict and SkTSearch into private 2016-01-03 18:36:05 -08:00
utils move SkTDict and SkTSearch into private 2016-01-03 18:36:05 -08:00
views move SkTDict and SkTSearch into private 2016-01-03 18:36:05 -08:00
xml Move SkTemplates.h to private. 2015-08-19 11:56:48 -07:00