Home | History | Annotate | Download | only in client

Lines Matching refs:gpu

5 #include "content/common/gpu/client/command_buffer_proxy_impl.h"
13 #include "content/common/gpu/client/gpu_channel_host.h"
14 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h"
15 #include "content/common/gpu/gpu_memory_allocation.h"
16 #include "content/common/gpu/gpu_messages.h"
18 #include "gpu/command_buffer/common/cmd_buffer_common.h"
19 #include "gpu/command_buffer/common/command_buffer_shared.h"
67 OnDestroyed(gpu::error::kUnknown);
70 void CommandBufferProxyImpl::OnDestroyed(gpu::error::ContextLostReason reason) {
76 last_state_.error = gpu::error::kLostContext;
103 if (last_state_.error != gpu::error::kNoError)
150 // This handle is owned by the GPU process and must be passed to it or it
172 gpu::CommandBuffer::State CommandBufferProxyImpl::GetState() {
174 if (last_state_.error == gpu::error::kNoError) {
175 gpu::CommandBuffer::State state;
184 gpu::CommandBuffer::State CommandBufferProxyImpl::GetLastState() {
194 if (last_state_.error != gpu::error::kNoError)
197 TRACE_EVENT1("gpu",
214 if (last_state_.error != gpu::error::kNoError)
219 gpu::CommandBuffer::State CommandBufferProxyImpl::FlushSync(
222 TRACE_EVENT1("gpu", "CommandBufferProxyImpl::FlushSync", "put_offset",
228 if (last_state_.error == gpu::error::kNoError) {
229 gpu::CommandBuffer::State state;
241 if (last_state_.error != gpu::error::kNoError)
253 gpu::Buffer CommandBufferProxyImpl::CreateTransferBuffer(size_t size,
257 if (last_state_.error != gpu::error::kNoError)
258 return gpu::Buffer();
266 return gpu::Buffer();
270 return gpu::Buffer();
272 // This handle is owned by the GPU process and must be passed to it or it
278 return gpu::Buffer();
284 return gpu::Buffer();
288 gpu::Buffer buffer;
298 if (last_state_.error != gpu::error::kNoError)
311 gpu::Buffer CommandBufferProxyImpl::GetTransferBuffer(int32 id) {
312 if (last_state_.error != gpu::error::kNoError)
313 return gpu::Buffer();
330 return gpu::Buffer();
340 return gpu::Buffer();
343 gpu::Buffer buffer;
358 gpu::error::Error error) {
364 gpu::error::ContextLostReason reason) {
374 if (last_state_.error != gpu::error::kNoError) {
389 if (last_state_.error != gpu::error::kNoError)
396 if (last_state_.error != gpu::error::kNoError)
403 if (last_state_.error != gpu::error::kNoError)
410 if (last_state_.error != gpu::error::kNoError)
420 if (last_state_.error != gpu::error::kNoError) {
438 if (last_state_.error != gpu::error::kNoError) {
444 // until the callback is invoked, which will happen as soon as the GPU
465 std::vector<gpu::Mailbox>* names) {
466 if (last_state_.error != gpu::error::kNoError)
472 bool CommandBufferProxyImpl::ProduceFrontBuffer(const gpu::Mailbox& mailbox) {
473 if (last_state_.error != gpu::error::kNoError)
492 DLOG(ERROR) << "Failed to Initialize GPU decoder on profile: " << profile;
503 gpu::error::Error CommandBufferProxyImpl::GetLastError() {
509 DCHECK(last_state_.error == gpu::error::kNoError);
518 last_state_.error = gpu::error::kLostContext;
530 const gpu::CommandBuffer::State& state) {
543 if (last_state_.error == gpu::error::kNoError)
549 if (last_state_.error != gpu::error::kNoError)