Commit f1ee29e8 authored by Mike Klein's avatar Mike Klein Committed by Commit Bot

replace a SK_MaxSizeT with SIZE_MAX

We're looking to remove the Skia-specific SK_MaxSizeT and replace it
with its standard exact equivalent, SIZE_MAX.  Landing this here first
will make this transition a little smoother.

(For what it's worth, there's nothing at all wrong with the way this
code is written today... it's using public Skia types and checking the
documented error condition perfectly.  We just want to slightly tweak
those docs to say SIZE_MAX instead of Sk_MaxSizeT.)

Change-Id: Ieaffdedb8c33f1226cef4990cf0e2ce68eb7d294
Reviewed-on: https://chromium-review.googlesource.com/1101238Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567342}
parent 621da806
......@@ -97,7 +97,7 @@ bool WaylandCursor::CreateSHMBuffer(const gfx::Size& size) {
SkImageInfo info = SkImageInfo::MakeN32Premul(size_.width(), size_.height());
int stride = info.minRowBytes();
size_t image_buffer_size = info.computeByteSize(stride);
if (image_buffer_size == SK_MaxSizeT)
if (image_buffer_size == SIZE_MAX)
return false;
if (shared_memory_->handle().GetHandle()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment