/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
H A D | command_parser.h | 46 Result Parse(); 62 Result ParseBooleanForTesting(const std::string& str, bool* result) { in ParseBooleanForTesting() 66 Result ParseBlendFactorNameForTesting(const std::string& name, in ParseBlendFactorNameForTesting() 70 Result ParseBlendOpNameForTesting(const std::string& name, BlendOp* op) { in ParseBlendOpNameForTesting() 73 Result ParseCompareOpNameForTesting(const std::string& name, CompareOp* op) { in ParseCompareOpNameForTesting() 76 Result ParseStencilOpNameForTesting(const std::string& name, StencilOp* op) { in ParseStencilOpNameForTesting() 79 Result ParseComparatorForTesting(const std::string& name, in ParseComparatorForTesting() 89 Result TokenToFloat(Token* token, float* val) const; 90 Result TokenToDouble(Token* token, double* val) const; 91 Result ParseBoolea [all...] |
H A D | command_parser.cc | 67 Result CommandParser::ParseBoolean(const std::string& str, bool* result) { in ParseBoolean() 83 return Result("Invalid value passed as a boolean string: " + str); in ParseBoolean() 86 Result CommandParser::Parse() { in Parse() 93 return Result(make_error( in Parse() 99 Result r; in Parse() 103 return Result(make_error("Invalid draw command in test: " + in Parse() 112 r = Result("Unknown draw command: " + cmd_name); in Parse() 129 return Result(make_error("relative must be used with probe: " + in Parse() 142 return Result( in Parse() 152 return Result(make_erro in Parse() [all...] |
/third_party/vk-gl-cts/external/amber/src/src/amberscript/ |
H A D | parser.h | 42 Result Parse(const std::string& data) override; 46 Result ToShaderType(const std::string& str, ShaderType* type); 47 Result ToBufferType(const std::string& str, BufferType* type); 48 Result ToShaderFormat(const std::string& str, ShaderFormat* fmt); 49 Result ToPipelineType(const std::string& str, PipelineType* type); 50 Result ValidateEndOfStatement(const std::string& name); 52 Result ParseStruct(); 53 Result ParseBuffer(); 54 Result ParseImage(); 55 Result ParseBufferInitialize [all...] |
H A D | parser.cc | 198 Result ParseBufferData(Buffer* buffer, in ParseBufferData() 214 return Result("missing BUFFER END command"); in ParseBufferData() 220 return Result("invalid BUFFER data value: " + token->ToOriginalString()); in ParseBufferData() 238 return Result("invalid BUFFER data value: " + in ParseBufferData() 260 Result r = buffer->SetData(std::move(values)); in ParseBufferData() 285 Result Parser::Parse(const std::string& data) { in Parse() 293 return Result(make_error("expected identifier")); in Parse() 295 Result r; in Parse() 326 r = Result("unknown token: " + tok); in Parse() 329 return Result(make_erro in Parse() [all...] |
/third_party/skia/third_party/externals/dawn/src/common/ |
H A D | Result.h | 27 // Result<T, E> is the following sum type (Haskell notation): 29 // data Result T E = Success T | Error E | Empty 32 // case is that a Result should never be discarded, only destructured (its error or success moved 33 // out) or moved into a different Result. The Empty case tags Results that have been moved out and 34 // Result's destructor should ASSERT on it being Empty. 40 class Result; 42 // The interface of Result<T, E> should look like the following. 44 // Result(T&& success); 45 // Result(std::unique_ptr<E> error); 47 // Result(Resul 61 class DAWN_NO_DISCARD Result<void, E> { global() class 112 class DAWN_NO_DISCARD Result<T*, E> { global() class 144 class DAWN_NO_DISCARD Result<const T*, E> { global() class 173 class DAWN_NO_DISCARD Result<Ref<T>, E> { global() class 208 class DAWN_NO_DISCARD Result { global() class 238 Result<void, E>::Result() { Result() function in Result 242 Result<void, E>::Result(std::unique_ptr<E> error) : mError(std::move(error)) { Result() function in Result 246 Result<void, E>::Result(Result<void, E>&& other) : mError(std::move(other.mError)) { Result() function in Result 299 Result<T*, E>::Result(T* success) : mPayload(detail::MakePayload(success, detail::Success)) { Result() function in Result 303 Result<T*, E>::Result(std::unique_ptr<E> error) Result() function in Result 309 Result<T*, E>::Result(Result<TChild*, E>&& other) : mPayload(other.mPayload) { Result() function in Result 355 Result<const T*, E>::Result(const T* success) Result() function in Result 360 Result<const T*, E>::Result(std::unique_ptr<E> error) Result() function in Result 365 Result<const T*, E>::Result(Result<const T*, E>&& other) : mPayload(other.mPayload) { Result() function in Result 409 Result<Ref<T>, E>::Result(Ref<U>&& success) Result() function in Result 415 Result<Ref<T>, E>::Result(std::unique_ptr<E> error) Result() function in Result 421 Result<Ref<T>, E>::Result(Result<Ref<U>, E>&& other) : mPayload(other.mPayload) { Result() function in Result 469 Result<T, E>::Result(T&& success) : mType(Success), mSuccess(std::move(success)) { Result() function in Result 473 Result<T, E>::Result(std::unique_ptr<E> error) : mType(Error), mError(std::move(error)) { Result() function in Result 482 Result<T, E>::Result(Result<T, E>&& other) Result() function in Result [all...] |
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | result_test.cc | 24 Result r; in TEST_F() 29 Result r("Test Failed"); in TEST_F() 35 Result r(""); in TEST_F() 41 Result r("Testing"); in TEST_F() 42 Result r2(r); in TEST_F() 49 Result r; in TEST_F() 55 Result r; in TEST_F() 67 Result r; in TEST_F() 68 r += Result("Test Failed"); in TEST_F() 73 Result in TEST_F() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonMCDuplexInfo.cpp | 703 MCInst Result; in deriveSubInst() local 715 Result.setOpcode(Hexagon::SA1_inc); in deriveSubInst() 716 addOps(Result, Inst, 0); in deriveSubInst() 717 addOps(Result, Inst, 1); in deriveSubInst() 721 Result.setOpcode(Hexagon::SA1_dec); in deriveSubInst() 722 addOps(Result, Inst, 0); in deriveSubInst() 723 addOps(Result, Inst, 1); in deriveSubInst() 724 addOps(Result, Inst, 2); in deriveSubInst() 728 Result.setOpcode(Hexagon::SA1_addsp); in deriveSubInst() 729 addOps(Result, Ins in deriveSubInst() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/null/ |
H A D | ContextNULL.cpp | 116 angle::Result ContextNULL::initialize() in initialize() 118 return angle::Result::Continue; in initialize() 121 angle::Result ContextNULL::flush(const gl::Context *context) in flush() 123 return angle::Result::Continue; in flush() 126 angle::Result ContextNULL::finish(const gl::Context *context) in finish() 128 return angle::Result::Continue; in finish() 131 angle::Result ContextNULL::drawArrays(const gl::Context *context, in drawArrays() 136 return angle::Result::Continue; in drawArrays() 139 angle::Result ContextNULL::drawArraysInstanced(const gl::Context *context, in drawArraysInstanced() 145 return angle::Result in drawArraysInstanced() [all...] |
H A D | TextureNULL.cpp | 21 angle::Result TextureNULL::setImage(const gl::Context *context, in setImage() 33 return angle::Result::Continue; in setImage() 36 angle::Result TextureNULL::setSubImage(const gl::Context *context, in setSubImage() 45 return angle::Result::Continue; in setSubImage() 48 angle::Result TextureNULL::setCompressedImage(const gl::Context *context, in setCompressedImage() 56 return angle::Result::Continue; in setCompressedImage() 59 angle::Result TextureNULL::setCompressedSubImage(const gl::Context *context, in setCompressedSubImage() 67 return angle::Result::Continue; in setCompressedSubImage() 70 angle::Result TextureNULL::copyImage(const gl::Context *context, in copyImage() 76 return angle::Result in copyImage() [all...] |
H A D | QueryNULL.cpp | 21 angle::Result QueryNULL::begin(const gl::Context *context) in begin() 23 return angle::Result::Continue; in begin() 26 angle::Result QueryNULL::end(const gl::Context *context) in end() 28 return angle::Result::Continue; in end() 31 angle::Result QueryNULL::queryCounter(const gl::Context *context) in queryCounter() 33 return angle::Result::Continue; in queryCounter() 36 angle::Result QueryNULL::getResult(const gl::Context *context, GLint *params) in getResult() 39 return angle::Result::Continue; in getResult() 42 angle::Result QueryNULL::getResult(const gl::Context *context, GLuint *params) in getResult() 45 return angle::Result in getResult() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | ContextVk.h | 78 angle::Result initialize() override; 83 angle::Result flush(const gl::Context *context) override; 84 angle::Result finish(const gl::Context *context) override; 87 angle::Result drawArrays(const gl::Context *context, 91 angle::Result drawArraysInstanced(const gl::Context *context, 96 angle::Result drawArraysInstancedBaseInstance(const gl::Context *context, 103 angle::Result drawElements(const gl::Context *context, 108 angle::Result drawElementsBaseVertex(const gl::Context *context, 114 angle::Result drawElementsInstanced(const gl::Context *context, 120 angle::Result drawElementsInstancedBaseVerte [all...] |
/third_party/skia/third_party/externals/oboe/src/opensles/ |
H A D | AudioOutputStreamOpenSLES.cpp | 112 Result AudioOutputStreamOpenSLES::open() { in open() 120 return Result::ErrorInvalidFormat; in open() 131 Result oboeResult = AudioStreamOpenSLES::open(); in open() 132 if (Result::OK != oboeResult) return oboeResult; in open() 137 return Result::ErrorInternal; in open() 227 if (Result::OK != oboeResult) { in open() 234 return Result::OK; in open() 237 return Result::ErrorInternal; // TODO convert error from SLES to OBOE in open() 240 Result AudioOutputStreamOpenSLES::onAfterDestroy() { in onAfterDestroy() 242 return Result in onAfterDestroy() [all...] |
/third_party/rust/crates/serde/serde/src/ser/ |
H A D | mod.rs | 55 //! - Result\<T, E\> 164 /// fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 235 /// fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 249 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> in serialize() 397 /// fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 405 fn serialize_bool(self, v: bool) -> Result<Self::Ok, Self::Error>; in serialize_bool() 419 /// fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 427 fn serialize_i8(self, v: i8) -> Result<Self::Ok, Self::Error>; in serialize_i8() 441 /// fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> 449 fn serialize_i16(self, v: i16) -> Result<Sel [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
H A D | TextureD3D.h | 40 angle::Result getNativeTexture(const gl::Context *context, TextureStorage **outStorage); 48 angle::Result getImageAndSyncFromStorage(const gl::Context *context, 56 angle::Result setStorage(const gl::Context *context, 62 angle::Result setStorageMultisample(const gl::Context *context, 69 angle::Result setStorageExternalMemory(const gl::Context *context, 82 virtual angle::Result getRenderTarget(const gl::Context *context, 95 angle::Result setImageExternal(const gl::Context *context, 99 angle::Result generateMipmap(const gl::Context *context) override; 104 angle::Result getAttachmentRenderTarget(const gl::Context *context, 110 angle::Result setBaseLeve [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
H A D | ResultTests.cpp | 18 #include "common/Result.h" 23 void TestError(Result<T, E>* result, E expectedError) { in TestError() 32 void TestSuccess(Result<T, E>* result, T expectedSuccess) { in TestSuccess() 59 void TestSuccess(Result<Ref<T>, E>* result, T* expectedSuccess) { in TestSuccess() 82 // Result<void, E*> 84 // Test constructing an error Result<void, E> 86 Result<void, int> result(std::make_unique<int>(dummyError)); in TEST() 90 // Test moving an error Result<void, E> 92 Result<void, int> result(std::make_unique<int>(dummyError)); in TEST() 93 Result<voi in TEST() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | TextureStorage11.h | 80 angle::Result getSRVLevels(const gl::Context *context, 84 angle::Result generateSwizzles(const gl::Context *context, 89 angle::Result updateSubresourceLevel(const gl::Context *context, 95 angle::Result copySubresourceLevel(const gl::Context *context, 107 angle::Result generateMipmap(const gl::Context *context, 110 angle::Result copyToStorage(const gl::Context *context, TextureStorage *destStorage) override; 111 angle::Result setData(const gl::Context *context, 120 virtual angle::Result getSRVForSampler(const gl::Context *context, 124 angle::Result getSRVForImage(const gl::Context *context, 127 angle::Result getUAVForImag [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
H A D | Context9.cpp | 38 angle::Result Context9::initialize() in initialize() 40 return angle::Result::Continue; in initialize() 153 angle::Result Context9::flush(const gl::Context *context) in flush() 158 angle::Result Context9::finish(const gl::Context *context) in finish() 163 angle::Result Context9::drawArrays(const gl::Context *context, in drawArrays() 171 angle::Result Context9::drawArraysInstanced(const gl::Context *context, in drawArraysInstanced() 180 angle::Result Context9::drawArraysInstancedBaseInstance(const gl::Context *context, in drawArraysInstancedBaseInstance() 188 return angle::Result::Continue; in drawArraysInstancedBaseInstance() 191 angle::Result Context9::drawElements(const gl::Context *context, in drawElements() 200 angle::Result Context [all...] |
/third_party/skia/third_party/externals/oboe/tests/ |
H A D | testStreamStates.cpp | 38 Result r = mBuilder.openStream(&mStream); in openStream() 39 EXPECT_EQ(r, Result::OK) << "Failed to open stream " << convertToText(r); in openStream() 41 return (r == Result::OK); in openStream() 54 Result r = mStream->close(); in closeStream() 56 if (r != Result::OK){ in closeStream() 74 EXPECT_EQ(r, Result::OK) << "requestStart returned: " << convertToText(r); in checkStreamStateIsStartedAfterStartingTwice() 76 EXPECT_EQ(r, Result::OK); in checkStreamStateIsStartedAfterStartingTwice() 82 // EXPECT_EQ(r, Result::OK) << "requestStart returned: " << convertToText(r); in checkStreamStateIsStartedAfterStartingTwice() 84 EXPECT_EQ(r, Result::OK); in checkStreamStateIsStartedAfterStartingTwice() 95 EXPECT_EQ(r, Result in checkStreamStateIsStoppedAfterStoppingTwice() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
H A D | CodeViewYAMLDebugSections.cpp | 405 auto Result = std::make_shared<DebugChecksumsSubsection>(*SC.strings()); in toCodeViewSubsection() local 407 Result->addChecksum(CS.FileName, CS.Kind, CS.ChecksumBytes.Bytes); in toCodeViewSubsection() 409 return Result; in toCodeViewSubsection() 416 auto Result = in toCodeViewSubsection() local 418 Result->setCodeSize(Lines.CodeSize); in toCodeViewSubsection() 419 Result->setRelocationAddress(Lines.RelocSegment, Lines.RelocOffset); in toCodeViewSubsection() 420 Result->setFlags(Lines.Flags); in toCodeViewSubsection() 422 Result->createBlock(LC.FileName); in toCodeViewSubsection() 423 if (Result->hasColumnInfo()) { in toCodeViewSubsection() 428 Result in toCodeViewSubsection() 447 auto Result = std::make_shared<DebugInlineeLinesSubsection>( toCodeViewSubsection() local 467 auto Result = std::make_shared<DebugCrossModuleExportsSubsection>(); toCodeViewSubsection() local 479 auto Result = toCodeViewSubsection() local 491 auto Result = std::make_shared<DebugSymbolsSubsection>(); toCodeViewSubsection() local 502 auto Result = std::make_shared<DebugStringTableSubsection>(); toCodeViewSubsection() local 513 auto Result = std::make_shared<DebugFrameDataSubsection>(true); toCodeViewSubsection() local 534 auto Result = std::make_shared<DebugSymbolRVASubsection>(); toCodeViewSubsection() local 568 auto Result = std::make_shared<YAMLChecksumsSubsection>(); fromCodeViewSubsection() local 584 auto Result = std::make_shared<YAMLLinesSubsection>(); fromCodeViewSubsection() local 622 auto Result = std::make_shared<YAMLInlineeLinesSubsection>(); fromCodeViewSubsection() local 649 auto Result = std::make_shared<YAMLCrossModuleExportsSubsection>(); fromCodeViewSubsection() local 658 auto Result = std::make_shared<YAMLCrossModuleImportsSubsection>(); fromCodeViewSubsection() local 674 auto Result = std::make_shared<YAMLSymbolsSubsection>(); fromCodeViewSubsection() local 692 auto Result = std::make_shared<YAMLStringTableSubsection>(); fromCodeViewSubsection() local 711 auto Result = std::make_shared<YAMLFrameDataSubsection>(); fromCodeViewSubsection() local 739 auto Result = std::make_shared<YAMLCoffSymbolRVASubsection>(); fromCodeViewSubsection() local 750 std::vector<std::shared_ptr<DebugSubsection>> Result; toCodeViewSubsectionList() local 800 auto Result = YAMLLinesSubsection::fromCodeViewSubsection( visitLines() local 811 auto Result = YAMLChecksumsSubsection::fromCodeViewSubsection(State.strings(), visitFileChecksums() local 822 auto Result = YAMLInlineeLinesSubsection::fromCodeViewSubsection( visitInlineeLines() local 833 auto Result = visitCrossModuleExports() local 844 auto Result = YAMLCrossModuleImportsSubsection::fromCodeViewSubsection( visitCrossModuleImports() local 855 auto Result = YAMLStringTableSubsection::fromCodeViewSubsection(Strings); visitStringTable() local 864 auto Result = YAMLSymbolsSubsection::fromCodeViewSubsection(Symbols); visitSymbols() local 873 auto Result = visitFrameData() local 883 auto Result = YAMLCoffSymbolRVASubsection::fromCodeViewSubsection(RVAs); visitCOFFSymbolRVAs() local 913 std::vector<YAMLDebugSubsection> Result; fromDebugS() local 939 auto Result = SS.Subsection->toCodeViewSubsection(Allocator, SC); initializeStringsAndChecksums() local 951 auto Result = SS.Subsection->toCodeViewSubsection(Allocator, SC); initializeStringsAndChecksums() local [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
H A D | QueryGL.h | 34 virtual angle::Result pause(const gl::Context *context) = 0; 35 virtual angle::Result resume(const gl::Context *context) = 0; 44 angle::Result begin(const gl::Context *context) override; 45 angle::Result end(const gl::Context *context) override; 46 angle::Result queryCounter(const gl::Context *context) override; 47 angle::Result getResult(const gl::Context *context, GLint *params) override; 48 angle::Result getResult(const gl::Context *context, GLuint *params) override; 49 angle::Result getResult(const gl::Context *context, GLint64 *params) override; 50 angle::Result getResult(const gl::Context *context, GLuint64 *params) override; 51 angle::Result isResultAvailabl [all...] |
H A D | QueryGL.cpp | 87 angle::Result StandardQueryGL::begin(const gl::Context *context) in begin() 93 angle::Result StandardQueryGL::end(const gl::Context *context) in end() 98 angle::Result StandardQueryGL::queryCounter(const gl::Context *context) in queryCounter() 109 return angle::Result::Continue; in queryCounter() 113 angle::Result StandardQueryGL::getResultBase(const gl::Context *context, T *params) in getResultBase() 121 return angle::Result::Continue; in getResultBase() 124 angle::Result StandardQueryGL::getResult(const gl::Context *context, GLint *params) in getResult() 129 angle::Result StandardQueryGL::getResult(const gl::Context *context, GLuint *params) in getResult() 134 angle::Result StandardQueryGL::getResult(const gl::Context *context, GLint64 *params) in getResult() 139 angle::Result StandardQueryG [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/ |
H A D | ContextImpl.h | 38 virtual angle::Result initialize() = 0; 41 virtual angle::Result flush(const gl::Context *context) = 0; 42 virtual angle::Result finish(const gl::Context *context) = 0; 45 virtual angle::Result drawArrays(const gl::Context *context, 49 virtual angle::Result drawArraysInstanced(const gl::Context *context, 55 virtual angle::Result drawArraysInstancedBaseInstance(const gl::Context *context, 62 virtual angle::Result drawElements(const gl::Context *context, 67 virtual angle::Result drawElementsBaseVertex(const gl::Context *context, 73 virtual angle::Result drawElementsInstanced(const gl::Context *context, 79 virtual angle::Result drawElementsInstancedBaseVerte [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/ |
H A D | ContextMtl.h | 41 angle::Result initialize() override; 46 angle::Result flush(const gl::Context *context) override; 47 angle::Result finish(const gl::Context *context) override; 50 angle::Result drawArrays(const gl::Context *context, 54 angle::Result drawArraysInstanced(const gl::Context *context, 59 angle::Result drawArraysInstancedBaseInstance(const gl::Context *context, 66 angle::Result drawElements(const gl::Context *context, 71 angle::Result drawElementsBaseVertex(const gl::Context *context, 77 angle::Result drawElementsInstanced(const gl::Context *context, 83 angle::Result drawElementsInstancedBaseVerte [all...] |
/third_party/vk-gl-cts/external/amber/src/include/amber/ |
H A D | result.h | 24 class Result { class 27 Result() = default; 30 explicit Result(const std::string& err); 31 inline Result(const Result&) = default; 32 inline Result(Result&&) = default; 34 inline Result& operator=(const Result&) = default; 35 inline Result [all...] |
/third_party/skia/dm/ |
H A D | DMSrcSink.h | 42 class Result { class 45 Result(Status status, const SkString& s) : fMsg(s), fStatus(status) {} in Result() function in DM::Result 46 Result(Status status, const char* s) : fMsg(s), fStatus(status) {} in Result() function in DM::Result 47 template <typename... Args> Result (Status status, const char* s, Args... args) in Result() function in DM::Result 50 Result(const Result&) = default; 51 Result& operator=(const Result&) = default; 53 static Result Ok() { return Result(Statu [all...] |