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

Side by Side Diff: gpu/ipc/common/gpu_stream_constants.h

Issue 2440093003: WIP GPU scheduler + delayed activation / tile draw
Patch Set: SignalSyncToken -> IsFenceSyncReleased Created 4 years 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 | « gpu/ipc/common/BUILD.gn ('k') | gpu/ipc/common/gpu_stream_constants.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ 5 #ifndef GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_
6 #define GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ 6 #define GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_
7 7
8 #include "gpu/gpu_export.h"
9
8 namespace gpu { 10 namespace gpu {
9 11
10 enum class GpuStreamPriority { REAL_TIME, HIGH, NORMAL, LOW, LAST = LOW }; 12 enum class GpuStreamPriority : int { REAL_TIME, HIGH, NORMAL, LOW, LAST = LOW };
13 static const int kNumGpuStreamPriorities = 4;
11 14
12 enum GpuStreamId { GPU_STREAM_DEFAULT = -1, GPU_STREAM_INVALID = 0 }; 15 enum GpuStreamId { GPU_STREAM_DEFAULT = -1, GPU_STREAM_INVALID = 0 };
13 16
17 GPU_EXPORT const char* GpuStreamPriorityToString(GpuStreamPriority priority);
18
14 } // namespace gpu 19 } // namespace gpu
15 20
16 #endif // GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_ 21 #endif // GPU_IPC_COMMON_GPU_STREAM_CONSTANTS_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/BUILD.gn ('k') | gpu/ipc/common/gpu_stream_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698