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 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 } | 333 } |
334 | 334 |
335 void CompositorImpl::OnGpuChannelEstablished() { | 335 void CompositorImpl::OnGpuChannelEstablished() { |
336 ScheduleComposite(); | 336 ScheduleComposite(); |
337 } | 337 } |
338 | 338 |
339 UIResourceProvider& CompositorImpl::GetUIResourceProvider() { | 339 UIResourceProvider& CompositorImpl::GetUIResourceProvider() { |
340 return ui_resource_provider_; | 340 return ui_resource_provider_; |
341 } | 341 } |
342 | 342 |
| 343 ui::SystemUIResourceManager& CompositorImpl::GetSystemUIResourceManager() { |
| 344 return ui_resource_provider_.GetSystemUIResourceManager(); |
| 345 } |
| 346 |
343 void CompositorImpl::SetRootLayer(scoped_refptr<cc::Layer> root_layer) { | 347 void CompositorImpl::SetRootLayer(scoped_refptr<cc::Layer> root_layer) { |
344 root_layer_->RemoveAllChildren(); | 348 root_layer_->RemoveAllChildren(); |
345 if (root_layer) | 349 if (root_layer) |
346 root_layer_->AddChild(root_layer); | 350 root_layer_->AddChild(root_layer); |
347 } | 351 } |
348 | 352 |
349 void CompositorImpl::SetWindowSurface(ANativeWindow* window) { | 353 void CompositorImpl::SetWindowSurface(ANativeWindow* window) { |
350 GpuSurfaceTracker* tracker = GpuSurfaceTracker::Get(); | 354 GpuSurfaceTracker* tracker = GpuSurfaceTracker::Get(); |
351 | 355 |
352 if (window_) { | 356 if (window_) { |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 } | 621 } |
618 | 622 |
619 void CompositorImpl::SetNeedsAnimate() { | 623 void CompositorImpl::SetNeedsAnimate() { |
620 if (!host_) | 624 if (!host_) |
621 return; | 625 return; |
622 | 626 |
623 host_->SetNeedsAnimate(); | 627 host_->SetNeedsAnimate(); |
624 } | 628 } |
625 | 629 |
626 } // namespace content | 630 } // namespace content |
OLD | NEW |