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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2369643002: Fix OOPIFs on Android (Closed)
Patch Set: Add conditional for WebView shutdown Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/renderer_host/compositor_impl_android.h" 5 #include "content/browser/renderer_host/compositor_impl_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 819
820 void CompositorImpl::SetNeedsAnimate() { 820 void CompositorImpl::SetNeedsAnimate() {
821 needs_animate_ = true; 821 needs_animate_ = true;
822 if (!host_->IsVisible()) 822 if (!host_->IsVisible())
823 return; 823 return;
824 824
825 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); 825 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate");
826 host_->SetNeedsAnimate(); 826 host_->SetNeedsAnimate();
827 } 827 }
828 828
829 uint32_t CompositorImpl::GetSurfaceClientId() {
830 return surface_id_allocator_->client_id();
831 }
832
829 bool CompositorImpl::HavePendingReadbacks() { 833 bool CompositorImpl::HavePendingReadbacks() {
830 return !readback_layer_tree_->children().empty(); 834 return !readback_layer_tree_->children().empty();
831 } 835 }
832 836
833 } // namespace content 837 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698