| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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/blink/webgraphicscontext3d_in_process_command_buffer_impl.h" |
| 51 #include "gpu/command_buffer/client/context_support.h" | 51 #include "gpu/command_buffer/client/context_support.h" |
| 52 #include "gpu/command_buffer/client/gles2_interface.h" | 52 #include "gpu/command_buffer/client/gles2_interface.h" |
| 53 #include "third_party/khronos/GLES2/gl2.h" | 53 #include "third_party/khronos/GLES2/gl2.h" |
| 54 #include "third_party/khronos/GLES2/gl2ext.h" | 54 #include "third_party/khronos/GLES2/gl2ext.h" |
| 55 #include "third_party/skia/include/core/SkMallocPixelRef.h" | 55 #include "third_party/skia/include/core/SkMallocPixelRef.h" |
| 56 #include "ui/base/android/window_android.h" | 56 #include "ui/android/window_android.h" |
| 57 #include "ui/gfx/android/device_display_info.h" | 57 #include "ui/gfx/android/device_display_info.h" |
| 58 #include "ui/gfx/frame_time.h" | 58 #include "ui/gfx/frame_time.h" |
| 59 #include "webkit/common/gpu/context_provider_in_process.h" | 59 #include "webkit/common/gpu/context_provider_in_process.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 |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 | 693 |
| 694 void CompositorImpl::SetNeedsAnimate() { | 694 void CompositorImpl::SetNeedsAnimate() { |
| 695 needs_animate_ = true; | 695 needs_animate_ = true; |
| 696 if (!host_) | 696 if (!host_) |
| 697 return; | 697 return; |
| 698 | 698 |
| 699 host_->SetNeedsAnimate(); | 699 host_->SetNeedsAnimate(); |
| 700 } | 700 } |
| 701 | 701 |
| 702 } // namespace content | 702 } // namespace content |
| OLD | NEW |