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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 407433002: Don't drop all children when changing Android root layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 6 years, 5 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
« no previous file with comments | « no previous file | content/browser/renderer_host/compositor_impl_android.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_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/cancelable_callback.h" 9 #include "base/cancelable_callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 current_composite_task_->Cancel(); 125 current_composite_task_->Cancel();
126 current_composite_task_.reset(); 126 current_composite_task_.reset();
127 composite_on_vsync_trigger_ = DO_NOT_COMPOSITE; 127 composite_on_vsync_trigger_ = DO_NOT_COMPOSITE;
128 will_composite_immediately_ = false; 128 will_composite_immediately_ = false;
129 } 129 }
130 cc::UIResourceId GenerateUIResourceFromUIResourceBitmap( 130 cc::UIResourceId GenerateUIResourceFromUIResourceBitmap(
131 const cc::UIResourceBitmap& bitmap, 131 const cc::UIResourceBitmap& bitmap,
132 bool is_transient); 132 bool is_transient);
133 void OnGpuChannelEstablished(); 133 void OnGpuChannelEstablished();
134 134
135 // root_layer_ is the persistent internal root layer, while subroot_layer_
136 // is the one attached by the compositor client.
135 scoped_refptr<cc::Layer> root_layer_; 137 scoped_refptr<cc::Layer> root_layer_;
138 scoped_refptr<cc::Layer> subroot_layer_;
139
136 scoped_ptr<cc::LayerTreeHost> host_; 140 scoped_ptr<cc::LayerTreeHost> host_;
137 content::UIResourceProviderImpl ui_resource_provider_; 141 content::UIResourceProviderImpl ui_resource_provider_;
138 142
139 gfx::Size size_; 143 gfx::Size size_;
140 bool has_transparent_background_; 144 bool has_transparent_background_;
141 float device_scale_factor_; 145 float device_scale_factor_;
142 146
143 ANativeWindow* window_; 147 ANativeWindow* window_;
144 int surface_id_; 148 int surface_id_;
145 149
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 base::TimeTicks last_vsync_; 182 base::TimeTicks last_vsync_;
179 183
180 base::WeakPtrFactory<CompositorImpl> weak_factory_; 184 base::WeakPtrFactory<CompositorImpl> weak_factory_;
181 185
182 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 186 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
183 }; 187 };
184 188
185 } // namespace content 189 } // namespace content
186 190
187 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 191 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698