Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: content/public/browser/android/compositor.h

Issue 731133002: Upstream ResourceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/content_test_suite_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/public/browser/android/ui_resource_provider.h" 11 #include "content/public/browser/android/ui_resource_provider.h"
12 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 15
16 class SkBitmap; 16 class SkBitmap;
17 17
18 namespace cc { 18 namespace cc {
19 class Layer; 19 class Layer;
20 } 20 }
21 21
22 namespace gfx { 22 namespace gfx {
23 class JavaBitmap; 23 class JavaBitmap;
24 } 24 }
25 25
26 namespace ui {
27 class ResourceManager;
28 }
29
26 namespace content { 30 namespace content {
27 class CompositorClient; 31 class CompositorClient;
28 class UIResourceProvider; 32 class UIResourceProvider;
29 33
30 // An interface to the browser-side compositor. 34 // An interface to the browser-side compositor.
31 class CONTENT_EXPORT Compositor { 35 class CONTENT_EXPORT Compositor {
32 public: 36 public:
33 virtual ~Compositor() {} 37 virtual ~Compositor() {}
34 38
35 // Performs the global initialization needed before any compositor 39 // Performs the global initialization needed before any compositor
(...skipping 25 matching lines...) Expand all
61 // Tells the view tree to assume a transparent background when rendering. 65 // Tells the view tree to assume a transparent background when rendering.
62 virtual void SetHasTransparentBackground(bool flag) = 0; 66 virtual void SetHasTransparentBackground(bool flag) = 0;
63 67
64 // 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
65 // Composite *without* having modified the layer tree. 69 // Composite *without* having modified the layer tree.
66 virtual void SetNeedsComposite() = 0; 70 virtual void SetNeedsComposite() = 0;
67 71
68 // Returns the UI resource provider associated with the compositor. 72 // Returns the UI resource provider associated with the compositor.
69 virtual UIResourceProvider& GetUIResourceProvider() = 0; 73 virtual UIResourceProvider& GetUIResourceProvider() = 0;
70 74
75 // Returns the resource manager associated with the compositor.
76 virtual ui::ResourceManager& GetResourceManager() = 0;
77
71 protected: 78 protected:
72 Compositor() {} 79 Compositor() {}
73 }; 80 };
74 81
75 } // namespace content 82 } // namespace content
76 83
77 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ 84 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/test/content_test_suite_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698