Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 1095893002: gpu: Fix some context lost marking glitches+leaks and add UMA stats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kbr's comment Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 IPC_ENUM_TRAITS_MAX_VALUE(content::CauseForGpuLaunch, 47 IPC_ENUM_TRAITS_MAX_VALUE(content::CauseForGpuLaunch,
48 content::CAUSE_FOR_GPU_LAUNCH_MAX_ENUM - 1) 48 content::CAUSE_FOR_GPU_LAUNCH_MAX_ENUM - 1)
49 IPC_ENUM_TRAITS_MAX_VALUE(content::CreateCommandBufferResult, 49 IPC_ENUM_TRAITS_MAX_VALUE(content::CreateCommandBufferResult,
50 content::CREATE_COMMAND_BUFFER_RESULT_LAST) 50 content::CREATE_COMMAND_BUFFER_RESULT_LAST)
51 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, 51 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference,
52 gfx::GpuPreferenceLast) 52 gfx::GpuPreferenceLast)
53 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SurfaceType, 53 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SurfaceType,
54 gfx::SURFACE_TYPE_LAST) 54 gfx::SURFACE_TYPE_LAST)
55 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, 55 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff,
56 gpu::MemoryAllocation::CUTOFF_LAST) 56 gpu::MemoryAllocation::CUTOFF_LAST)
57 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::Error, gpu::error::kErrorLast)
57 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, 58 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason,
58 gpu::error::kContextLostReasonLast) 59 gpu::error::kContextLostReasonLast)
59 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error, 60 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error,
60 media::VideoEncodeAccelerator::kErrorMax) 61 media::VideoEncodeAccelerator::kErrorMax)
61 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoFrame::Format, 62 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoFrame::Format,
62 media::VideoFrame::FORMAT_MAX) 63 media::VideoFrame::FORMAT_MAX)
63 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile, 64 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile,
64 media::VIDEO_CODEC_PROFILE_MIN, 65 media::VIDEO_CODEC_PROFILE_MIN,
65 media::VIDEO_CODEC_PROFILE_MAX) 66 media::VIDEO_CODEC_PROFILE_MAX)
66 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult, 67 IPC_ENUM_TRAITS_MIN_MAX_VALUE(gpu::CollectInfoResult,
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 IPC_SYNC_MESSAGE_ROUTED5_1(GpuCommandBufferMsg_CreateVideoEncoder, 546 IPC_SYNC_MESSAGE_ROUTED5_1(GpuCommandBufferMsg_CreateVideoEncoder,
546 media::VideoFrame::Format /* input_format */, 547 media::VideoFrame::Format /* input_format */,
547 gfx::Size /* input_visible_size */, 548 gfx::Size /* input_visible_size */,
548 media::VideoCodecProfile /* output_profile */, 549 media::VideoCodecProfile /* output_profile */,
549 uint32 /* initial_bitrate */, 550 uint32 /* initial_bitrate */,
550 int32, /* route_id */ 551 int32, /* route_id */
551 bool /* succeeded */) 552 bool /* succeeded */)
552 553
553 // Tells the proxy that there was an error and the command buffer had to be 554 // Tells the proxy that there was an error and the command buffer had to be
554 // destroyed for some reason. 555 // destroyed for some reason.
555 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, 556 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_Destroyed,
556 gpu::error::ContextLostReason /* reason */) 557 gpu::error::ContextLostReason, /* reason */
558 gpu::error::Error /* error */)
557 559
558 // Tells the browser that SwapBuffers returned and passes latency info 560 // Tells the browser that SwapBuffers returned and passes latency info
559 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SwapBuffersCompleted, 561 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SwapBuffersCompleted,
560 std::vector<ui::LatencyInfo> /* latency_info */) 562 std::vector<ui::LatencyInfo> /* latency_info */)
561 563
562 // Tells the browser about updated parameters for vsync alignment. 564 // Tells the browser about updated parameters for vsync alignment.
563 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, 565 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters,
564 base::TimeTicks /* timebase */, 566 base::TimeTicks /* timebase */,
565 base::TimeDelta /* interval */) 567 base::TimeDelta /* interval */)
566 568
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 int32 /* bitstream_buffer_id */, 744 int32 /* bitstream_buffer_id */,
743 uint32 /* payload_size */, 745 uint32 /* payload_size */,
744 bool /* key_frame */) 746 bool /* key_frame */)
745 747
746 // Report error condition. 748 // Report error condition.
747 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 749 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
748 media::VideoEncodeAccelerator::Error /* error */) 750 media::VideoEncodeAccelerator::Error /* error */)
749 751
750 // Send destroy request to the encoder. 752 // Send destroy request to the encoder.
751 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) 753 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698