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

Unified Diff: media/mojo/services/mojo_renderer_impl.cc

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: media/mojo/services/mojo_renderer_impl.cc
diff --git a/media/mojo/services/mojo_renderer_impl.cc b/media/mojo/services/mojo_renderer_impl.cc
index 63d7abda2af0c1c3d53aa97906595534d5ba4791..336166e48414494a56e76dea16dc0abeabc0fa05 100644
--- a/media/mojo/services/mojo_renderer_impl.cc
+++ b/media/mojo/services/mojo_renderer_impl.cc
@@ -15,7 +15,6 @@
#include "media/base/video_renderer_sink.h"
#include "media/mojo/services/mojo_demuxer_stream_impl.h"
#include "media/renderers/video_overlay_factory.h"
-#include "ui/gfx/geometry/mojo/geometry_type_converters.h"
namespace media {
@@ -185,14 +184,13 @@ void MojoRendererImpl::OnError() {
client_->OnError(PIPELINE_ERROR_DECODE);
}
-void MojoRendererImpl::OnVideoNaturalSizeChange(mojo::SizePtr size) {
- gfx::Size new_size = size.To<gfx::Size>();
- DVLOG(2) << __FUNCTION__ << ": " << new_size.ToString();
+void MojoRendererImpl::OnVideoNaturalSizeChange(const gfx::Size& size) {
+ DVLOG(2) << __FUNCTION__ << ": " << size.ToString();
DCHECK(task_runner_->BelongsToCurrentThread());
video_renderer_sink_->PaintSingleFrame(
- video_overlay_factory_->CreateFrame(new_size));
- client_->OnVideoNaturalSizeChange(new_size);
+ video_overlay_factory_->CreateFrame(size));
+ client_->OnVideoNaturalSizeChange(size);
}
void MojoRendererImpl::OnVideoOpacityChange(bool opaque) {

Powered by Google App Engine
This is Rietveld 408576698