diff options
author | Chris Blume <cblume@google.com> | 2018-11-30 16:20:01 -0800 |
---|---|---|
committer | Chris Blume <cblume@google.com> | 2018-11-30 16:20:01 -0800 |
commit | 83a9937f18100dce9e7923b24abb34a7966f78bd (patch) | |
tree | 5f265720bd9b4c0407fa3cd540af1aa4eac417e2 /native | |
parent | e59ac13c375ce1c04d05429826a3d993fea4d9a2 (diff) |
Add explicit values to ABI enums in libs/hwui
In a separate code review we agreed that at ABI boundaries it feels nice
to explicitly call out enum values rather than rely on the rules of
C/C++ which others may not be comfortable with.
This CL adds explicit values to enums inside draw_gl.h.
Test: I built and tested on a Pixel 2.
Change-Id: I64c03e2684c1ab096a9c0665e4ed3d8b7bb22ac7
Diffstat (limited to 'native')
-rw-r--r-- | native/webview/plat_support/draw_gl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/native/webview/plat_support/draw_gl.h b/native/webview/plat_support/draw_gl.h index c8434b61eba5..de13ed0dec6f 100644 --- a/native/webview/plat_support/draw_gl.h +++ b/native/webview/plat_support/draw_gl.h @@ -43,9 +43,9 @@ struct AwDrawGLInfo { // Input: tells the draw function what action to perform. enum Mode { kModeDraw = 0, - kModeProcess, - kModeProcessNoContext, - kModeSync, + kModeProcess = 1, + kModeProcessNoContext = 2, + kModeSync = 3, } mode; // Input: current clip rect in surface coordinates. Reflects the current state @@ -93,9 +93,9 @@ typedef void (AwDrawGLFunction)(long view_context, AwDrawGLInfo* draw_info, void* spare); enum AwMapMode { - MAP_READ_ONLY, - MAP_WRITE_ONLY, - MAP_READ_WRITE, + MAP_READ_ONLY = 0, + MAP_WRITE_ONLY = 1, + MAP_READ_WRITE = 2, }; // Called to create a GraphicBuffer |