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

Unified Diff: content/common/cc_messages.cc

Issue 221523003: cc: Remove all usage of GetArea() from production code in cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: getarea: Created 6 years, 9 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
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/common/host_shared_bitmap_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/cc_messages.cc
diff --git a/content/common/cc_messages.cc b/content/common/cc_messages.cc
index 40e2441416c76e9807bc8c5914e95a8e8897222e..5279d4c547e4f0612a5de461a6777a6113e0fc0e 100644
--- a/content/common/cc_messages.cc
+++ b/content/common/cc_messages.cc
@@ -755,7 +755,7 @@ void ParamTraits<cc::DelegatedFrameData>::Log(const param_type& p,
void ParamTraits<cc::SoftwareFrameData>::Write(Message* m,
const param_type& p) {
- DCHECK(p.CheckedSizeInBytes().IsValid());
+ DCHECK(cc::SharedBitmap::VerifySizeInBytes(p.size));
m->Reserve(sizeof(cc::SoftwareFrameData));
WriteParam(m, p.id);
@@ -769,7 +769,8 @@ bool ParamTraits<cc::SoftwareFrameData>::Read(const Message* m,
param_type* p) {
if (!ReadParam(m, iter, &p->id))
return false;
- if (!ReadParam(m, iter, &p->size) || !p->CheckedSizeInBytes().IsValid())
+ if (!ReadParam(m, iter, &p->size) ||
+ !cc::SharedBitmap::VerifySizeInBytes(p->size))
return false;
if (!ReadParam(m, iter, &p->damage_rect))
return false;
« no previous file with comments | « content/child/child_shared_bitmap_manager.cc ('k') | content/common/host_shared_bitmap_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698