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

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
« no previous file with comments | « remoting/ios/display/gl_display_handler.h ('k') | remoting/ios/session/remoting_client.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 [eagl_context_ presentRenderbuffer:GL_RENDERBUFFER]; 151 [eagl_context_ presentRenderbuffer:GL_RENDERBUFFER];
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 _core->GetWeakPtr(), delegate)); 280 _core->GetWeakPtr(), delegate));
278 } 281 }
279 282
280 - (id<GlDisplayHandlerDelegate>)delegate { 283 - (id<GlDisplayHandlerDelegate>)delegate {
281 // Implementation is still required for UNAVAILABLE_ATTRIBUTE. 284 // Implementation is still required for UNAVAILABLE_ATTRIBUTE.
282 NOTREACHED(); 285 NOTREACHED();
283 return nil; 286 return nil;
284 } 287 }
285 288
286 @end 289 @end
OLDNEW
« no previous file with comments | « remoting/ios/display/gl_display_handler.h ('k') | remoting/ios/session/remoting_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698