Lines Matching defs:can
4 * Use of this source code is governed by a BSD-style license that can be
107 bool can = context->colorTypeSupportedAsSurface(colorType);
109 REPORTER_ASSERT(reporter, can == SkToBool(surf), "ct: %d, can: %d, surf: %d",
110 colorType, can, SkToBool(surf));
117 REPORTER_ASSERT(reporter, can == SkToBool(surf), "ct: %d, can: %d, surf: %d",
118 colorType, can, SkToBool(surf));
125 bool can = context->maxSurfaceSampleCountForColorType(colorType) >= kSampleCnt;
128 REPORTER_ASSERT(reporter, can == SkToBool(surf), "ct: %d, can: %d, surf: %d",
129 colorType, can, SkToBool(surf));
133 REPORTER_ASSERT(reporter, can == SkToBool(surf),
134 "colorTypeSupportedAsSurface:%d, surf:%d, ct:%d", can, SkToBool(surf),
155 bool can = context->colorTypeSupportedAsSurface(colorType) &&
157 if (!surf && can && colorType == kBGRA_8888_SkColorType && sampleCnt > 1 &&
168 REPORTER_ASSERT(reporter, can == SkToBool(surf), "ct: %d, sc: %d, can: %d, surf: %d",
169 colorType, sampleCnt, can, SkToBool(surf));
378 // This flush can put command buffer refs on the GrGpuResource for the surface.
897 // Validate that we can draw to the canvas and that the original texture color is
1004 // Validate that we can attach a stencil buffer to an SkSurface created by either of
1152 // (so the snapshot can succeed)