| 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 | 10 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 client_->CommitVSyncParameters(timebase, interval); | 219 client_->CommitVSyncParameters(timebase, interval); |
| 220 } | 220 } |
| 221 | 221 |
| 222 private: | 222 private: |
| 223 CompositorImpl* compositor_; | 223 CompositorImpl* compositor_; |
| 224 base::Callback<void(gpu::Capabilities)> populate_gpu_capabilities_callback_; | 224 base::Callback<void(gpu::Capabilities)> populate_gpu_capabilities_callback_; |
| 225 base::CancelableCallback<void( | 225 base::CancelableCallback<void( |
| 226 const std::vector<ui::LatencyInfo>&, | 226 const std::vector<ui::LatencyInfo>&, |
| 227 gfx::SwapResult, | 227 gfx::SwapResult, |
| 228 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)> | 228 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)> |
| 229 swap_buffers_completion_callback_; | 229 swap_buffers_completion_callback_; |
| 230 std::unique_ptr<cc::OverlayCandidateValidator> overlay_candidate_validator_; | 230 std::unique_ptr<cc::OverlayCandidateValidator> overlay_candidate_validator_; |
| 231 std::unique_ptr<ExternalBeginFrameSource> begin_frame_source_; | 231 std::unique_ptr<ExternalBeginFrameSource> begin_frame_source_; |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 #if defined(ENABLE_VULKAN) | 234 #if defined(ENABLE_VULKAN) |
| 235 class VulkanOutputSurface : public cc::OutputSurface { | 235 class VulkanOutputSurface : public cc::OutputSurface { |
| 236 public: | 236 public: |
| 237 VulkanOutputSurface( | 237 VulkanOutputSurface( |
| 238 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider) | 238 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider) |
| 239 : OutputSurface(nullptr, | 239 : OutputSurface(nullptr, |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 void CompositorImpl::SetNeedsAnimate() { | 789 void CompositorImpl::SetNeedsAnimate() { |
| 790 needs_animate_ = true; | 790 needs_animate_ = true; |
| 791 if (!host_->visible()) | 791 if (!host_->visible()) |
| 792 return; | 792 return; |
| 793 | 793 |
| 794 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); | 794 TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); |
| 795 host_->SetNeedsAnimate(); | 795 host_->SetNeedsAnimate(); |
| 796 } | 796 } |
| 797 | 797 |
| 798 } // namespace content | 798 } // namespace content |
| OLD | NEW |