Home
last modified time | relevance | path

Searched refs:buffer_id (Results 1 – 25 of 79) sorted by relevance

1234

/external/chromium_org/content/browser/renderer_host/media/
Dvideo_capture_buffer_pool.cc29 int buffer_id, in ShareToProcess() argument
34 Buffer* buffer = GetBuffer(buffer_id); in ShareToProcess()
45 bool VideoCaptureBufferPool::GetBufferInfo(int buffer_id, in GetBufferInfo() argument
50 Buffer* buffer = GetBuffer(buffer_id); in GetBufferInfo()
68 void VideoCaptureBufferPool::RelinquishProducerReservation(int buffer_id) { in RelinquishProducerReservation() argument
70 Buffer* buffer = GetBuffer(buffer_id); in RelinquishProducerReservation()
80 int buffer_id, in HoldForConsumers() argument
83 Buffer* buffer = GetBuffer(buffer_id); in HoldForConsumers()
97 void VideoCaptureBufferPool::RelinquishConsumerHold(int buffer_id, in RelinquishConsumerHold() argument
100 Buffer* buffer = GetBuffer(buffer_id); in RelinquishConsumerHold()
[all …]
Dvideo_capture_buffer_pool.h55 base::SharedMemoryHandle ShareToProcess(int buffer_id,
61 bool GetBufferInfo(int buffer_id, void** memory, size_t* size);
81 void RelinquishProducerReservation(int buffer_id);
86 void HoldForConsumers(int buffer_id, int num_clients);
91 void RelinquishConsumerHold(int buffer_id, int num_clients);
118 Buffer* GetBuffer(int buffer_id);
Dvideo_capture_host.cc53 int buffer_id) { in OnBufferCreated() argument
57 this, controller_id, handle, length, buffer_id)); in OnBufferCreated()
62 int buffer_id) { in OnBufferDestroyed() argument
66 this, controller_id, buffer_id)); in OnBufferDestroyed()
71 int buffer_id, in OnBufferReady() argument
77 this, controller_id, buffer_id, timestamp, in OnBufferReady()
92 int buffer_id) { in DoSendNewBufferOnIOThread() argument
99 length, buffer_id)); in DoSendNewBufferOnIOThread()
104 int buffer_id) { in DoSendFreeBufferOnIOThread() argument
110 Send(new VideoCaptureMsg_FreeBuffer(controller_id.device_id, buffer_id)); in DoSendFreeBufferOnIOThread()
[all …]
Dvideo_capture_host.h84 int buffer_id) OVERRIDE;
86 int buffer_id) OVERRIDE;
89 int buffer_id,
124 void OnReceiveEmptyBuffer(int device_id, int buffer_id);
131 int buffer_id);
135 int buffer_id);
140 int buffer_id,
Dvideo_capture_host_unittest.cc118 int length, int buffer_id));
120 void(int device_id, int buffer_id));
122 void(int device_id, int buffer_id, base::Time timestamp,
187 int buffer_id) { in OnNewBufferCreatedDispatch() argument
188 OnNewBufferCreated(device_id, handle, length, buffer_id); in OnNewBufferCreatedDispatch()
191 filled_dib_[buffer_id] = dib; in OnNewBufferCreatedDispatch()
194 void OnBufferFreedDispatch(int device_id, int buffer_id) { in OnBufferFreedDispatch() argument
195 OnBufferFreed(device_id, buffer_id); in OnBufferFreedDispatch()
198 filled_dib_.find(buffer_id); in OnBufferFreedDispatch()
205 int buffer_id, in OnBufferFilledDispatch() argument
[all …]
Dvideo_capture_controller_event_handler.h37 int buffer_id) = 0;
41 int buffer_id) = 0;
46 int buffer_id,
Dvideo_capture_controller.cc35 int buffer_id, in PoolBuffer() argument
38 : Buffer(buffer_id, data, size), pool_(pool) { in PoolBuffer()
212 int buffer_id = *buffer_it; in RemoveClient() local
213 buffer_pool_->RelinquishConsumerHold(buffer_id, 1); in RemoveClient()
239 int buffer_id) { in ReturnBuffer() argument
246 if (!client || !client->active_buffers.erase(buffer_id)) { in ReturnBuffer()
251 buffer_pool_->RelinquishConsumerHold(buffer_id, 1); in ReturnBuffer()
472 int buffer_id = in DoReserveOutputBuffer() local
474 if (buffer_id == VideoCaptureBufferPool::kInvalidId) in DoReserveOutputBuffer()
478 buffer_pool_->GetBufferInfo(buffer_id, &data, &size); in DoReserveOutputBuffer()
[all …]
Dvideo_capture_buffer_pool_unittest.cc53 int buffer_id = pool_->ReserveForProducer(frame_bytes, &buffer_id_to_drop); in ReserveI420Buffer() local
54 if (buffer_id == VideoCaptureBufferPool::kInvalidId) in ReserveI420Buffer()
59 pool_->GetBufferInfo(buffer_id, &memory, &size); in ReserveI420Buffer()
61 return scoped_ptr<Buffer>(new Buffer(pool_, buffer_id, memory, size)); in ReserveI420Buffer()
/external/chromium_org/media/cdm/ppapi/
Dcdm_helpers.cc30 uint32_t buffer_id = 0; in Allocate() local
40 buffer_id = next_buffer_id_++; in Allocate()
43 buffer_id = found->second.first; in Allocate()
47 allocated_buffers_.insert(std::make_pair(buffer_id, buffer)); in Allocate()
49 return PpbBuffer::Create(buffer, buffer_id); in Allocate()
52 void PpbBufferAllocator::Release(uint32_t buffer_id) { in Release() argument
53 if (!buffer_id) in Release()
56 AllocatedBufferMap::iterator found = allocated_buffers_.find(buffer_id); in Release()
62 std::make_pair(buffer.size(), std::make_pair(buffer_id, buffer))); in Release()
Dcdm_helpers.h30 static PpbBuffer* Create(const pp::Buffer_Dev& buffer, uint32_t buffer_id) { in Create() argument
33 PP_DCHECK(buffer_id); in Create()
34 return new PpbBuffer(buffer, buffer_id); in Create()
60 uint32_t buffer_id() const { return buffer_id_; } in buffer_id() function
63 PpbBuffer(pp::Buffer_Dev buffer, uint32_t buffer_id) in PpbBuffer() argument
65 buffer_id_(buffer_id), in PpbBuffer()
87 void Release(uint32_t buffer_id);
Dcdm_adapter.cc356 allocator_.Release(encrypted_block_info.tracking_info.buffer_id); in Decrypt()
477 allocator_.Release(encrypted_block_info.tracking_info.buffer_id); in DecryptAndDecode()
668 decrypted_block_info.tracking_info.buffer_id = 0; in DeliverBlock()
683 decrypted_block_info.tracking_info.buffer_id = ppb_buffer->buffer_id(); in DeliverBlock()
722 decrypted_frame_info.tracking_info.buffer_id = 0; in DeliverFrame()
738 decrypted_frame_info.tracking_info.buffer_id = ppb_buffer->buffer_id(); in DeliverFrame()
769 decrypted_sample_info.tracking_info.buffer_id = 0; in DeliverSamples()
784 decrypted_sample_info.tracking_info.buffer_id = ppb_buffer->buffer_id(); in DeliverSamples()
/external/chromium_org/android_webview/public/browser/
Ddraw_gl.h89 typedef void AwReleaseGraphicBufferFunction(int buffer_id);
91 typedef int AwMapFunction(int buffer_id, AwMapMode mode, void** vaddr);
93 typedef int AwUnmapFunction(int buffer_id);
95 typedef void* AwGetNativeBufferFunction(int buffer_id);
97 typedef unsigned int AwGetStrideFunction(int buffer_id);
/external/chromium_org/content/renderer/media/
Dvideo_capture_message_filter.h31 int buffer_id) = 0;
33 virtual void OnBufferDestroyed(int buffer_id) = 0;
36 virtual void OnBufferReceived(int buffer_id,
79 int buffer_id);
83 int buffer_id);
87 int buffer_id,
Dvideo_capture_message_filter_unittest.cc30 int buffer_id));
31 MOCK_METHOD1(OnBufferDestroyed, void(int buffer_id));
32 MOCK_METHOD3(OnBufferReceived, void(int buffer_id,
81 int buffer_id = 22; in TEST() local
87 EXPECT_CALL(delegate, OnBufferReceived(buffer_id, timestamp, _)) in TEST()
90 delegate.device_id(), buffer_id, timestamp, format)); in TEST()
97 EXPECT_CALL(delegate, OnBufferDestroyed(buffer_id)); in TEST()
99 delegate.device_id(), buffer_id)); in TEST()
Dvideo_capture_message_filter.cc101 int buffer_id) { in OnBufferCreated() argument
110 Send(new VideoCaptureHostMsg_BufferReady(device_id, buffer_id)); in OnBufferCreated()
114 delegate->OnBufferCreated(handle, length, buffer_id); in OnBufferCreated()
119 int buffer_id, in OnBufferReceived() argument
129 Send(new VideoCaptureHostMsg_BufferReady(device_id, buffer_id)); in OnBufferReceived()
133 delegate->OnBufferReceived(buffer_id, timestamp, format); in OnBufferReceived()
138 int buffer_id) { in OnBufferDestroyed() argument
146 delegate->OnBufferDestroyed(buffer_id); in OnBufferDestroyed()
Dvideo_capture_impl.h63 int buffer_id) OVERRIDE;
64 virtual void OnBufferDestroyed(int buffer_id) OVERRIDE;
66 int buffer_id,
95 int buffer_id);
96 void DoBufferDestroyedOnCaptureThread(int buffer_id);
98 int buffer_id,
102 int buffer_id,
Dvideo_capture_impl.cc93 int length, int buffer_id) { in OnBufferCreated() argument
96 base::Unretained(this), handle, length, buffer_id)); in OnBufferCreated()
99 void VideoCaptureImpl::OnBufferDestroyed(int buffer_id) { in OnBufferDestroyed() argument
102 base::Unretained(this), buffer_id)); in OnBufferDestroyed()
106 int buffer_id, in OnBufferReceived() argument
111 base::Unretained(this), buffer_id, timestamp, format)); in OnBufferReceived()
207 int length, int buffer_id) { in DoBufferCreatedOnCaptureThread() argument
225 buffer_id, in DoBufferCreatedOnCaptureThread()
231 void VideoCaptureImpl::DoBufferDestroyedOnCaptureThread(int buffer_id) { in DoBufferDestroyedOnCaptureThread() argument
234 ClientBufferMap::iterator iter = client_buffers_.find(buffer_id); in DoBufferDestroyedOnCaptureThread()
[all …]
/external/chromium_org/android_webview/browser/
Dgpu_memory_buffer_factory_impl.cc22 GpuMemoryBufferImpl(int buffer_id, gfx::Size size) in GpuMemoryBufferImpl() argument
23 : buffer_id_(buffer_id), in GpuMemoryBufferImpl()
94 int buffer_id = g_gl_draw_functions->create_graphic_buffer(width, height); in CreateGpuMemoryBuffer() local
95 if (!buffer_id) in CreateGpuMemoryBuffer()
98 return new GpuMemoryBufferImpl(buffer_id, gfx::Size(width, height)); in CreateGpuMemoryBuffer()
/external/mesa3d/src/gallium/state_trackers/egl/drm/
Dmodeset.c95 if (fb->buffer_id) in drm_surface_init_framebuffers()
111 &fb->buffer_id); in drm_surface_init_framebuffers()
113 fb->buffer_id = 0; in drm_surface_init_framebuffers()
129 drmModeDirtyFB(drmdpy->fd, drmsurf->front_fb.buffer_id, NULL, 0); in drm_surface_flush_frontbuffer()
166 if (!drmsurf->back_fb.buffer_id) { in drm_surface_swap_buffers()
173 drmsurf->back_fb.buffer_id, 0, NULL); in drm_surface_swap_buffers()
239 if (drmsurf->front_fb.buffer_id) in drm_surface_destroy()
240 drmModeRmFB(drmsurf->drmdpy->fd, drmsurf->front_fb.buffer_id); in drm_surface_destroy()
243 if (drmsurf->back_fb.buffer_id) in drm_surface_destroy()
244 drmModeRmFB(drmsurf->drmdpy->fd, drmsurf->back_fb.buffer_id); in drm_surface_destroy()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/drm/
Dmodeset.c95 if (fb->buffer_id) in drm_surface_init_framebuffers()
111 &fb->buffer_id); in drm_surface_init_framebuffers()
113 fb->buffer_id = 0; in drm_surface_init_framebuffers()
129 drmModeDirtyFB(drmdpy->fd, drmsurf->front_fb.buffer_id, NULL, 0); in drm_surface_flush_frontbuffer()
166 if (!drmsurf->back_fb.buffer_id) { in drm_surface_swap_buffers()
173 drmsurf->back_fb.buffer_id, 0, NULL); in drm_surface_swap_buffers()
239 if (drmsurf->front_fb.buffer_id) in drm_surface_destroy()
240 drmModeRmFB(drmsurf->drmdpy->fd, drmsurf->front_fb.buffer_id); in drm_surface_destroy()
243 if (drmsurf->back_fb.buffer_id) in drm_surface_destroy()
244 drmModeRmFB(drmsurf->drmdpy->fd, drmsurf->back_fb.buffer_id); in drm_surface_destroy()
[all …]
/external/chromium_org/content/common/gpu/media/
Dgpu_video_encode_accelerator.cc201 int32 buffer_id, in OnUseOutputBitstreamBuffer() argument
205 "buffer_id=" << buffer_id in OnUseOutputBitstreamBuffer()
209 if (buffer_id < 0) { in OnUseOutputBitstreamBuffer()
211 "invalid buffer_id=" << buffer_id; in OnUseOutputBitstreamBuffer()
217 "buffer too small for buffer_id=" << buffer_id; in OnUseOutputBitstreamBuffer()
222 media::BitstreamBuffer(buffer_id, buffer_handle, buffer_size)); in OnUseOutputBitstreamBuffer()
/external/chromium_org/gpu/command_buffer/client/
Dvertex_array_object_manager.cc69 GLuint buffer_id() const { in buffer_id() function in gpu::gles2::VertexArrayObject::VertexAttrib
106 GLuint buffer_id, in SetInfo() argument
112 buffer_id_ = buffer_id; in SetInfo()
164 GLuint buffer_id,
208 if (attrib.buffer_id() == id) { in UnbindBuffer()
245 GLuint buffer_id, in SetAttribPointer() argument
259 attrib.SetInfo(buffer_id, size, type, normalized, stride, ptr); in SetAttribPointer()
276 *param = attrib->buffer_id(); in GetVertexAttrib()
432 GLuint buffer_id, in SetAttribPointer() argument
440 if (buffer_id == 0 && !IsDefaultVAOBound()) { in SetAttribPointer()
[all …]
Dgles2_implementation.cc770 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) { in GetMaxValueInBufferCHROMIUMHelper() argument
778 buffer_id, count, type, offset, GetResultShmId(), GetResultShmOffset()); in GetMaxValueInBufferCHROMIUMHelper()
784 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) { in GetMaxValueInBufferCHROMIUM() argument
787 << buffer_id << ", " << count << ", " in GetMaxValueInBufferCHROMIUM()
791 buffer_id, count, type, offset); in GetMaxValueInBufferCHROMIUM()
1374 GLuint buffer_id; in BufferDataHelper() local
1375 if (GetBoundPixelTransferBuffer(target, "glBufferData", &buffer_id)) { in BufferDataHelper()
1376 if (!buffer_id) { in BufferDataHelper()
1380 BufferTracker::Buffer* buffer = buffer_tracker_->GetBuffer(buffer_id); in BufferDataHelper()
1386 buffer_tracker_->RemoveBuffer(buffer_id); in BufferDataHelper()
[all …]
/external/chromium_org/cc/test/
Dtest_web_graphics_context_3d.cc452 unsigned buffer_id = buffer & 0xffff; in bindBuffer() local
454 DCHECK(buffer_id); in bindBuffer()
455 DCHECK_LT(buffer_id, namespace_->next_buffer_id); in bindBuffer()
604 WebGLId buffer_id = namespace_->next_buffer_id++; in NextBufferId() local
605 DCHECK(buffer_id < (1 << 16)); in NextBufferId()
606 buffer_id |= context_id_ << 16; in NextBufferId()
607 return buffer_id; in NextBufferId()
613 unsigned buffer_id = id & 0xffff; in RetireBufferId() local
614 DCHECK(buffer_id); in RetireBufferId()
615 DCHECK_LT(buffer_id, namespace_->next_buffer_id); in RetireBufferId()
/external/chromium_org/content/renderer/pepper/
Dcontent_decryptor_delegate.cc703 FreeBuffer(block_info->tracking_info.buffer_id); in DeliverBlock()
801 FreeBuffer(frame_info->tracking_info.buffer_id); in DeliverFrame()
816 DCHECK(!frame_info->tracking_info.buffer_id); in DeliverFrame()
824 FreeBuffer(frame_info->tracking_info.buffer_id); in DeliverFrame()
852 frame_info->tracking_info.buffer_id)))); in DeliverFrame()
862 FreeBuffer(sample_info->tracking_info.buffer_id); in DeliverSamples()
987 void ContentDecryptorDelegate::FreeBuffer(uint32_t buffer_id) { in FreeBuffer() argument
988 if (buffer_id) in FreeBuffer()
989 free_buffers_.push(buffer_id); in FreeBuffer()
994 DCHECK_EQ(tracking_info->buffer_id, 0u); in SetBufferToFreeInTrackingInfo()
[all …]

1234