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

Unified Diff: chrome/gpu/gpu_arc_video_service.cc

Issue 1945543002: Use explicit flush for ArcVideoAccelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update version Created 4 years, 7 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 | « chrome/gpu/arc_video_accelerator.h ('k') | components/arc/common/video.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_arc_video_service.cc
diff --git a/chrome/gpu/gpu_arc_video_service.cc b/chrome/gpu/gpu_arc_video_service.cc
index 2bef6bbf65c9072eeeb23adffd697015a12b66fd..510ee2e147f578fb1d9908ada9d51246edb57b9d 100644
--- a/chrome/gpu/gpu_arc_video_service.cc
+++ b/chrome/gpu/gpu_arc_video_service.cc
@@ -27,7 +27,6 @@ struct TypeConverter<arc::mojom::BufferMetadataPtr,
const chromeos::arc::BufferMetadata& input) {
arc::mojom::BufferMetadataPtr result = arc::mojom::BufferMetadata::New();
result->timestamp = input.timestamp;
- result->flags = input.flags;
result->bytes_used = input.bytes_used;
return result;
}
@@ -40,7 +39,6 @@ struct TypeConverter<chromeos::arc::BufferMetadata,
const arc::mojom::BufferMetadataPtr& input) {
chromeos::arc::BufferMetadata result;
result.timestamp = input->timestamp;
- result.flags = input->flags;
result.bytes_used = input->bytes_used;
return result;
}
@@ -152,6 +150,11 @@ class GpuArcVideoService::AcceleratorStub
client_->OnResetDone();
}
+ void OnFlushDone() override {
+ DVLOG(2) << "OnFlushDone";
+ client_->OnFlushDone();
+ }
+
void OnOutputFormatChanged(const VideoFormat& format) override {
DVLOG(2) << "OnOutputFormatChanged";
client_->OnOutputFormatChanged(::arc::mojom::VideoFormat::From(format));
@@ -213,6 +216,8 @@ class GpuArcVideoService::AcceleratorStub
void Reset() override { accelerator_->Reset(); }
+ void Flush() override { accelerator_->Flush(); }
+
private:
base::ThreadChecker thread_checker_;
GpuArcVideoService* const owner_;
« no previous file with comments | « chrome/gpu/arc_video_accelerator.h ('k') | components/arc/common/video.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698