| OLD | NEW |
| 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 | 807 |
| 808 void CompositorImpl::SetNeedsAnimate() { | 808 void CompositorImpl::SetNeedsAnimate() { |
| 809 needs_animate_ = true; | 809 needs_animate_ = true; |
| 810 if (!host_->IsVisible()) | 810 if (!host_->IsVisible()) |
| 811 return; | 811 return; |
| 812 | 812 |
| 813 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); | 813 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); |
| 814 host_->SetNeedsAnimate(); | 814 host_->SetNeedsAnimate(); |
| 815 } | 815 } |
| 816 | 816 |
| 817 uint32_t CompositorImpl::GetSurfaceClientId() { |
| 818 return surface_id_allocator_->client_id(); |
| 819 } |
| 820 |
| 817 bool CompositorImpl::HavePendingReadbacks() { | 821 bool CompositorImpl::HavePendingReadbacks() { |
| 818 return !readback_layer_tree_->children().empty(); | 822 return !readback_layer_tree_->children().empty(); |
| 819 } | 823 } |
| 820 | 824 |
| 821 } // namespace content | 825 } // namespace content |
| OLD | NEW |