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

Side by Side Diff: ui/gfx/video_decode_acceleration_support_mac.h

Issue 10785047: Remove all the OS X 10.6 SDK forward declarations. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months 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 | « skia/ext/skia_utils_mac.mm ('k') | ui/gfx/video_decode_acceleration_support_mac.mm » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_GFX_VIDEO_DECODE_ACCELERATION_SUPPORT_MAC_H_ 5 #ifndef UI_GFX_VIDEO_DECODE_ACCELERATION_SUPPORT_MAC_H_
6 #define UI_GFX_VIDEO_DECODE_ACCELERATION_SUPPORT_MAC_H_ 6 #define UI_GFX_VIDEO_DECODE_ACCELERATION_SUPPORT_MAC_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 #include <CoreVideo/CoreVideo.h> 9 #include <CoreVideo/CoreVideo.h>
10 #include <map> 10 #include <map>
11 11
12 #if defined(MAC_OS_X_VERSION_10_6) && \
13 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
14 #include <VideoDecodeAcceleration/VDADecoder.h> 12 #include <VideoDecodeAcceleration/VDADecoder.h>
15 #endif
16 13
17 #include "base/basictypes.h" 14 #include "base/basictypes.h"
18 #include "base/callback.h" 15 #include "base/callback.h"
19 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
20 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
21 #include "base/message_loop_proxy.h" 18 #include "base/message_loop_proxy.h"
22 #include "ui/base/ui_export.h" 19 #include "ui/base/ui_export.h"
23 20
24 class FrameCallbackUtil; 21 class FrameCallbackUtil;
25 class VideoDecodeAccelerationSupportTest; 22 class VideoDecodeAccelerationSupportTest;
26 23
27 #if !defined(MAC_OS_X_VERSION_10_6) || \
28 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
29 typedef struct OpaqueVDADecoder* VDADecoder;
30 #endif
31
32 namespace gfx { 24 namespace gfx {
33 25
34 // This Mac OS X-specific class provides dynamically linked access to 26 // This Mac OS X-specific class provides dynamically linked access to
35 // VideoDecodeAcceleration.framework, which is only available on 10.6 and later. 27 // VideoDecodeAcceleration.framework, which is only available on 10.6 and later.
36 class UI_EXPORT VideoDecodeAccelerationSupport : 28 class UI_EXPORT VideoDecodeAccelerationSupport :
37 public base::RefCountedThreadSafe<VideoDecodeAccelerationSupport> { 29 public base::RefCountedThreadSafe<VideoDecodeAccelerationSupport> {
38 public: 30 public:
39 enum Status { 31 enum Status {
40 SUCCESS = 0, 32 SUCCESS = 0,
41 LOAD_FRAMEWORK_ERROR, 33 LOAD_FRAMEWORK_ERROR,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // A reference to the message loop that this object was created on. This is 83 // A reference to the message loop that this object was created on. This is
92 // used to invoke the frame ready callback on the correct thread. 84 // used to invoke the frame ready callback on the correct thread.
93 scoped_refptr<base::MessageLoopProxy> loop_; 85 scoped_refptr<base::MessageLoopProxy> loop_;
94 86
95 DISALLOW_COPY_AND_ASSIGN(VideoDecodeAccelerationSupport); 87 DISALLOW_COPY_AND_ASSIGN(VideoDecodeAccelerationSupport);
96 }; 88 };
97 89
98 } // namespace gfx 90 } // namespace gfx
99 91
100 #endif // UI_GFX_VIDEO_DECODE_ACCELERATION_SUPPORT_MAC_H_ 92 #endif // UI_GFX_VIDEO_DECODE_ACCELERATION_SUPPORT_MAC_H_
OLDNEW
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | ui/gfx/video_decode_acceleration_support_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698