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

Side by Side Diff: content/renderer/gpu/stream_texture_host_android.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixups 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/gpu/stream_texture_host_android.h" 5 #include "content/renderer/gpu/stream_texture_host_android.h"
6 6
7 #include "content/common/gpu/client/gpu_channel_host.h" 7 #include "content/common/gpu/client/gpu_channel_host.h"
8 #include "content/common/gpu/gpu_messages.h" 8 #include "content/common/gpu/gpu_messages.h"
9 #include "content/renderer/render_thread_impl.h" 9 #include "content/renderer/render_thread_impl.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void StreamTextureHost::OnChannelError() { 53 void StreamTextureHost::OnChannelError() {
54 } 54 }
55 55
56 void StreamTextureHost::OnFrameAvailable() { 56 void StreamTextureHost::OnFrameAvailable() {
57 if (listener_) 57 if (listener_)
58 listener_->OnFrameAvailable(); 58 listener_->OnFrameAvailable();
59 } 59 }
60 60
61 void StreamTextureHost::OnMatrixChanged( 61 void StreamTextureHost::OnMatrixChanged(
62 const GpuStreamTextureMsg_MatrixChanged_Params& params) { 62 const GpuStreamTextureMsg_MatrixChanged_Params& params) {
63 COMPILE_ASSERT(sizeof(params) == sizeof(float) * 16, 63 static_assert(sizeof(params) == sizeof(float) * 16,
64 bad_GpuStreamTextureMsg_MatrixChanged_Params_format); 64 "bad GpuStreamTextureMsg MatrixChanged_Params format");
65 if (listener_) 65 if (listener_)
66 listener_->OnMatrixChanged((const float*)&params); 66 listener_->OnMatrixChanged((const float*)&params);
67 } 67 }
68 68
69 } // namespace content 69 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.cc ('k') | content/renderer/media/webrtc/media_stream_track_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698