OLD | NEW |
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 Loading... |
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*)¶ms); | 66 listener_->OnMatrixChanged((const float*)¶ms); |
67 } | 67 } |
68 | 68 |
69 } // namespace content | 69 } // namespace content |
OLD | NEW |