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

Unified Diff: mojo/services/media/common/cpp/mapped_shared_buffer.h

Issue 1823833003: Take advantage of MojoGetBufferInformation (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase and fix a type mismatch which the android build caught Created 4 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
Index: mojo/services/media/common/cpp/mapped_shared_buffer.h
diff --git a/mojo/services/media/common/cpp/mapped_shared_buffer.h b/mojo/services/media/common/cpp/mapped_shared_buffer.h
index 5fd7e8a06fb2b7edb0c2a47a29338f503d81dd4f..9002393fdd77b72dfcb8daa55410bcc2375c0a47 100644
--- a/mojo/services/media/common/cpp/mapped_shared_buffer.h
+++ b/mojo/services/media/common/cpp/mapped_shared_buffer.h
@@ -31,7 +31,7 @@ class MappedSharedBuffer {
void InitNew(uint64_t size);
// Initializes from a handle to an existing shared buffer.
- void InitFromHandle(ScopedSharedBufferHandle handle, uint64_t size);
+ void InitFromHandle(ScopedSharedBufferHandle handle);
// Indicates whether the buffer is initialized.
bool initialized() const;
@@ -49,7 +49,7 @@ class MappedSharedBuffer {
uint64_t OffsetFromPtr(void *payload_ptr) const;
protected:
- void InitInternal(ScopedSharedBufferHandle& handle, uint64_t size);
+ void InitInternal(const ScopedSharedBufferHandle& handle);
// Does nothing. Called when initialization is complete. Subclasses may
// override.
@@ -78,4 +78,4 @@ class MappedSharedBuffer {
} // namespace media
} // namespace mojo
-#endif // MOJO_SERVICES_MEDIA_COMMON_CPP_MAPPED_SHARED_BUFFER_H_
+#endif // MOJO_SERVICES_MEDIA_COMMON_CPP_MAPPED_SHARED_BUFFER_H_

Powered by Google App Engine
This is Rietveld 408576698