| 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 29 matching lines...) Expand all Loading... |
| 40 #include "content/browser/gpu/gpu_surface_tracker.h" | 40 #include "content/browser/gpu/gpu_surface_tracker.h" |
| 41 #include "content/browser/renderer_host/render_widget_host_impl.h" | 41 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 42 #include "content/common/gpu/client/command_buffer_proxy_impl.h" | 42 #include "content/common/gpu/client/command_buffer_proxy_impl.h" |
| 43 #include "content/common/gpu/client/context_provider_command_buffer.h" | 43 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 44 #include "content/common/gpu/client/gl_helper.h" | 44 #include "content/common/gpu/client/gl_helper.h" |
| 45 #include "content/common/gpu/client/gpu_channel_host.h" | 45 #include "content/common/gpu/client/gpu_channel_host.h" |
| 46 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 46 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 47 #include "content/common/gpu/gpu_process_launch_causes.h" | 47 #include "content/common/gpu/gpu_process_launch_causes.h" |
| 48 #include "content/common/host_shared_bitmap_manager.h" | 48 #include "content/common/host_shared_bitmap_manager.h" |
| 49 #include "content/public/browser/android/compositor_client.h" | 49 #include "content/public/browser/android/compositor_client.h" |
| 50 #include "gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h" |
| 50 #include "gpu/command_buffer/client/context_support.h" | 51 #include "gpu/command_buffer/client/context_support.h" |
| 51 #include "gpu/command_buffer/client/gles2_interface.h" | 52 #include "gpu/command_buffer/client/gles2_interface.h" |
| 52 #include "third_party/khronos/GLES2/gl2.h" | 53 #include "third_party/khronos/GLES2/gl2.h" |
| 53 #include "third_party/khronos/GLES2/gl2ext.h" | 54 #include "third_party/khronos/GLES2/gl2ext.h" |
| 54 #include "third_party/skia/include/core/SkMallocPixelRef.h" | 55 #include "third_party/skia/include/core/SkMallocPixelRef.h" |
| 55 #include "ui/base/android/window_android.h" | 56 #include "ui/base/android/window_android.h" |
| 56 #include "ui/gfx/android/device_display_info.h" | 57 #include "ui/gfx/android/device_display_info.h" |
| 57 #include "ui/gfx/frame_time.h" | 58 #include "ui/gfx/frame_time.h" |
| 58 #include "webkit/common/gpu/context_provider_in_process.h" | 59 #include "webkit/common/gpu/context_provider_in_process.h" |
| 59 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.
h" | |
| 60 | 60 |
| 61 namespace content { | 61 namespace content { |
| 62 | 62 |
| 63 namespace { | 63 namespace { |
| 64 | 64 |
| 65 const unsigned int kMaxSwapBuffers = 2U; | 65 const unsigned int kMaxSwapBuffers = 2U; |
| 66 | 66 |
| 67 // Used to override capabilities_.adjust_deadline_for_parent to false | 67 // Used to override capabilities_.adjust_deadline_for_parent to false |
| 68 class OutputSurfaceWithoutParent : public cc::OutputSurface { | 68 class OutputSurfaceWithoutParent : public cc::OutputSurface { |
| 69 public: | 69 public: |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 | 695 |
| 696 void CompositorImpl::SetNeedsAnimate() { | 696 void CompositorImpl::SetNeedsAnimate() { |
| 697 needs_animate_ = true; | 697 needs_animate_ = true; |
| 698 if (!host_) | 698 if (!host_) |
| 699 return; | 699 return; |
| 700 | 700 |
| 701 host_->SetNeedsAnimate(); | 701 host_->SetNeedsAnimate(); |
| 702 } | 702 } |
| 703 | 703 |
| 704 } // namespace content | 704 } // namespace content |
| OLD | NEW |