skia2/include/private
Hans Wennborg 42b6cffaad Fix tautological compare in GrSurfaceProxy.cpp
-1 is not a valid value for the GrSurfaceOrigin enum, and certain
versions of Clang warn that the comparison is effectively a no-op:

  ../../third_party/skia/src/gpu/GrSurfaceProxy.cpp:547:38: warning: comparison
  of constant -1 with expression of type 'GrSurfaceOrigin' is always true
  [-Wtautological-constant-out-of-range-compare]
      SkASSERT(kGrUnknownSurfaceOrigin != fProxy->origin());
	       ~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~

Instead of trying to force -1 in there, drop the assert and initialize with
top-left as origin.

Bug: chromium:793189
Change-Id: I4cb6720d567f6c5650a19df33d3c77f2d738a516
Reviewed-on: https://skia-review.googlesource.com/82961
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2017-12-09 01:31:48 +00:00
..
GrAuditTrail.h Remove trailing whitespace. 2017-10-09 21:20:34 +00:00
GrGLSL.h Switch atlas clients over to using absolute texture coordinates (take 2) 2017-08-25 15:19:27 +00:00
GrRenderTargetProxy.h Add "lazy" texture proxies 2017-11-30 15:37:12 +00:00
GrSharedEnums.h sksl enum support 2017-11-13 14:36:40 +00:00
GrSingleOwner.h
GrSurfaceProxy.h Add analytic clip FPs that read from the CCPR atlas 2017-12-05 18:06:18 +00:00
GrSwizzle.h Replace SkFAIL with SK_ABORT. 2017-08-16 15:37:54 +00:00
GrTextureProxy.h Add "lazy" texture proxies 2017-11-30 15:37:12 +00:00
GrTypesPriv.h Fix tautological compare in GrSurfaceProxy.cpp 2017-12-09 01:31:48 +00:00
SkAtomics.h
SkBitmaskEnum.h
SkChecksum.h
SkDeferredDisplayList.h Add unit test for SkDeferredDisplayLists (take 2) 2017-12-04 18:37:29 +00:00
SkEncodedInfo.h Reland "Hide SkEncodedInfo" 2017-12-05 19:28:08 +00:00
SkFixed.h saturate when converting float to fixed 2017-11-27 15:51:26 +00:00
SkFloatBits.h clean up useage of SkFloatBits 2017-08-07 02:49:29 +00:00
SkFloatingPoint.h clone saturating cast code for doubles 2017-10-10 19:58:13 +00:00
SkLeanWindows.h
SkMalloc.h Remove uses of sk_throw. 2017-08-17 19:45:01 +00:00
SkMessageBus.h
SkMutex.h Teach TSAN directly about semaphore_t. 2017-09-21 17:09:40 +00:00
SkOnce.h
SkPathRef.h Don't deserialize pathref oval/rrect bits 2017-09-22 13:03:07 +00:00
SkSafe_math.h
SkSemaphore.h
SkShadowFlags.h Enable tonal color for shadows by default. 2017-11-20 19:55:38 +00:00
SkSpinlock.h
SkSurfaceCharacterization.h Add resource cache limits to SkSurfaceCharacterization 2017-12-04 18:54:09 +00:00
SkTArray.h Convert NULL and 0 to nullptr. 2017-08-28 17:48:57 +00:00
SkTDArray.h Convert NULL and 0 to nullptr. 2017-08-28 17:48:57 +00:00
SkTemplates.h Compute inverse gamma table at compile time. 2017-10-18 19:43:18 +00:00
SkTFitsIn.h Make SkTFitsIn and SkTo constexpr. 2017-10-17 22:48:51 +00:00
SkTHash.h Add mock config to tools and run through gms and benchs without crashing. 2017-07-07 20:47:38 +00:00
SkThreadID.h
SkTLogic.h Compute inverse gamma table at compile time. 2017-10-18 19:43:18 +00:00
SkTSearch.h Convert NULL and 0 to nullptr. 2017-08-28 17:48:57 +00:00
SkWeakRefCnt.h Mark overridden destructors with 'override' and remove 'virtual' 2017-03-22 16:06:18 +00:00