| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 195 | 195 | 
| 196     populate_gpu_capabilities_callback_.Run( | 196     populate_gpu_capabilities_callback_.Run( | 
| 197         context_provider_->ContextCapabilities()); | 197         context_provider_->ContextCapabilities()); | 
| 198     return true; | 198     return true; | 
| 199   } | 199   } | 
| 200 | 200 | 
| 201   cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { | 201   cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { | 
| 202     return overlay_candidate_validator_.get(); | 202     return overlay_candidate_validator_.get(); | 
| 203   } | 203   } | 
| 204 | 204 | 
|  | 205   uint32_t GetFramebufferCopyTextureFormat() override { | 
|  | 206     auto* gl = static_cast<ContextProviderCommandBuffer*>(context_provider()); | 
|  | 207     return gl->GetCopyTextureInternalFormat(); | 
|  | 208   } | 
|  | 209 | 
| 205  private: | 210  private: | 
| 206   gpu::CommandBufferProxyImpl* GetCommandBufferProxy() { | 211   gpu::CommandBufferProxyImpl* GetCommandBufferProxy() { | 
| 207     ContextProviderCommandBuffer* provider_command_buffer = | 212     ContextProviderCommandBuffer* provider_command_buffer = | 
| 208         static_cast<content::ContextProviderCommandBuffer*>( | 213         static_cast<content::ContextProviderCommandBuffer*>( | 
| 209             context_provider_.get()); | 214             context_provider_.get()); | 
| 210     gpu::CommandBufferProxyImpl* command_buffer_proxy = | 215     gpu::CommandBufferProxyImpl* command_buffer_proxy = | 
| 211         provider_command_buffer->GetCommandBufferProxy(); | 216         provider_command_buffer->GetCommandBufferProxy(); | 
| 212     DCHECK(command_buffer_proxy); | 217     DCHECK(command_buffer_proxy); | 
| 213     return command_buffer_proxy; | 218     return command_buffer_proxy; | 
| 214   } | 219   } | 
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 799 void CompositorImpl::SetNeedsAnimate() { | 804 void CompositorImpl::SetNeedsAnimate() { | 
| 800   needs_animate_ = true; | 805   needs_animate_ = true; | 
| 801   if (!host_->visible()) | 806   if (!host_->visible()) | 
| 802     return; | 807     return; | 
| 803 | 808 | 
| 804   TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); | 809   TRACE_EVENT0("compositor", "Compositor::SetNeedsAnimate"); | 
| 805   host_->SetNeedsAnimate(); | 810   host_->SetNeedsAnimate(); | 
| 806 } | 811 } | 
| 807 | 812 | 
| 808 }  // namespace content | 813 }  // namespace content | 
| OLD | NEW | 
|---|