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

Side by Side Diff: chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.cc

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/media/cma/ipc_streamer/video_decoder_config_marshaller.h" 5 #include "chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chromecast/media/cma/ipc/media_message.h" 9 #include "chromecast/media/cma/ipc/media_message.h"
10 #include "media/base/video_decoder_config.h" 10 #include "media/base/video_decoder_config.h"
11 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
12 #include "ui/gfx/size.h" 12 #include "ui/gfx/geometry/size.h"
13 13
14 namespace chromecast { 14 namespace chromecast {
15 namespace media { 15 namespace media {
16 16
17 namespace { 17 namespace {
18 const size_t kMaxExtraDataSize = 16 * 1024; 18 const size_t kMaxExtraDataSize = 16 * 1024;
19 19
20 class SizeMarshaller { 20 class SizeMarshaller {
21 public: 21 public:
22 static void Write(const gfx::Size& size, MediaMessage* msg) { 22 static void Write(const gfx::Size& size, MediaMessage* msg) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 return ::media::VideoDecoderConfig( 105 return ::media::VideoDecoderConfig(
106 codec, profile, format, 106 codec, profile, format,
107 coded_size, visible_rect, natural_size, 107 coded_size, visible_rect, natural_size,
108 extra_data.get(), extra_data_size, 108 extra_data.get(), extra_data_size,
109 is_encrypted); 109 is_encrypted);
110 } 110 }
111 111
112 } // namespace media 112 } // namespace media
113 } // namespace chromecast 113 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/media/cma_message_filter_host.cc ('k') | chromecast/media/cma/test/mock_frame_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698