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

Side by Side Diff: remoting/ios/display/gl_display_handler.mm

Issue 2869723007: [CRD iOS] Viewport fling animation (Closed)
Patch Set: Merge branch 'master' into feat-fling-animation Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #if !defined(__has_feature) || !__has_feature(objc_arc) 5 #if !defined(__has_feature) || !__has_feature(objc_arc)
6 #error "This file requires ARC support." 6 #error "This file requires ARC support."
7 #endif 7 #endif
8 8
9 #include <array> 9 #include <array>
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 143
144 void Core::OnFrameReceived(std::unique_ptr<webrtc::DesktopFrame> frame, 144 void Core::OnFrameReceived(std::unique_ptr<webrtc::DesktopFrame> frame,
145 const base::Closure& done) { 145 const base::Closure& done) {
146 DCHECK(runtime_->display_task_runner()->BelongsToCurrentThread()); 146 DCHECK(runtime_->display_task_runner()->BelongsToCurrentThread());
147 renderer_->OnFrameReceived(std::move(frame), done); 147 renderer_->OnFrameReceived(std::move(frame), done);
148 } 148 }
149 149
150 void Core::OnFrameRendered() { 150 void Core::OnFrameRendered() {
151 [gl_view_ display]; 151 [gl_view_ display];
152 runtime_->ui_task_runner()->PostTask(FROM_HERE, base::BindBlockArc(^() {
153 [handler_delegate_ rendererTicked];
154 }));
152 } 155 }
153 156
154 void Core::OnSizeChanged(int width, int height) { 157 void Core::OnSizeChanged(int width, int height) {
155 DCHECK(runtime_->display_task_runner()->BelongsToCurrentThread()); 158 DCHECK(runtime_->display_task_runner()->BelongsToCurrentThread());
156 runtime_->ui_task_runner()->PostTask( 159 runtime_->ui_task_runner()->PostTask(
157 FROM_HERE, base::BindBlockArc(^() { 160 FROM_HERE, base::BindBlockArc(^() {
158 [handler_delegate_ canvasSizeChanged:CGSizeMake(width, height)]; 161 [handler_delegate_ canvasSizeChanged:CGSizeMake(width, height)];
159 })); 162 }));
160 } 163 }
161 164
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 _core->GetWeakPtr(), delegate)); 274 _core->GetWeakPtr(), delegate));
272 } 275 }
273 276
274 - (id<GlDisplayHandlerDelegate>)delegate { 277 - (id<GlDisplayHandlerDelegate>)delegate {
275 // Implementation is still required for UNAVAILABLE_ATTRIBUTE. 278 // Implementation is still required for UNAVAILABLE_ATTRIBUTE.
276 NOTREACHED(); 279 NOTREACHED();
277 return nil; 280 return nil;
278 } 281 }
279 282
280 @end 283 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698