Fix webrtc linking issues
This commit is contained in:
parent
b0fe23072d
commit
78266db427
2 changed files with 3 additions and 5 deletions
|
@ -29,8 +29,6 @@ using base::PlatformThreadRef;
|
|||
using content::BrowserThread;
|
||||
using content::DesktopMediaID;
|
||||
|
||||
extern "C" uint32_t SuperFastHash(const char* data, int len);
|
||||
|
||||
namespace {
|
||||
|
||||
// Update the list every second.
|
||||
|
@ -40,7 +38,7 @@ const int kDefaultUpdatePeriod = 1000;
|
|||
// media source has changed.
|
||||
uint32_t GetFrameHash(webrtc::DesktopFrame* frame) {
|
||||
int data_size = frame->stride() * frame->size().height();
|
||||
return SuperFastHash(reinterpret_cast<char*>(frame->data()), data_size);
|
||||
return base::Hash(frame->data(), data_size);
|
||||
}
|
||||
|
||||
gfx::ImageSkia ScaleDesktopFrame(std::unique_ptr<webrtc::DesktopFrame> frame,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue