summaryrefslogtreecommitdiffstats
path: root/base/memory/scoped_policy.h
diff options
context:
space:
mode:
authorsail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-02 08:17:37 +0000
committersail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-02 08:17:37 +0000
commit05d07a875c9b3da8cb571c38f2f8ff0ce20cbad6 (patch)
treed968d24c7a9d95ddc6b0dfa5f1b745ff6487bf9b /base/memory/scoped_policy.h
parentd155bbc4ca954f62770964c878f5afe1c1df18ed (diff)
downloadchromium_src-05d07a875c9b3da8cb571c38f2f8ff0ce20cbad6.zip
chromium_src-05d07a875c9b3da8cb571c38f2f8ff0ce20cbad6.tar.gz
chromium_src-05d07a875c9b3da8cb571c38f2f8ff0ce20cbad6.tar.bz2
Implement media::VideoDecodeAccelerator on Mac
This CL implements media::VideoDecodeAccelerator for Mac. This will be used to implement hardware video decoding for Pepper Flash. Currently a couple things are still missing: - the new VideoDecodeAcceleratorMac class needs to be hooked up to GpuVideoDecodeAccelerator - the PPB_VideoDecoder_Dev::Create() API needs to be extended so clients can specify the extra AVC data. BUG=127414 TEST=Ran on Mac and Windows. Sending ARM try bots now. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140153 Review URL: https://chromiumcodereview.appspot.com/10388108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/memory/scoped_policy.h')
-rw-r--r--base/memory/scoped_policy.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/base/memory/scoped_policy.h b/base/memory/scoped_policy.h
new file mode 100644
index 0000000..4418701
--- /dev/null
+++ b/base/memory/scoped_policy.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_MEMORY_SCOPED_POLICY_H_
+#define BASE_MEMORY_SCOPED_POLICY_H_
+#pragma once
+
+namespace base {
+namespace scoped_policy {
+
+// Defines the ownership policy for a scoped object.
+enum OwnershipPolicy {
+ // The scoped object takes ownership of an object by taking over an existing
+ // ownership claim.
+ ASSUME,
+
+ // The scoped object will retain the the object and any initial ownership is
+ // not changed.
+ RETAIN
+};
+
+} // namespace scoped_policy
+} // namespace base
+
+#endif // BASE_MEMORY_SCOPED_POLICY_H_