| 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" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Request layout and draw. You only need to call this if you need to trigger | 68 // Request layout and draw. You only need to call this if you need to trigger |
| 69 // Composite *without* having modified the layer tree. | 69 // Composite *without* having modified the layer tree. |
| 70 virtual void SetNeedsComposite() = 0; | 70 virtual void SetNeedsComposite() = 0; |
| 71 | 71 |
| 72 // Returns the UI resource provider associated with the compositor. | 72 // Returns the UI resource provider associated with the compositor. |
| 73 virtual ui::UIResourceProvider& GetUIResourceProvider() = 0; | 73 virtual ui::UIResourceProvider& GetUIResourceProvider() = 0; |
| 74 | 74 |
| 75 // Returns the resource manager associated with the compositor. | 75 // Returns the resource manager associated with the compositor. |
| 76 virtual ui::ResourceManager& GetResourceManager() = 0; | 76 virtual ui::ResourceManager& GetResourceManager() = 0; |
| 77 | 77 |
| 78 // Pause the compositor, for the cases, e.g., when you want to make sure that |
| 79 // tab is visible even when you are releasing resources in stopping the |
| 80 // activity. |
| 81 virtual void Pause() = 0; |
| 82 |
| 83 // Resume the compositor. |
| 84 virtual void Resume() = 0; |
| 85 |
| 78 protected: | 86 protected: |
| 79 Compositor() {} | 87 Compositor() {} |
| 80 }; | 88 }; |
| 81 | 89 |
| 82 } // namespace content | 90 } // namespace content |
| 83 | 91 |
| 84 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ | 92 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ |
| OLD | NEW |