/third_party/python/Lib/ |
H A D | code.py | 185 """Reset the input buffer.""" 186 self.buffer = [] 246 internal newlines. The line is appended to a buffer and the 248 concatenated contents of the buffer as source. If this 249 indicates that the command was executed or invalid, the buffer 250 is reset; otherwise, the command is incomplete, and the buffer 256 self.buffer.append(line) 257 source = "\n".join(self.buffer)
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/conditional_rendering/ |
H A D | vktConditionalRenderingTestUtil.cpp | 63 // Create host-visible buffer. This may be the final buffer or only a staging buffer. in createConditionalRenderingBuffer() 71 // Copy data to host buffer. in createConditionalRenderingBuffer() 77 // Return host buffer if appropriate. in createConditionalRenderingBuffer() 81 // Create and return device-local buffer otherwise, after copying host-visible buffer contents to it. in createConditionalRenderingBuffer() 101 void beginConditionalRendering (const vk::DeviceInterface& vk, vk::VkCommandBuffer cmdBuffer, Draw::Buffer& buffer, const ConditionalData& data) in beginConditionalRendering() argument 106 conditionalRenderingBeginInfo.buffer = buffer in beginConditionalRendering() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/conditional_rendering/ |
H A D | vktConditionalRenderingTestUtil.cpp | 63 // Create host-visible buffer. This may be the final buffer or only a staging buffer. in createConditionalRenderingBuffer() 71 // Copy data to host buffer. in createConditionalRenderingBuffer() 77 // Return host buffer if appropriate. in createConditionalRenderingBuffer() 81 // Create and return device-local buffer otherwise, after copying host-visible buffer contents to it. in createConditionalRenderingBuffer() 101 void beginConditionalRendering (const vk::DeviceInterface& vk, vk::VkCommandBuffer cmdBuffer, Draw::Buffer& buffer, const ConditionalData& data) in beginConditionalRendering() argument 106 conditionalRenderingBeginInfo.buffer = buffer in beginConditionalRendering() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/egl/ |
H A D | FunctionsEGL.h | 65 EGLBoolean bindTexImage(EGLSurface surface, EGLint buffer) const; 66 EGLBoolean releaseTexImage(EGLSurface surface, EGLint buffer) const; 74 EGLClientBuffer buffer,
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | TransformFeedback_unittest.cpp | 115 gl::Buffer *buffer = new gl::Buffer(&mockGLFactory, {1}); in TEST_F() local 124 mFeedback->bindIndexedBuffer(nullptr, bindIndex, buffer, 0, 1)); in TEST_F() 129 EXPECT_EQ(mFeedback->getIndexedBuffer(i).get(), buffer); in TEST_F() 137 // force-release the feedback object to ensure the buffer is released. in TEST_F()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_border_clamp/ |
H A D | esextcTextureBorderClampSamplingTexture.hpp | 310 void setInitData(std::vector<InputType>& buffer); 313 bool checkNearest(std::vector<OutputType>& buffer, OutputType expectedValue, OutputType expectedBorderColor, 315 bool checkLinear(std::vector<OutputType>& buffer, glw::GLint layer);
|
/third_party/skia/third_party/externals/angle2/src/tests/ |
H A D | angle_system_info_tests_main.cpp | 155 js::StringBuffer buffer; in main() local 156 js::PrettyWriter<js::StringBuffer> writer(buffer); in main() 159 const char *output = buffer.GetString(); in main()
|
/third_party/skia/third_party/externals/oboe/samples/iolib/src/main/cpp/player/ |
H A D | SimpleMultiPlayer.cpp | 34 constexpr int32_t kBufferSizeInBursts = 2; // Use 2 bursts as the buffer size (double buffer) 96 // Reduce stream latency by setting the buffer size to a multiple of the burst size in openStream() 143 void SimpleMultiPlayer::addSampleSource(SampleSource* source, SampleBuffer* buffer) { in addSampleSource() argument 144 buffer->resampleData(mSampleRate); in addSampleSource() 146 mSampleBuffers.push_back(buffer); in addSampleSource()
|
/third_party/skia/third_party/externals/oboe/tests/UnitTestRunner/app/src/main/java/com/google/oboe/tests/unittestrunner/ |
H A D | MainActivity.java | 75 byte[] buffer = new byte[1024]; in executeBinary() 77 while ((read = inStream.read(buffer)) != -1) { in executeBinary() 78 outStream.write(buffer, 0, read); in executeBinary()
|
/third_party/skia/src/xml/ |
H A D | SkXMLParser.cpp | 160 void* buffer = XML_GetBuffer(ctx.fXMLParser, kBufferSize); in parse() local 161 if (!buffer) { in parse() 162 SkDebugf("could not buffer enough to continue\n"); in parse() 166 size_t len = docStream.read(buffer, kBufferSize); in parse()
|
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/ |
H A D | GPUBuffer.cpp | 30 GPUBuffer::GPUBuffer(wgpu::Buffer buffer, in GPUBuffer() argument 34 : buffer_(std::move(buffer)), in GPUBuffer() 59 "mapAsync called on buffer that is not in the unmapped state"); in mapAsync() 144 "unmap() called on a destroyed buffer"); in unmap() 149 mapping.buffer.Value().Detach(); in unmap()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
H A D | BindGroupLayoutVk.cpp | 53 switch (bindingInfo.buffer.type) { in VulkanDescriptorType() 55 if (bindingInfo.buffer.hasDynamicOffset) { in VulkanDescriptorType() 62 if (bindingInfo.buffer.hasDynamicOffset) { in VulkanDescriptorType()
|
H A D | CommandBufferVk.cpp | 163 Buffer* buffer = ToBackend(scope.buffers[i]); in TransitionAndClearForSyncScope() local 164 buffer->EnsureDataInitialized(recordingContext); in TransitionAndClearForSyncScope() 167 if (buffer->TransitionUsageAndGetResourceBarrier( in TransitionAndClearForSyncScope() 454 // Create the temporary buffer. Note that We don't need to respect WebGPU's 256 alignment in RecordCopyImageWithTemporaryBuffer() 468 tempBufferCopy.buffer = tempBuffer.Get(); in RecordCopyImageWithTemporaryBuffer() 561 ToBackend(src.buffer)->EnsureDataInitialized(recordingContext); in RecordCommands() 579 ToBackend(src.buffer) in RecordCommands() 583 VkBuffer srcBuffer = ToBackend(src.buffer)->GetHandle(); in RecordCommands() 604 ToBackend(dst.buffer) in RecordCommands() 619 ToBackend(dst.buffer) in RecordCommands() [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-ot-shape-complex-khmer-machine.hh | 259 find_syllables_khmer (hb_buffer_t *buffer) in find_syllables_khmer() argument 263 hb_glyph_info_t *info = buffer->info; in find_syllables_khmer() 277 pe = eof = buffer->len; in find_syllables_khmer()
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
H A D | IceAssembler.cpp | 73 void AssemblerBuffer::EnsureCapacity::validate(AssemblerBuffer *buffer) { in validate() argument 74 // In debug mode, we save the assembler buffer along with the gap size before in validate() 75 // we start emitting to the buffer. This allows us to check that any single in validate() 82 // Mark the buffer as having ensured the capacity. in validate() 83 assert(!buffer->hasEnsuredCapacity()); // Cannot nest. in validate() 84 buffer->HasEnsuredCapacity = true; in validate() 88 // Unmark the buffer, so we cannot emit after this. in ~EnsureCapacity()
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/ |
H A D | util.cc | 55 spvtools::MessageConsumer GetBufferMessageConsumer(std::stringstream* buffer) { in GetBufferMessageConsumer() argument 56 return [buffer](spv_message_level_t level, const char*, in GetBufferMessageConsumer() 71 *buffer << status << " " << position.line << ":" << position.column << ":" in GetBufferMessageConsumer()
|
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | bytesinkutil.cpp | 36 char *buffer = sink.GetAppendBuffer(U8_MAX_LENGTH, desiredCapacity, in appendChange() local 43 U8_APPEND_UNSAFE(buffer, j, c); in appendChange() 49 sink.Append(buffer, j); in appendChange()
|
/third_party/protobuf/js/experimental/runtime/kernel/ |
H A D | buffer_decoder.js | 2 * @fileoverview A buffer implementation that can decode data for protobufs. 51 return BufferDecoder.fromArrayBuffer(bytesArray.buffer); 81 * Returns the start index of the underlying buffer. 89 * Returns the end index of the underlying buffer. 97 * Returns the length of the underlying buffer. 311 * Returns the buffer as a string. 318 new DataView(this.dataView_.buffer, this.startIndex_, this.length()); 323 * Returns the buffer as a ByteString. 332 * underlying buffer. 339 this.dataView_.buffer, thi [all...] |
/third_party/rust/crates/rustix/tests/io/ |
H A D | epoll.rs | 73 let mut buffer = vec![0; BUFFER_SIZE]; in client() variables 80 let nread = read(&data_socket, &mut buffer).unwrap(); in client() 81 assert_eq!(String::from_utf8_lossy(&buffer[..nread]), "hello\n"); in client()
|
/kernel/linux/linux-5.10/drivers/staging/vc04_services/vchiq-mmal/ |
H A D | mmal-vchiq.c | 137 /* actual buffer used to store bulk reply */ 138 struct mmal_buffer *buffer; member 139 /* amount of buffer used */ 141 /* MMAL buffer flags */ 257 struct mmal_buffer *buffer = msg_context->u.bulk.buffer; in buffer_work_cb() local 259 if (!buffer) { in buffer_work_cb() 260 pr_err("%s: ctx: %p, No mmal buffer to pass details\n", in buffer_work_cb() 265 buffer->length = msg_context->u.bulk.buffer_used; in buffer_work_cb() 266 buffer in buffer_work_cb() 1592 vchiq_mmal_submit_buffer(struct vchiq_mmal_instance *instance, struct vchiq_mmal_port *port, struct mmal_buffer *buffer) vchiq_mmal_submit_buffer() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/vc04_services/vchiq-mmal/ |
H A D | mmal-vchiq.c | 137 /* actual buffer used to store bulk reply */ 138 struct mmal_buffer *buffer; member 139 /* amount of buffer used */ 141 /* MMAL buffer flags */ 254 struct mmal_buffer *buffer = msg_context->u.bulk.buffer; in buffer_work_cb() local 256 if (!buffer) { in buffer_work_cb() 257 pr_err("%s: ctx: %p, No mmal buffer to pass details\n", in buffer_work_cb() 262 buffer->length = msg_context->u.bulk.buffer_used; in buffer_work_cb() 263 buffer in buffer_work_cb() 1589 vchiq_mmal_submit_buffer(struct vchiq_mmal_instance *instance, struct vchiq_mmal_port *port, struct mmal_buffer *buffer) vchiq_mmal_submit_buffer() argument [all...] |
/third_party/backends/backend/ |
H A D | matsushita.c | 474 /* Display a buffer in the log. */ 539 NULL, 0, dev->buffer, &size); in matsushita_read_document_size() 548 hexdump (DBG_info2, "document size", dev->buffer, 16); in matsushita_read_document_size() 552 assert (dev->params.lines == B32TOI (&dev->buffer[4])); in matsushita_read_document_size() 553 assert (dev->params.pixels_per_line == B32TOI (&dev->buffer[0])); in matsushita_read_document_size() 579 /* Allocate the buffer used to transfer the SCSI data. */ in matsushita_init() 581 dev->buffer = malloc (dev->buffer_size); in matsushita_init() 582 if (dev->buffer == NULL) in matsushita_init() 588 /* Allocate a buffer to store the temporary image. */ in matsushita_init() 593 free (dev->buffer); in matsushita_init() [all...] |
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_meta_bufimage.c | 28 * GFX queue: Compute shader implementation of image->buffer copy 29 * Compute queue: implementation also of buffer->image, image->image, and image clear. 91 /* Image to buffer - don't write use image accessors */ 101 * one for the buffer being written. in radv_device_init_meta_itob_state() 279 * one for the buffer being written. in radv_device_init_meta_btoi_state() 641 * one for the buffer being written. in radv_device_init_meta_itoi_state() 959 * one for the buffer being written. in radv_device_init_meta_cleari_state() 1231 create_bview(struct radv_cmd_buffer *cmd_buffer, struct radv_buffer *buffer, unsigned offset, in create_bview() argument 1238 .buffer = radv_buffer_to_handle(buffer), in create_bview() 1246 create_buffer_from_image(struct radv_cmd_buffer *cmd_buffer, struct radv_meta_blit2d_surf *surf, VkBufferUsageFlagBits usage, VkBuffer *buffer) create_buffer_from_image() argument 1276 create_bview_for_r32g32b32(struct radv_cmd_buffer *cmd_buffer, struct radv_buffer *buffer, unsigned offset, VkFormat src_format, struct radv_buffer_view *bview) create_bview_for_r32g32b32() argument 1427 VkBuffer buffer; radv_meta_buffer_to_image_cs_r32g32b32() local 1462 radv_DestroyBuffer(radv_device_to_handle(device), buffer, NULL); radv_meta_buffer_to_image_cs_r32g32b32() local 1739 VkBuffer buffer; radv_meta_clear_image_cs_r32g32b32() local 1770 radv_DestroyBuffer(radv_device_to_handle(device), buffer, NULL); radv_meta_clear_image_cs_r32g32b32() local [all...] |
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | pre-process.c | 181 static char buffer[12]; /* __DATE__: 3 + ' ' + 2 + ' ' + 4 + '\0' */ in expand_date() local 185 strftime(buffer, 12, "%b %e %Y", localtime(&t)); in expand_date() 186 replace_with_string(token, buffer); in expand_date() 191 static char buffer[9]; /* __TIME__: 2 + ':' + 2 + ':' + 2 + '\0' */ in expand_time() local 195 strftime(buffer, 9, "%T", localtime(&t)); in expand_time() 196 replace_with_string(token, buffer); in expand_time() 411 static char buffer[MAX_STRING]; in show_token_sequence() local 412 char *ptr = buffer; in show_token_sequence() 421 if (ptr + whitespace + len >= buffer + sizeof(buffer)) { in show_token_sequence() 545 static char buffer[512]; merge() local 790 static char buffer[256]; token_name_sequence() local [all...] |
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_vbuf.c | 35 * The module heavily uses bitmasks to represent per-buffer and 37 * to see if there's a non-zero stride, or user buffer, or unsupported format, 56 * one vertex buffer to another in an unused vertex buffer slot. It does 61 * Each of the 3 categories is translated to a separate buffer. 67 * 2) User buffer uploading (u_vbuf_upload_buffers) 78 * into one vertex buffer, and the indexed draw call is turned into 110 /* If (velem[i].src_format != native_format[i]), the vertex buffer 123 /* Which buffer has at least one vertex element referencing it 126 /* Which buffer ha [all...] |