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

Side by Side Diff: services/ui/ws/frame_generator.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: update Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/ui/ws/frame_generator.h" 5 #include "services/ui/ws/frame_generator.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/adapters.h" 10 #include "base/containers/adapters.h"
(...skipping 27 matching lines...) Expand all
38 compositor_frame_sink_->SetNeedsBeginFrame(true); 38 compositor_frame_sink_->SetNeedsBeginFrame(true);
39 } 39 }
40 40
41 FrameGenerator::~FrameGenerator() { 41 FrameGenerator::~FrameGenerator() {
42 compositor_frame_sink_.reset(); 42 compositor_frame_sink_.reset();
43 } 43 }
44 44
45 void FrameGenerator::OnAcceleratedWidgetAvailable( 45 void FrameGenerator::OnAcceleratedWidgetAvailable(
46 gfx::AcceleratedWidget widget) { 46 gfx::AcceleratedWidget widget) {
47 DCHECK_NE(gfx::kNullAcceleratedWidget, widget); 47 DCHECK_NE(gfx::kNullAcceleratedWidget, widget);
48 auto associated_group = 48 auto* associated_group =
49 root_window_->delegate()->GetDisplayCompositorAssociatedGroup(); 49 root_window_->delegate()->GetDisplayCompositorAssociatedGroup();
50 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request = 50 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request =
51 mojo::MakeRequest(&compositor_frame_sink_, associated_group); 51 mojo::MakeRequest(&compositor_frame_sink_, associated_group);
52 cc::mojom::DisplayPrivateAssociatedRequest display_request = 52 cc::mojom::DisplayPrivateAssociatedRequest display_request =
53 mojo::MakeRequest(&display_private_, associated_group); 53 mojo::MakeRequest(&display_private_, associated_group);
54 root_window_->CreateDisplayCompositorFrameSink( 54 root_window_->CreateDisplayCompositorFrameSink(
55 widget, std::move(sink_request), binding_.CreateInterfacePtrAndBind(), 55 widget, std::move(sink_request), binding_.CreateInterfacePtrAndBind(),
56 std::move(display_request)); 56 std::move(display_request));
57 } 57 }
58 58
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 0 /* sorting-context_id */); 178 0 /* sorting-context_id */);
179 auto* quad = pass->CreateAndAppendDrawQuad<cc::SurfaceDrawQuad>(); 179 auto* quad = pass->CreateAndAppendDrawQuad<cc::SurfaceDrawQuad>();
180 quad->SetAll(sqs, bounds_at_origin /* rect */, gfx::Rect() /* opaque_rect */, 180 quad->SetAll(sqs, bounds_at_origin /* rect */, gfx::Rect() /* opaque_rect */,
181 bounds_at_origin /* visible_rect */, true /* needs_blending*/, 181 bounds_at_origin /* visible_rect */, true /* needs_blending*/,
182 window_manager_surface_info_.id()); 182 window_manager_surface_info_.id());
183 } 183 }
184 184
185 } // namespace ws 185 } // namespace ws
186 186
187 } // namespace ui 187 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698