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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 1194623003: cc: Remove contents_texture_manager from LayerTreeHost(Impl) and proxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentstexturemanager: rebase Created 5 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
« no previous file with comments | « cc/test/fake_layer_tree_host_impl_client.cc ('k') | cc/trees/layer_tree_host.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void SetOutputSurface(scoped_ptr<OutputSurface> output_surface); 114 void SetOutputSurface(scoped_ptr<OutputSurface> output_surface);
115 void RequestNewOutputSurface(); 115 void RequestNewOutputSurface();
116 void DidInitializeOutputSurface(); 116 void DidInitializeOutputSurface();
117 void DidFailToInitializeOutputSurface(); 117 void DidFailToInitializeOutputSurface();
118 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( 118 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl(
119 LayerTreeHostImplClient* client); 119 LayerTreeHostImplClient* client);
120 void DidLoseOutputSurface(); 120 void DidLoseOutputSurface();
121 bool output_surface_lost() const { return output_surface_lost_; } 121 bool output_surface_lost() const { return output_surface_lost_; }
122 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } 122 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); }
123 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } 123 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); }
124 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider);
125 bool UpdateLayers(); 124 bool UpdateLayers();
126 125
127 // Called when the compositor completed page scale animation. 126 // Called when the compositor completed page scale animation.
128 void DidCompletePageScaleAnimation(); 127 void DidCompletePageScaleAnimation();
129 128
130 LayerTreeHostClient* client() { return client_; } 129 LayerTreeHostClient* client() { return client_; }
131 const base::WeakPtr<InputHandler>& GetInputHandler() { 130 const base::WeakPtr<InputHandler>& GetInputHandler() {
132 return input_handler_weak_ptr_; 131 return input_handler_weak_ptr_;
133 } 132 }
134 133
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 float page_scale_factor() const { return page_scale_factor_; } 219 float page_scale_factor() const { return page_scale_factor_; }
221 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; } 220 gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; }
222 221
223 SkColor background_color() const { return background_color_; } 222 SkColor background_color() const { return background_color_; }
224 void set_background_color(SkColor color) { background_color_ = color; } 223 void set_background_color(SkColor color) { background_color_ = color; }
225 224
226 void set_has_transparent_background(bool transparent) { 225 void set_has_transparent_background(bool transparent) {
227 has_transparent_background_ = transparent; 226 has_transparent_background_ = transparent;
228 } 227 }
229 228
230 PrioritizedResourceManager* contents_texture_manager() const {
231 return contents_texture_manager_.get();
232 }
233
234 void SetVisible(bool visible); 229 void SetVisible(bool visible);
235 bool visible() const { return visible_; } 230 bool visible() const { return visible_; }
236 231
237 void SetThrottleFrameProduction(bool throttle); 232 void SetThrottleFrameProduction(bool throttle);
238 233
239 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, 234 void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
240 bool use_anchor, 235 bool use_anchor,
241 float scale, 236 float scale,
242 base::TimeDelta duration); 237 base::TimeDelta duration);
243 238
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 390
396 int source_frame_number_; 391 int source_frame_number_;
397 int meta_information_sequence_number_; 392 int meta_information_sequence_number_;
398 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; 393 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_;
399 394
400 bool output_surface_lost_; 395 bool output_surface_lost_;
401 396
402 scoped_refptr<Layer> root_layer_; 397 scoped_refptr<Layer> root_layer_;
403 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; 398 scoped_refptr<HeadsUpDisplayLayer> hud_layer_;
404 399
405 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_;
406 scoped_ptr<PrioritizedResource> surface_memory_placeholder_;
407
408 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 400 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
409 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; 401 base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_;
410 402
411 const LayerTreeSettings settings_; 403 const LayerTreeSettings settings_;
412 LayerTreeDebugState debug_state_; 404 LayerTreeDebugState debug_state_;
413 405
414 gfx::Size device_viewport_size_; 406 gfx::Size device_viewport_size_;
415 bool top_controls_shrink_blink_size_; 407 bool top_controls_shrink_blink_size_;
416 float top_controls_height_; 408 float top_controls_height_;
417 float top_controls_shown_ratio_; 409 float top_controls_shown_ratio_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 458
467 uint32_t surface_id_namespace_; 459 uint32_t surface_id_namespace_;
468 uint32_t next_surface_sequence_; 460 uint32_t next_surface_sequence_;
469 461
470 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 462 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
471 }; 463 };
472 464
473 } // namespace cc 465 } // namespace cc
474 466
475 #endif // CC_TREES_LAYER_TREE_HOST_H_ 467 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_impl_client.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698