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

Side by Side Diff: chrome/browser/android/compositor/layer/content_layer.h

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Assume true/false when updating fullscreen state 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_LAYER_CONTENT_LAYER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTENT_LAYER_H_
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTENT_LAYER_H_ 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTENT_LAYER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 // Sub layer tree representation of the contents of a tab. 23 // Sub layer tree representation of the contents of a tab.
24 // Contains logic to temporarily display a static thumbnail 24 // Contains logic to temporarily display a static thumbnail
25 // when the content layer is not available. 25 // when the content layer is not available.
26 // To specialize call SetProperties. 26 // To specialize call SetProperties.
27 class ContentLayer : public Layer { 27 class ContentLayer : public Layer {
28 public: 28 public:
29 static scoped_refptr<ContentLayer> Create( 29 static scoped_refptr<ContentLayer> Create(
30 TabContentManager* tab_content_manager); 30 TabContentManager* tab_content_manager);
31 void SetProperties(int id, 31 void SetProperties(int id,
32 bool can_use_live_layer, 32 bool can_use_live_layer,
33 bool can_use_static_layer,
33 float static_to_view_blend, 34 float static_to_view_blend,
34 bool should_override_content_alpha, 35 bool should_override_content_alpha,
35 float content_alpha_override, 36 float content_alpha_override,
36 float saturation, 37 float saturation,
37 bool should_clip, 38 bool should_clip,
38 const gfx::Rect& clip); 39 const gfx::Rect& clip);
39 40
40 scoped_refptr<cc::Layer> layer() override; 41 scoped_refptr<cc::Layer> layer() override;
41 42
42 gfx::Size ComputeSize(int id) const; 43 gfx::Size ComputeSize(int id) const;
43 44
44 protected: 45 protected:
45 explicit ContentLayer(TabContentManager* tab_content_manager); 46 explicit ContentLayer(TabContentManager* tab_content_manager);
46 ~ContentLayer() override; 47 ~ContentLayer() override;
47 48
48 private: 49 private:
49 // This is an intermediate shim layer whose children are 50 // This is an intermediate shim layer whose children are
50 // both the static and content layers (or either, or none, depending on which 51 // both the static and content layers (or either, or none, depending on which
51 // is available). 52 // is available).
52 scoped_refptr<cc::Layer> layer_; 53 scoped_refptr<cc::Layer> layer_;
53 54
54 TabContentManager* tab_content_manager_; 55 TabContentManager* tab_content_manager_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(ContentLayer); 57 DISALLOW_COPY_AND_ASSIGN(ContentLayer);
57 }; 58 };
58 59
59 } // namespace android 60 } // namespace android
60 61
61 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTENT_LAYER_H_ 62 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_LAYER_CONTENT_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698