| 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 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ | 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "cc/resources/ui_resource_bitmap.h" | 9 #include "cc/resources/ui_resource_bitmap.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "ui/android/resources/ui_resource_provider.h" | 11 #include "ui/android/resources/ui_resource_provider.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
| 13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 | 15 |
| 16 class SkBitmap; | |
| 17 | |
| 18 namespace cc { | 16 namespace cc { |
| 19 class Layer; | 17 class Layer; |
| 20 } | 18 } |
| 21 | 19 |
| 22 namespace gfx { | |
| 23 class JavaBitmap; | |
| 24 } | |
| 25 | |
| 26 namespace ui { | 20 namespace ui { |
| 27 class ResourceManager; | 21 class ResourceManager; |
| 28 class UIResourceProvider; | 22 class UIResourceProvider; |
| 29 } | 23 } |
| 30 | 24 |
| 31 namespace content { | 25 namespace content { |
| 32 class CompositorClient; | 26 class CompositorClient; |
| 33 | 27 |
| 34 // An interface to the browser-side compositor. | 28 // An interface to the browser-side compositor. |
| 35 class CONTENT_EXPORT Compositor { | 29 class CONTENT_EXPORT Compositor { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Returns the resource manager associated with the compositor. | 64 // Returns the resource manager associated with the compositor. |
| 71 virtual ui::ResourceManager& GetResourceManager() = 0; | 65 virtual ui::ResourceManager& GetResourceManager() = 0; |
| 72 | 66 |
| 73 protected: | 67 protected: |
| 74 Compositor() {} | 68 Compositor() {} |
| 75 }; | 69 }; |
| 76 | 70 |
| 77 } // namespace content | 71 } // namespace content |
| 78 | 72 |
| 79 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ | 73 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ |
| OLD | NEW |