blob: 363dbb49f910ef7d9e1c85b4b4a065a3e1514605 [file] [log] [blame]
[email protected]2bbd2c672011-08-09 23:14:131// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "ppapi/shared_impl/id_assignment.h"
6
7#include "base/basictypes.h"
8
9namespace ppapi {
10
11const unsigned int kPPIdTypeBits = 2;
12
[email protected]01677772011-12-02 05:16:3913const int32 kMaxPPId = kint32max >> kPPIdTypeBits;
[email protected]2bbd2c672011-08-09 23:14:1314
[email protected]665b5c542014-02-22 08:06:2615COMPILE_ASSERT(PP_ID_TYPE_COUNT <= (1 << kPPIdTypeBits),
[email protected]2bbd2c672011-08-09 23:14:1316 kPPIdTypeBits_is_too_small_for_all_id_types);
17
18} // namespace ppapi