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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 14210004: Consolidate UpdateFrameInfo and SwapCompositorFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 204145c773647024dade3629fe31daaf9bc4fbd1..293b2636d6b5c524be6a94c98d7b2ee3954283f5 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -158,7 +158,6 @@ ContentViewCoreImpl::ContentViewCoreImpl(JNIEnv* env, jobject obj,
root_layer_(cc::Layer::Create()),
tab_crashed_(false),
input_events_delivered_at_vsync_(input_events_delivered_at_vsync),
- renderer_frame_pending_(false),
window_android_(window_android) {
CHECK(web_contents) <<
"A ContentViewCoreImpl should be created with a valid WebContents.";
@@ -667,10 +666,6 @@ void ContentViewCoreImpl::RemoveLayer(scoped_refptr<cc::Layer> layer) {
layer->RemoveFromParent();
}
-void ContentViewCoreImpl::DidProduceRendererFrame() {
- renderer_frame_pending_ = true;
-}
-
void ContentViewCoreImpl::LoadUrl(
NavigationController::LoadURLParams& params) {
GetWebContents()->GetController().LoadURLWithParams(params);
@@ -1212,13 +1207,6 @@ jboolean ContentViewCoreImpl::IsShowingInterstitialPage(JNIEnv* env,
return web_contents_->ShowingInterstitialPage();
}
-jboolean ContentViewCoreImpl::ConsumePendingRendererFrame(JNIEnv* env,
- jobject obj) {
- bool had_pending_frame = renderer_frame_pending_;
- renderer_frame_pending_ = false;
- return had_pending_frame;
-}
-
void ContentViewCoreImpl::AttachExternalVideoSurface(JNIEnv* env,
jobject obj,
jint player_id,

Powered by Google App Engine
This is Rietveld 408576698