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

Side by Side Diff: chromecast/renderer/media/hole_frame_factory.cc

Issue 1961273002: Disable idle suspend for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't disable suspend on Android Created 4 years, 6 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 | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "chromecast/renderer/media/hole_frame_factory.h" 5 #include "chromecast/renderer/media/hole_frame_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "gpu/GLES2/gl2extchromium.h" 9 #include "gpu/GLES2/gl2extchromium.h"
10 #include "gpu/command_buffer/client/gles2_interface.h" 10 #include "gpu/command_buffer/client/gles2_interface.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 ::media::PIXEL_FORMAT_XRGB, 68 ::media::PIXEL_FORMAT_XRGB,
69 gpu::MailboxHolder(mailbox_, sync_token_, GL_TEXTURE_2D), 69 gpu::MailboxHolder(mailbox_, sync_token_, GL_TEXTURE_2D),
70 ::media::VideoFrame::ReleaseMailboxCB(), 70 ::media::VideoFrame::ReleaseMailboxCB(),
71 size, // coded_size 71 size, // coded_size
72 gfx::Rect(size), // visible rect 72 gfx::Rect(size), // visible rect
73 size, // natural size 73 size, // natural size
74 base::TimeDelta()); // timestamp 74 base::TimeDelta()); // timestamp
75 CHECK(frame); 75 CHECK(frame);
76 frame->metadata()->SetBoolean(::media::VideoFrameMetadata::ALLOW_OVERLAY, 76 frame->metadata()->SetBoolean(::media::VideoFrameMetadata::ALLOW_OVERLAY,
77 true); 77 true);
78 frame->metadata()->SetBoolean(::media::VideoFrameMetadata::DECODER_OWNS_FRAME,
79 true);
78 return frame; 80 return frame;
79 } 81 }
80 82
81 } // namespace media 83 } // namespace media
82 } // namespace chromecast 84 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698