Home
last modified time | relevance | path

Searched refs:Ref (Results 1 – 25 of 412) sorted by relevance

12345678910>>...17

/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DRefCountedTests.cpp105 TEST(Ref, EndOfScopeRemovesRef) { in TEST() argument
108 Ref<RCTest> test(new RCTest(&deleted)); in TEST()
115 TEST(Ref, Gets) { in TEST() argument
117 Ref<RCTest> test(original); in TEST()
125 TEST(Ref, DefaultsToNull) { in TEST() argument
126 Ref<RCTest> test; in TEST()
133 TEST(Ref, CopyConstructor) { in TEST() argument
137 Ref<RCTest> source(original); in TEST()
140 Ref<RCTest> destination(source); in TEST()
158 TEST(Ref, CopyAssignment) { in TEST() argument
[all …]
DResultTests.cpp59 void TestSuccess(Result<Ref<T>, E>* result, T* expectedSuccess) { in TestSuccess()
68 const Ref<T> storedSuccess = result->AcquireSuccess(); in TestSuccess()
252 Result<Ref<AClass>, int> result(std::make_unique<int>(dummyError)); in TEST()
258 Result<Ref<AClass>, int> result(std::make_unique<int>(dummyError)); in TEST()
259 Result<Ref<AClass>, int> movedResult(std::move(result)); in TEST()
265 auto CreateError = []() -> Result<Ref<AClass>, int> { in TEST()
269 Result<Ref<AClass>, int> result = CreateError(); in TEST()
277 Ref<AClass> refObj(&success); in TEST()
278 Result<Ref<AClass>, int> result(std::move(refObj)); in TEST()
286 Ref<AClass> refObj(&success); in TEST()
[all …]
DRefBaseTests.cpp112 using Ref = RefBase<RefTracker, RefTrackerTraits>; typedef
119 Ref ref(tracker1); in TEST()
131 Ref ref(tracker); in TEST()
140 Ref ref; in TEST()
150 Ref ref(tracker); in TEST()
162 Ref refA(tracker); in TEST()
166 Ref refB(refA); in TEST()
179 Ref refA(tracker1); in TEST()
180 Ref refB(tracker2); in TEST()
184 Ref ref; in TEST()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DReference.h15 class Ref
18 Ref(const Ref &) = default;
19 Ref(Ref &&) = default;
20 Ref(T &ref) : mPtr(&ref) {} in Ref() function
22 Ref &operator=(const Ref &) = default;
23 Ref &operator=(Ref &&) = default;
25 bool operator==(const Ref &other) const { return *mPtr == *other.mPtr; }
26 bool operator!=(const Ref &other) const { return *mPtr != *other.mPtr; }
27 bool operator<=(const Ref &other) const { return *mPtr <= *other.mPtr; }
28 bool operator>=(const Ref &other) const { return *mPtr >= *other.mPtr; }
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DDevice.h141 virtual ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
164 ResultOrError<Ref<BindGroupLayoutBase>> GetOrCreateBindGroupLayout(
173 ResultOrError<Ref<PipelineLayoutBase>> GetOrCreatePipelineLayout(
179 ResultOrError<Ref<SamplerBase>> GetOrCreateSampler(const SamplerDescriptor* descriptor);
182 ResultOrError<Ref<ShaderModuleBase>> GetOrCreateShaderModule(
188 Ref<AttachmentState> GetOrCreateAttachmentState(AttachmentStateBlueprint* blueprint);
189 Ref<AttachmentState> GetOrCreateAttachmentState(
191 Ref<AttachmentState> GetOrCreateAttachmentState(const RenderPipelineDescriptor* descriptor);
192 Ref<AttachmentState> GetOrCreateAttachmentState(const RenderPassDescriptor* descriptor);
196 ResultOrError<Ref<BindGroupBase>> CreateBindGroup(const BindGroupDescriptor* descriptor);
[all …]
DCommands.h74 Ref<QuerySetBase> querySet;
79 Ref<TextureViewBase> view;
80 Ref<TextureViewBase> resolveTarget;
87 Ref<TextureViewBase> view;
99 Ref<AttachmentState> attachmentState;
108 Ref<QuerySetBase> occlusionQuerySet;
112 Ref<BufferBase> buffer;
119 Ref<TextureBase> texture;
126 Ref<BufferBase> source;
128 Ref<BufferBase> destination;
[all …]
DDevice.cpp128 ResultOrError<Ref<PipelineLayoutBase>>
133 Ref<PipelineLayoutBase> layoutRef; in ValidateLayoutAndGetComputePipelineDescriptorWithDefaults()
151 ResultOrError<Ref<PipelineLayoutBase>>
156 Ref<PipelineLayoutBase> layoutRef; in ValidateLayoutAndGetRenderPipelineDescriptorWithDefaults()
679 ResultOrError<Ref<BindGroupLayoutBase>> DeviceBase::GetOrCreateBindGroupLayout( in GetOrCreateBindGroupLayout()
688 Ref<BindGroupLayoutBase> result; in GetOrCreateBindGroupLayout()
710 ResultOrError<Ref<BindGroupLayoutBase>> DeviceBase::CreateEmptyBindGroupLayout() { in CreateEmptyBindGroupLayout()
723 Ref<ComputePipelineBase> DeviceBase::GetCachedComputePipeline( in GetCachedComputePipeline()
725 Ref<ComputePipelineBase> cachedPipeline; in GetCachedComputePipeline()
734 Ref<RenderPipelineBase> DeviceBase::GetCachedRenderPipeline( in GetCachedRenderPipeline()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DRefCountedTests.cpp95 TEST(Ref, EndOfScopeRemovesRef) { in TEST() argument
98 Ref<RCTest> test(new RCTest(&deleted)); in TEST()
105 TEST(Ref, Gets) { in TEST() argument
107 Ref<RCTest> test(original); in TEST()
116 TEST(Ref, DefaultsToNull) { in TEST() argument
117 Ref<RCTest> test; in TEST()
125 TEST(Ref, BoolConversion) { in TEST() argument
126 Ref<RCTest> empty; in TEST()
127 Ref<RCTest> full(new RCTest); in TEST()
136 TEST(Ref, CopyConstructor) { in TEST() argument
[all …]
/third_party/rust/crates/rustix/src/io/
Dcontext.rs12 pub struct Ref<'a, T> { struct
17 impl<'a, T> Ref<'a, T> { impl
32 impl<'a, T> Deref for Ref<'a, T> { implementation
41 impl<'a, T: fmt::Debug> fmt::Debug for Ref<'a, T> { implementation
58 fn acquire<'call>(&self, data: Self::Data) -> Ref<'call, Self::Target>; in acquire()
62 fn encode(&self, target: Ref<'_, Self::Target>) -> u64; in encode()
70 unsafe fn decode<'call>(&self, raw: u64) -> Ref<'call, Self::Target>; in decode()
73 fn release(&self, target: Ref<'_, Self::Target>) -> Self::Data; in release()
86 fn acquire<'call>(&self, data: Self::Data) -> Ref<'call, Self::Target> { in acquire()
87 Ref::new(data) in acquire()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DTrackingMDRef.h101 TrackingMDRef Ref; variable
105 explicit TypedTrackingMDRef(T *MD) : Ref(static_cast<Metadata *>(MD)) {} in TypedTrackingMDRef()
107 TypedTrackingMDRef(TypedTrackingMDRef &&X) : Ref(std::move(X.Ref)) {} in TypedTrackingMDRef()
108 TypedTrackingMDRef(const TypedTrackingMDRef &X) : Ref(X.Ref) {} in TypedTrackingMDRef()
110 Ref = std::move(X.Ref);
114 Ref = X.Ref;
118 T *get() const { return (T *)Ref.get(); } in get()
123 bool operator==(const TypedTrackingMDRef &X) const { return Ref == X.Ref; }
124 bool operator!=(const TypedTrackingMDRef &X) const { return Ref != X.Ref; }
126 void reset() { Ref.reset(); } in reset()
[all …]
/third_party/typescript/tests/baselines/reference/
DerrorElaboration.errors.txt2 …2345: Argument of type '() => Container<Ref<string>>' is not assignable to parameter of type '() =…
3 Type 'Container<Ref<string>>' is not assignable to type 'Container<Ref<number>>'.
4 Type 'Ref<string>' is not assignable to type 'Ref<number>'.
9 …): error TS2339: Property 'bar' does not exist on type '(x: () => Container<Ref<number>>) => void'.
15 interface Ref<T> {
19 m1: Container<Ref<T>>;
22 declare function foo(x: () => Container<Ref<number>>): void;
25 let a: () => Container<Ref<string>>;
28 …2345: Argument of type '() => Container<Ref<string>>' is not assignable to parameter of type '() =…
29 !!! error TS2345: Type 'Container<Ref<string>>' is not assignable to type 'Container<Ref<number>>…
[all …]
DerrorElaboration.types4 interface Ref<T> {
9 m1: Container<Ref<T>>;
10 >m1 : Container<Ref<T>>
15 declare function foo(x: () => Container<Ref<number>>): void;
16 >foo : (x: () => Container<Ref<number>>) => void
17 >x : () => Container<Ref<number>>
19 let a: () => Container<Ref<string>>;
20 >a : () => Container<Ref<string>>
24 >foo : (x: () => Container<Ref<number>>) => void
25 >a : () => Container<Ref<string>>
[all …]
DerrorElaboration.symbols4 interface Ref<T> {
5 >Ref : Symbol(Ref, Decl(errorElaboration.ts, 0, 0))
9 >prop : Symbol(Ref.prop, Decl(errorElaboration.ts, 2, 18))
16 m1: Container<Ref<T>>;
19 >Ref : Symbol(Ref, Decl(errorElaboration.ts, 0, 0))
26 declare function foo(x: () => Container<Ref<number>>): void;
30 >Ref : Symbol(Ref, Decl(errorElaboration.ts, 0, 0))
32 let a: () => Container<Ref<string>>;
35 >Ref : Symbol(Ref, Decl(errorElaboration.ts, 0, 0))
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DTrackingMDRef.h107 TrackingMDRef Ref; variable
111 explicit TypedTrackingMDRef(T *MD) : Ref(static_cast<Metadata *>(MD)) {} in TypedTrackingMDRef()
113 TypedTrackingMDRef(TypedTrackingMDRef &&X) : Ref(std::move(X.Ref)) {} in TypedTrackingMDRef()
114 TypedTrackingMDRef(const TypedTrackingMDRef &X) : Ref(X.Ref) {} in TypedTrackingMDRef()
117 Ref = std::move(X.Ref);
122 Ref = X.Ref;
126 T *get() const { return (T *)Ref.get(); } in get()
131 bool operator==(const TypedTrackingMDRef &X) const { return Ref == X.Ref; }
132 bool operator!=(const TypedTrackingMDRef &X) const { return Ref != X.Ref; }
134 void reset() { Ref.reset(); } in reset()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/mocks/
DDeviceMock.h31 MOCK_METHOD(ResultOrError<Ref<CommandBufferBase>>,
55 MOCK_METHOD(ResultOrError<Ref<BindGroupBase>>,
59 MOCK_METHOD(ResultOrError<Ref<BindGroupLayoutBase>>,
63 MOCK_METHOD(ResultOrError<Ref<BufferBase>>,
67 MOCK_METHOD(Ref<ComputePipelineBase>,
71 MOCK_METHOD(ResultOrError<Ref<PipelineLayoutBase>>,
75 MOCK_METHOD(ResultOrError<Ref<QuerySetBase>>,
79 MOCK_METHOD(Ref<RenderPipelineBase>,
83 MOCK_METHOD(ResultOrError<Ref<SamplerBase>>,
87 MOCK_METHOD(ResultOrError<Ref<ShaderModuleBase>>,
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DDeviceMTL.h56 Ref<Texture> CreateTextureWrappingIOSurface(const ExternalImageDescriptor* descriptor,
82 ResultOrError<Ref<BindGroupBase>> CreateBindGroupImpl(
84 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayoutImpl(
87 ResultOrError<Ref<BufferBase>> CreateBufferImpl(
89 ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
92 ResultOrError<Ref<PipelineLayoutBase>> CreatePipelineLayoutImpl(
94 ResultOrError<Ref<QuerySetBase>> CreateQuerySetImpl(
96 ResultOrError<Ref<SamplerBase>> CreateSamplerImpl(
98 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModuleImpl(
101 ResultOrError<Ref<SwapChainBase>> CreateSwapChainImpl(
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/utils/
DWGPUHelpers.h29 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModule(DeviceBase* device, const char* source);
31 ResultOrError<Ref<BufferBase>> CreateBufferFromData(DeviceBase* device,
37 ResultOrError<Ref<BufferBase>> CreateBufferFromData(DeviceBase* device, in CreateBufferFromData()
43 ResultOrError<Ref<PipelineLayoutBase>> MakeBasicPipelineLayout(
45 const Ref<BindGroupLayoutBase>& bindGroupLayout);
80 ResultOrError<Ref<BindGroupLayoutBase>> MakeBindGroupLayout(
96 BindingInitializationHelper(uint32_t binding, const Ref<SamplerBase>& sampler);
97 BindingInitializationHelper(uint32_t binding, const Ref<TextureViewBase>& textureView);
99 const Ref<BufferBase>& buffer,
107 Ref<SamplerBase> sampler;
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DRefCounted.h39 class Ref {
41 Ref() { in Ref() function
44 Ref(T* p) : mPointee(p) { in Ref() function
48 Ref(const Ref<T>& other) : mPointee(other.mPointee) { in Ref() function
51 Ref<T>& operator=(const Ref<T>& other) {
62 Ref(Ref<T>&& other) { in Ref() function
66 Ref<T>& operator=(Ref<T>&& other) {
77 ~Ref() { in ~Ref()
DCommands.h65 Ref<TextureViewBase> view;
66 Ref<TextureViewBase> resolveTarget;
73 Ref<TextureViewBase> view;
95 Ref<BufferBase> buffer;
102 Ref<TextureBase> texture;
109 Ref<BufferBase> source;
111 Ref<BufferBase> destination;
141 Ref<BufferBase> indirectBuffer;
161 Ref<BufferBase> indirectBuffer;
166 Ref<BufferBase> indirectBuffer;
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DDeviceGL.h59 ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
87 ResultOrError<Ref<BindGroupBase>> CreateBindGroupImpl(
89 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayoutImpl(
92 ResultOrError<Ref<BufferBase>> CreateBufferImpl(
94 ResultOrError<Ref<PipelineLayoutBase>> CreatePipelineLayoutImpl(
96 ResultOrError<Ref<QuerySetBase>> CreateQuerySetImpl(
98 ResultOrError<Ref<SamplerBase>> CreateSamplerImpl(
100 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModuleImpl(
103 ResultOrError<Ref<SwapChainBase>> CreateSwapChainImpl(
105 ResultOrError<Ref<NewSwapChainBase>> CreateSwapChainImpl(
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DDeviceVk.h82 ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
111 ResultOrError<Ref<BindGroupBase>> CreateBindGroupImpl(
113 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayoutImpl(
116 ResultOrError<Ref<BufferBase>> CreateBufferImpl(
118 ResultOrError<Ref<PipelineLayoutBase>> CreatePipelineLayoutImpl(
120 ResultOrError<Ref<QuerySetBase>> CreateQuerySetImpl(
122 ResultOrError<Ref<SamplerBase>> CreateSamplerImpl(
124 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModuleImpl(
127 ResultOrError<Ref<SwapChainBase>> CreateSwapChainImpl(
129 ResultOrError<Ref<NewSwapChainBase>> CreateSwapChainImpl(
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DDeviceD3D12.h50 ResultOrError<Ref<CommandBufferBase>> CreateCommandBuffer(
131 Ref<TextureBase> CreateExternalTexture(const TextureDescriptor* descriptor,
133 Ref<D3D11on12ResourceCacheEntry> d3d11on12Resource,
154 ResultOrError<Ref<BindGroupBase>> CreateBindGroupImpl(
156 ResultOrError<Ref<BindGroupLayoutBase>> CreateBindGroupLayoutImpl(
159 ResultOrError<Ref<BufferBase>> CreateBufferImpl(
161 ResultOrError<Ref<PipelineLayoutBase>> CreatePipelineLayoutImpl(
163 ResultOrError<Ref<QuerySetBase>> CreateQuerySetImpl(
165 ResultOrError<Ref<SamplerBase>> CreateSamplerImpl(
167 ResultOrError<Ref<ShaderModuleBase>> CreateShaderModuleImpl(
[all …]
/third_party/rust/crates/rust-openssl/openssl/src/
Dstack.rs51 T::Ref: fmt::Debug,
104 type Ref = StackRef<T>; typedef
220 pub fn get(&self, idx: usize) -> Option<&T::Ref> { in get() argument
226 Some(T::Ref::from_ptr(self._get(idx))) in get()
232 pub fn get_mut(&mut self, idx: usize) -> Option<&mut T::Ref> { in get_mut() argument
238 Some(T::Ref::from_ptr_mut(self._get(idx))) in get_mut()
265 type Output = T::Ref;
267 fn index(&self, index: usize) -> &T::Ref { in index() argument
273 fn index_mut(&mut self, index: usize) -> &mut T::Ref { in index_mut() argument
279 type Item = &'a T::Ref;
[all …]
/third_party/rust/crates/regex/src/
Dexpand.rs37 Ref::Number(i) => { in expand_str()
40 Ref::Named(name) => { in expand_str()
79 Ref::Number(i) => { in expand_bytes()
82 Ref::Named(name) => { in expand_bytes()
99 cap: Ref<'a>,
107 enum Ref<'a> { enum
112 impl<'a> From<&'a str> for Ref<'a> { implementation
113 fn from(x: &'a str) -> Ref<'a> { in from()
114 Ref::Named(x) in from()
118 impl From<usize> for Ref<'static> { implementation
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/
DDestroyObjectTests.cpp50 Ref<TextureMock> GetTexture() { in GetTexture()
60 Ref<PipelineLayoutMock> GetPipelineLayout() { in GetPipelineLayout()
69 Ref<ShaderModuleMock> GetVertexShaderModule() { in GetVertexShaderModule()
83 Ref<ShaderModuleMock> GetComputeShaderModule() { in GetComputeShaderModule()
101 Ref<TextureMock> mTexture;
102 Ref<PipelineLayoutMock> mPipelineLayout;
103 Ref<ShaderModuleMock> mVsModule;
104 Ref<ShaderModuleMock> mCsModule;
123 Ref<BindGroupBase> bindGroup; in TEST_F()
148 Ref<BindGroupLayoutBase> bindGroupLayout; in TEST_F()
[all …]

12345678910>>...17