We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / content / common / sandbox_linux / bpf_cros_arm_gpu_policy_linux.h
blobed5c2055a58702ad3b2d21218dac23972842dbdd
1 // Copyright 2013 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.
5 #ifndef CONTENT_COMMON_SANDBOX_LINUX_BPF_CROS_ARM_GPU_POLICY_LINUX_H_
6 #define CONTENT_COMMON_SANDBOX_LINUX_BPF_CROS_ARM_GPU_POLICY_LINUX_H_
8 #include "content/common/sandbox_linux/bpf_gpu_policy_linux.h"
10 namespace content {
12 // This policy is for Chrome OS ARM.
13 class CrosArmGpuProcessPolicy : public GpuProcessPolicy {
14 public:
15 explicit CrosArmGpuProcessPolicy(bool allow_shmat);
16 ~CrosArmGpuProcessPolicy() override;
18 sandbox::bpf_dsl::ResultExpr EvaluateSyscall(
19 int system_call_number) const override;
20 bool PreSandboxHook() override;
22 private:
23 const bool allow_shmat_; // Allow shmat(2).
24 DISALLOW_COPY_AND_ASSIGN(CrosArmGpuProcessPolicy);
27 } // namespace content
29 #endif // CONTENT_COMMON_SANDBOX_LINUX_BPF_CROS_ARM_GPU_POLICY_LINUX_H_