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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Clear thumbnail cache instead of hiding static layer. Break out results of changing fullscreen stat… Created 3 years, 6 months 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
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"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Set the output surface bounds. 65 // Set the output surface bounds.
66 virtual void SetWindowBounds(const gfx::Size& size) = 0; 66 virtual void SetWindowBounds(const gfx::Size& size) = 0;
67 67
68 // Set the output surface which the compositor renders into. 68 // Set the output surface which the compositor renders into.
69 virtual void SetSurface(jobject surface) = 0; 69 virtual void SetSurface(jobject surface) = 0;
70 70
71 // Tells the view tree to assume a transparent background when rendering. 71 // Tells the view tree to assume a transparent background when rendering.
72 virtual void SetHasTransparentBackground(bool flag) = 0; 72 virtual void SetHasTransparentBackground(bool flag) = 0;
73 73
74 // Sets the background color of the SceneLayer.
Khushal 2017/06/23 03:09:51 nit: There is no scene layer here. "color of the c
steimel 2017/06/29 00:38:51 Done.
75 virtual void SetBackgroundColor(int color) = 0;
76
74 // Request layout and draw. You only need to call this if you need to trigger 77 // Request layout and draw. You only need to call this if you need to trigger
75 // Composite *without* having modified the layer tree. 78 // Composite *without* having modified the layer tree.
76 virtual void SetNeedsComposite() = 0; 79 virtual void SetNeedsComposite() = 0;
77 80
78 // Returns the UI resource provider associated with the compositor. 81 // Returns the UI resource provider associated with the compositor.
79 virtual ui::UIResourceProvider& GetUIResourceProvider() = 0; 82 virtual ui::UIResourceProvider& GetUIResourceProvider() = 0;
80 83
81 // Returns the resource manager associated with the compositor. 84 // Returns the resource manager associated with the compositor.
82 virtual ui::ResourceManager& GetResourceManager() = 0; 85 virtual ui::ResourceManager& GetResourceManager() = 0;
83 86
84 protected: 87 protected:
85 Compositor() {} 88 Compositor() {}
86 }; 89 };
87 90
88 } // namespace content 91 } // namespace content
89 92
90 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_ 93 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698