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

Unified Diff: skia/public/interfaces/bitmap_skbitmap_struct_traits.h

Issue 2045723002: mojo ArrayTraits<T>::Resize returns bool indicating success (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed pach Created 4 years, 6 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: skia/public/interfaces/bitmap_skbitmap_struct_traits.h
diff --git a/skia/public/interfaces/bitmap_skbitmap_struct_traits.h b/skia/public/interfaces/bitmap_skbitmap_struct_traits.h
index b7e72af9fb2a2efb1ee2cafdb53266486e7776f0..fbd54114b80a5d87cb157d0411a5df4d4dd28836 100644
--- a/skia/public/interfaces/bitmap_skbitmap_struct_traits.h
+++ b/skia/public/interfaces/bitmap_skbitmap_struct_traits.h
@@ -26,7 +26,7 @@ struct ArrayTraits<BitmapBuffer> {
static const uint8_t* GetData(const BitmapBuffer& b);
static uint8_t& GetAt(BitmapBuffer& b, size_t i);
static const uint8_t& GetAt(const BitmapBuffer& b, size_t i);
- static void Resize(BitmapBuffer& b, size_t size);
+ static bool Resize(BitmapBuffer& b, size_t size);
};
// Struct traits to use SkBitmap for skia::mojom::Bitmap in Chrome C++ code.
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_serialization.h ('k') | skia/public/interfaces/bitmap_skbitmap_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698