| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_COMPOSITOR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_COMPOSITOR_VIEW_H_ |
| 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_COMPOSITOR_VIEW_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_COMPOSITOR_VIEW_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "base/containers/scoped_ptr_hash_map.h" | 12 #include "base/containers/scoped_ptr_hash_map.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "cc/layers/layer_collections.h" | 15 #include "cc/layers/layer_collections.h" |
| 16 #include "cc/resources/ui_resource_client.h" | 16 #include "cc/resources/ui_resource_client.h" |
| 17 #include "content/public/browser/android/compositor_client.h" | 17 #include "content/public/browser/android/compositor_client.h" |
| 18 #include "content/public/browser/browser_child_process_observer.h" | 18 #include "content/public/browser/browser_child_process_observer.h" |
| 19 #include "third_party/skia/include/core/SkColor.h" | 19 #include "third_party/skia/include/core/SkColor.h" |
| 20 | 20 |
| 21 class DecorationBackground; | |
| 22 class DecorationCounter; | |
| 23 class SkBitmap; | |
| 24 class TabLayerContainer; | |
| 25 | |
| 26 namespace cc { | 21 namespace cc { |
| 27 class Layer; | 22 class Layer; |
| 28 class SolidColorLayer; | 23 class SolidColorLayer; |
| 29 class TextureLayer; | |
| 30 class UIResourceBitmap; | |
| 31 } | |
| 32 | |
| 33 namespace gfx { | |
| 34 class JavaBitmap; | |
| 35 } | 24 } |
| 36 | 25 |
| 37 namespace content { | 26 namespace content { |
| 38 class Compositor; | 27 class Compositor; |
| 39 } | 28 } |
| 40 | 29 |
| 41 namespace ui { | 30 namespace ui { |
| 42 class WindowAndroid; | 31 class WindowAndroid; |
| 43 class ResourceManager; | 32 class ResourceManager; |
| 44 class UIResourceProvider; | 33 class UIResourceProvider; |
| 45 } | 34 } |
| 46 | 35 |
| 47 namespace android { | 36 namespace android { |
| 48 | 37 |
| 49 class LayerTitleCache; | |
| 50 class SceneLayer; | 38 class SceneLayer; |
| 51 class TabContentManager; | 39 class TabContentManager; |
| 52 class ToolbarLayer; | |
| 53 | 40 |
| 54 class CompositorView : public content::CompositorClient, | 41 class CompositorView : public content::CompositorClient, |
| 55 public content::BrowserChildProcessObserver { | 42 public content::BrowserChildProcessObserver { |
| 56 public: | 43 public: |
| 57 CompositorView(JNIEnv* env, | 44 CompositorView(JNIEnv* env, |
| 58 jobject obj, | 45 jobject obj, |
| 59 jboolean low_mem_device, | 46 jboolean low_mem_device, |
| 60 ui::WindowAndroid* window_android, | 47 ui::WindowAndroid* window_android, |
| 61 TabContentManager* tab_content_manager); | 48 TabContentManager* tab_content_manager); |
| 62 | 49 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 base::WeakPtrFactory<CompositorView> weak_factory_; | 109 base::WeakPtrFactory<CompositorView> weak_factory_; |
| 123 | 110 |
| 124 DISALLOW_COPY_AND_ASSIGN(CompositorView); | 111 DISALLOW_COPY_AND_ASSIGN(CompositorView); |
| 125 }; | 112 }; |
| 126 | 113 |
| 127 bool RegisterCompositorView(JNIEnv* env); | 114 bool RegisterCompositorView(JNIEnv* env); |
| 128 | 115 |
| 129 } // namespace android | 116 } // namespace android |
| 130 | 117 |
| 131 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_COMPOSITOR_VIEW_H_ | 118 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_COMPOSITOR_VIEW_H_ |
| OLD | NEW |