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

Unified Diff: services/ui/ws/frame_generator.cc

Issue 2431753002: Mus experiment in content shell on Android.
Patch Set: Addressed comments, fixed browser tests and deps. Created 4 years, 2 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: services/ui/ws/frame_generator.cc
diff --git a/services/ui/ws/frame_generator.cc b/services/ui/ws/frame_generator.cc
index cbed7bdf88139623ba7c64fe257d8e8d2ac2c2fd..7b3417ad11f490727aba382280fe3c5b3156963b 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -44,7 +44,7 @@ FrameGenerator::~FrameGenerator() {
void FrameGenerator::OnGpuChannelEstablished(
scoped_refptr<gpu::GpuChannelHost> channel) {
- if (widget_ != gfx::kNullAcceleratedWidget) {
+ if (widget_ != gpu::kNullSurfaceHandle) {
compositor_frame_sink_ = base::MakeUnique<surfaces::CompositorFrameSink>(
frame_sink_id_, base::ThreadTaskRunnerHandle::Get(), widget_,
std::move(channel), display_compositor_);
@@ -58,10 +58,9 @@ void FrameGenerator::RequestRedraw(const gfx::Rect& redraw_region) {
WantToDraw();
}
-void FrameGenerator::OnAcceleratedWidgetAvailable(
- gfx::AcceleratedWidget widget) {
+void FrameGenerator::OnAcceleratedWidgetAvailable(gpu::SurfaceHandle widget) {
Fady Samuel 2016/10/19 10:49:52 I'm wondering if we should replace references to "
Jay Civelli 2016/11/02 22:02:17 Based on @sadrul comment I kept the AcceleratedWid
widget_ = widget;
- if (gpu_channel_ && widget != gfx::kNullAcceleratedWidget) {
+ if (gpu_channel_ && widget != gpu::kNullSurfaceHandle) {
compositor_frame_sink_.reset(new surfaces::CompositorFrameSink(
frame_sink_id_, base::ThreadTaskRunnerHandle::Get(), widget_,
std::move(gpu_channel_), display_compositor_));

Powered by Google App Engine
This is Rietveld 408576698