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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 11861008: Expose the capturePicture feature in RenderView for Android WebView legacy API support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed sync IPC issues. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 ret = WebKit::WebToCCInputHandlerAdapter::create(web_handler.Pass()); 351 ret = WebKit::WebToCCInputHandlerAdapter::create(web_handler.Pass());
352 return ret.Pass(); 352 return ret.Pass();
353 } 353 }
354 354
355 // TODO(jamesr): This should go through WebWidget 355 // TODO(jamesr): This should go through WebWidget
356 void RenderWidgetCompositor::willCommit() { 356 void RenderWidgetCompositor::willCommit() {
357 client_->willCommit(); 357 client_->willCommit();
358 } 358 }
359 359
360 void RenderWidgetCompositor::didCommit() { 360 void RenderWidgetCompositor::didCommit() {
361 // TODO(jamesr): There is no chromium-side implementation of this first call, 361 widget_->DidCommitCompositorFrame();
362 // remove if it's not needed.
363 widget_->didCommitCompositorFrame();
364 widget_->didBecomeReadyForAdditionalInput(); 362 widget_->didBecomeReadyForAdditionalInput();
365 } 363 }
366 364
367 void RenderWidgetCompositor::didCommitAndDrawFrame() { 365 void RenderWidgetCompositor::didCommitAndDrawFrame() {
368 widget_->didCommitAndDrawCompositorFrame(); 366 widget_->didCommitAndDrawCompositorFrame();
369 } 367 }
370 368
371 void RenderWidgetCompositor::didCompleteSwapBuffers() { 369 void RenderWidgetCompositor::didCompleteSwapBuffers() {
372 widget_->didCompleteSwapBuffers(); 370 widget_->didCompleteSwapBuffers();
373 } 371 }
374 372
375 // TODO(jamesr): This goes through WebViewImpl just to do suppression, refactor 373 // TODO(jamesr): This goes through WebViewImpl just to do suppression, refactor
376 // that piece out. 374 // that piece out.
377 void RenderWidgetCompositor::scheduleComposite() { 375 void RenderWidgetCompositor::scheduleComposite() {
378 client_->scheduleComposite(); 376 client_->scheduleComposite();
379 } 377 }
380 378
381 } // namespace content 379 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698