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

Side by Side Diff: webrtc/modules/video_render/windows/video_render_direct3d9.cc

Issue 1593713013: Roll chromium_revision 7a4fb8d..f527e86 (370025:370073) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix/disable Win Clang warnings Created 4 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 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 _logoTop = top; 1118 _logoTop = top;
1119 _logoBottom = bottom; 1119 _logoBottom = bottom;
1120 1120
1121 return 0; 1121 return 0;
1122 1122
1123 } 1123 }
1124 1124
1125 int32_t VideoRenderDirect3D9::GetGraphicsMemory(uint64_t& totalMemory, 1125 int32_t VideoRenderDirect3D9::GetGraphicsMemory(uint64_t& totalMemory,
1126 uint64_t& availableMemory) 1126 uint64_t& availableMemory)
1127 { 1127 {
1128 if (_totalMemory == -1 || _availableMemory == -1)
kjellander_webrtc 2016/01/19 08:39:05 This code must have been dead forever :)
1129 {
1130 totalMemory = 0;
1131 availableMemory = 0;
1132 return -1;
1133 }
1134 totalMemory = _totalMemory; 1128 totalMemory = _totalMemory;
1135 availableMemory = _availableMemory; 1129 availableMemory = _availableMemory;
1136 return 0; 1130 return 0;
1137 } 1131 }
1138 1132
1139 int32_t VideoRenderDirect3D9::ConfigureRenderer(const uint32_t channel, 1133 int32_t VideoRenderDirect3D9::ConfigureRenderer(const uint32_t channel,
1140 const uint16_t streamId, 1134 const uint16_t streamId,
1141 const unsigned int zOrder, 1135 const unsigned int zOrder,
1142 const float left, 1136 const float left,
1143 const float top, 1137 const float top,
(...skipping 13 matching lines...) Expand all
1157 "Direct3D render failed to find channel"); 1151 "Direct3D render failed to find channel");
1158 return -1; 1152 return -1;
1159 } 1153 }
1160 // Only allow one stream per channel, demuxing is 1154 // Only allow one stream per channel, demuxing is
1161 ddobj->SetStreamSettings(0, zOrder, left, top, right, bottom); 1155 ddobj->SetStreamSettings(0, zOrder, left, top, right, bottom);
1162 1156
1163 return 0; 1157 return 0;
1164 } 1158 }
1165 1159
1166 } // namespace webrtc 1160 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698