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

Side by Side Diff: services/gfx/compositor/backend/gpu_output.cc

Issue 1660403003: Mojo C++ bindings: Rename InterfaceInfoPtr -> InterfaceHandle (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: using {{InterfaceName}}Handle = InterfaceHandle<{{InterfaceName}}> Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/gfx/compositor/backend/gpu_output.h" 5 #include "services/gfx/compositor/backend/gpu_output.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 GpuOutput::RasterizerDelegate::RasterizerDelegate( 85 GpuOutput::RasterizerDelegate::RasterizerDelegate(
86 const std::shared_ptr<FrameQueue>& frame_queue) 86 const std::shared_ptr<FrameQueue>& frame_queue)
87 : frame_queue_(frame_queue) { 87 : frame_queue_(frame_queue) {
88 DCHECK(frame_queue_); 88 DCHECK(frame_queue_);
89 } 89 }
90 90
91 GpuOutput::RasterizerDelegate::~RasterizerDelegate() {} 91 GpuOutput::RasterizerDelegate::~RasterizerDelegate() {}
92 92
93 void GpuOutput::RasterizerDelegate::CreateRasterizer( 93 void GpuOutput::RasterizerDelegate::CreateRasterizer(
94 mojo::InterfacePtrInfo<mojo::ContextProvider> context_provider_info, 94 mojo::InterfaceHandle<mojo::ContextProvider> context_provider_info,
95 const std::shared_ptr<VsyncScheduler>& scheduler, 95 const std::shared_ptr<VsyncScheduler>& scheduler,
96 const scoped_refptr<base::TaskRunner>& task_runner, 96 const scoped_refptr<base::TaskRunner>& task_runner,
97 const base::Closure& error_callback) { 97 const base::Closure& error_callback) {
98 rasterizer_.reset( 98 rasterizer_.reset(
99 new GpuRasterizer(mojo::MakeProxy(context_provider_info.Pass()).Pass(), 99 new GpuRasterizer(mojo::MakeProxy(context_provider_info.Pass()).Pass(),
100 scheduler, task_runner, error_callback)); 100 scheduler, task_runner, error_callback));
101 } 101 }
102 102
103 void GpuOutput::RasterizerDelegate::SubmitNextFrame() { 103 void GpuOutput::RasterizerDelegate::SubmitNextFrame() {
104 std::shared_ptr<RenderFrame> frame(frame_queue_->TakeFrame()); 104 std::shared_ptr<RenderFrame> frame(frame_queue_->TakeFrame());
105 DCHECK(frame); 105 DCHECK(frame);
106 rasterizer_->SubmitFrame(frame); 106 rasterizer_->SubmitFrame(frame);
107 } 107 }
108 108
109 } // namespace compositor 109 } // namespace compositor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698