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

Side by Side Diff: Source/WebKit/chromium/src/WebMediaPlayerClientImpl.h

Issue 6465012: Merge 77599 - 2011-02-03 Victoria Kirst <vrk@google.com>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual WebCore::MediaPlayer::ReadyState readyState() const; 104 virtual WebCore::MediaPlayer::ReadyState readyState() const;
105 virtual float maxTimeSeekable() const; 105 virtual float maxTimeSeekable() const;
106 virtual WTF::PassRefPtr<WebCore::TimeRanges> buffered() const; 106 virtual WTF::PassRefPtr<WebCore::TimeRanges> buffered() const;
107 virtual int dataRate() const; 107 virtual int dataRate() const;
108 virtual void setAutobuffer(bool); 108 virtual void setAutobuffer(bool);
109 virtual bool totalBytesKnown() const; 109 virtual bool totalBytesKnown() const;
110 virtual unsigned totalBytes() const; 110 virtual unsigned totalBytes() const;
111 virtual unsigned bytesLoaded() const; 111 virtual unsigned bytesLoaded() const;
112 virtual void setSize(const WebCore::IntSize&); 112 virtual void setSize(const WebCore::IntSize&);
113 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&); 113 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&);
114 virtual void paintCurrentFrameInContext(WebCore::GraphicsContext*, const Web Core::IntRect&);
114 virtual bool hasSingleSecurityOrigin() const; 115 virtual bool hasSingleSecurityOrigin() const;
115 virtual WebCore::MediaPlayer::MovieLoadType movieLoadType() const; 116 virtual WebCore::MediaPlayer::MovieLoadType movieLoadType() const;
116 #if USE(ACCELERATED_COMPOSITING) 117 #if USE(ACCELERATED_COMPOSITING)
117 virtual bool supportsAcceleratedRendering() const; 118 virtual bool supportsAcceleratedRendering() const;
118 119
119 // VideoFrameProvider methods: 120 // VideoFrameProvider methods:
120 virtual WebCore::VideoFrameChromium* getCurrentFrame(); 121 virtual WebCore::VideoFrameChromium* getCurrentFrame();
121 virtual void putCurrentFrame(WebCore::VideoFrameChromium*); 122 virtual void putCurrentFrame(WebCore::VideoFrameChromium*);
122 #endif 123 #endif
123 124
124 private: 125 private:
125 WebMediaPlayerClientImpl(); 126 WebMediaPlayerClientImpl();
126 127
127 static WebCore::MediaPlayerPrivateInterface* create(WebCore::MediaPlayer*); 128 static WebCore::MediaPlayerPrivateInterface* create(WebCore::MediaPlayer*);
128 static void getSupportedTypes(WTF::HashSet<WTF::String>&); 129 static void getSupportedTypes(WTF::HashSet<WTF::String>&);
129 static WebCore::MediaPlayer::SupportsType supportsType( 130 static WebCore::MediaPlayer::SupportsType supportsType(
130 const WTF::String& type, const WTF::String& codecs); 131 const WTF::String& type, const WTF::String& codecs);
132 #if USE(ACCELERATED_COMPOSITING)
133 bool acceleratedRenderingInUse();
134 #endif
131 135
132 WebCore::MediaPlayer* m_mediaPlayer; 136 WebCore::MediaPlayer* m_mediaPlayer;
133 OwnPtr<WebMediaPlayer> m_webMediaPlayer; 137 OwnPtr<WebMediaPlayer> m_webMediaPlayer;
134 #if USE(ACCELERATED_COMPOSITING) 138 #if USE(ACCELERATED_COMPOSITING)
135 RefPtr<WebCore::VideoLayerChromium> m_videoLayer; 139 RefPtr<WebCore::VideoLayerChromium> m_videoLayer;
136 bool m_supportsAcceleratedCompositing; 140 bool m_supportsAcceleratedCompositing;
137 #endif 141 #endif
138 static bool m_isEnabled; 142 static bool m_isEnabled;
139 }; 143 };
140 144
141 } // namespace WebKit 145 } // namespace WebKit
142 146
143 #endif 147 #endif
144 148
145 #endif 149 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | Source/WebKit/chromium/src/WebMediaPlayerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698