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

Unified Diff: content/renderer/pepper/pepper_video_source_host.cc

Issue 141113003: Refactor base/safe_numerics.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/pepper_video_source_host.cc
===================================================================
--- content/renderer/pepper/pepper_video_source_host.cc (revision 245415)
+++ content/renderer/pepper/pepper_video_source_host.cc (working copy)
@@ -5,7 +5,7 @@
#include "content/renderer/pepper/pepper_video_source_host.h"
#include "base/bind.h"
-#include "base/safe_numerics.h"
+#include "base/numerics/safe_conversions.h"
#include "content/public/renderer/renderer_ppapi_host.h"
#include "content/renderer/pepper/ppb_image_data_impl.h"
#include "content/renderer/render_thread_impl.h"
@@ -134,8 +134,8 @@
DCHECK(last_frame_.get());
scoped_ptr<cricket::VideoFrame> frame(last_frame_.release());
- int32_t width = base::checked_numeric_cast<int32_t>(frame->GetWidth());
- int32_t height = base::checked_numeric_cast<int32_t>(frame->GetHeight());
+ int32_t width = base::checked_cast<int32_t>(frame->GetWidth());
+ int32_t height = base::checked_cast<int32_t>(frame->GetHeight());
PP_ImageDataDesc image_desc;
IPC::PlatformFileForTransit image_handle;
uint32_t byte_count;
« no previous file with comments | « content/renderer/pepper/pepper_truetype_font_linux.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698