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

Unified Diff: ppapi/cpp/dev/video_decoder_dev.h

Issue 7361010: Enable fire-and-forget Destroy of HW video decoder, and misc other improvements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vrk CR responses. Created 9 years, 5 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: ppapi/cpp/dev/video_decoder_dev.h
diff --git a/ppapi/cpp/dev/video_decoder_dev.h b/ppapi/cpp/dev/video_decoder_dev.h
index 03ddc59d1cb895a1c84ebce023473d0833f666ae..3d6f2b9e69a04beec008460c69b4a0f889c0e857 100644
--- a/ppapi/cpp/dev/video_decoder_dev.h
+++ b/ppapi/cpp/dev/video_decoder_dev.h
@@ -42,7 +42,10 @@ class VideoDecoder_Dev : public Resource {
void ReusePictureBuffer(int32_t picture_buffer_id);
int32_t Flush(CompletionCallback callback);
int32_t Reset(CompletionCallback callback);
- int32_t Destroy(CompletionCallback callback);
+
+ private:
+ // Disallow copy-construction to ensure Destroy() is called exactly once.
+ VideoDecoder_Dev(const VideoDecoder_Dev&);
};
} // namespace pp

Powered by Google App Engine
This is Rietveld 408576698