| 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 "media/base/media_log.h" | 5 #include "media/base/media_log.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 const char* MediaLog::PipelineStatusToString(PipelineStatus status) { | 103 const char* MediaLog::PipelineStatusToString(PipelineStatus status) { |
| 104 switch (status) { | 104 switch (status) { |
| 105 case PIPELINE_OK: | 105 case PIPELINE_OK: |
| 106 return "pipeline: ok"; | 106 return "pipeline: ok"; |
| 107 case PIPELINE_ERROR_URL_NOT_FOUND: | 107 case PIPELINE_ERROR_URL_NOT_FOUND: |
| 108 return "pipeline: url not found"; | 108 return "pipeline: url not found"; |
| 109 case PIPELINE_ERROR_NETWORK: | 109 case PIPELINE_ERROR_NETWORK: |
| 110 return "pipeline: network error"; | 110 return "pipeline: network error"; |
| 111 case PIPELINE_ERROR_DECODE: | 111 case PIPELINE_ERROR_DECODE: |
| 112 return "pipeline: decode error"; | 112 return "pipeline: decode error"; |
| 113 case PIPELINE_ERROR_DECRYPT: |
| 114 return "pipeline: decrypt error"; |
| 113 case PIPELINE_ERROR_ABORT: | 115 case PIPELINE_ERROR_ABORT: |
| 114 return "pipeline: abort"; | 116 return "pipeline: abort"; |
| 115 case PIPELINE_ERROR_INITIALIZATION_FAILED: | 117 case PIPELINE_ERROR_INITIALIZATION_FAILED: |
| 116 return "pipeline: initialization failed"; | 118 return "pipeline: initialization failed"; |
| 117 case PIPELINE_ERROR_REQUIRED_FILTER_MISSING: | 119 case PIPELINE_ERROR_REQUIRED_FILTER_MISSING: |
| 118 return "pipeline: required filter missing"; | 120 return "pipeline: required filter missing"; |
| 119 case PIPELINE_ERROR_OUT_OF_MEMORY: | 121 case PIPELINE_ERROR_OUT_OF_MEMORY: |
| 120 return "pipeline: out of memory"; | 122 return "pipeline: out of memory"; |
| 121 case PIPELINE_ERROR_COULD_NOT_RENDER: | 123 case PIPELINE_ERROR_COULD_NOT_RENDER: |
| 122 return "pipeline: could not render"; | 124 return "pipeline: could not render"; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 last_statistics_.video_bytes_decoded); | 257 last_statistics_.video_bytes_decoded); |
| 256 event->params.SetInteger("video_frames_decoded", | 258 event->params.SetInteger("video_frames_decoded", |
| 257 last_statistics_.video_frames_decoded); | 259 last_statistics_.video_frames_decoded); |
| 258 event->params.SetInteger("video_frames_dropped", | 260 event->params.SetInteger("video_frames_dropped", |
| 259 last_statistics_.video_frames_dropped); | 261 last_statistics_.video_frames_dropped); |
| 260 AddEvent(event.Pass()); | 262 AddEvent(event.Pass()); |
| 261 stats_update_pending_ = false; | 263 stats_update_pending_ = false; |
| 262 } | 264 } |
| 263 | 265 |
| 264 } //namespace media | 266 } //namespace media |
| OLD | NEW |