| 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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |