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

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

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make this Android CL independent from the ChromeOS CL. Created 5 years, 11 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 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void DidFailToInitializeOutputSurface(); 128 void DidFailToInitializeOutputSurface();
129 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( 129 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl(
130 LayerTreeHostImplClient* client); 130 LayerTreeHostImplClient* client);
131 void DidLoseOutputSurface(); 131 void DidLoseOutputSurface();
132 bool output_surface_lost() const { return output_surface_lost_; } 132 bool output_surface_lost() const { return output_surface_lost_; }
133 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } 133 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); }
134 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } 134 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); }
135 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); 135 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider);
136 bool UpdateLayers(ResourceUpdateQueue* queue); 136 bool UpdateLayers(ResourceUpdateQueue* queue);
137 137
138 // Called when the compositor completed page scale animation.
139 void DidCompletePageScaleAnimation();
140
138 LayerTreeHostClient* client() { return client_; } 141 LayerTreeHostClient* client() { return client_; }
139 const base::WeakPtr<InputHandler>& GetInputHandler() { 142 const base::WeakPtr<InputHandler>& GetInputHandler() {
140 return input_handler_weak_ptr_; 143 return input_handler_weak_ptr_;
141 } 144 }
142 145
143 void NotifyInputThrottledUntilCommit(); 146 void NotifyInputThrottledUntilCommit();
144 147
145 void Composite(base::TimeTicks frame_begin_time); 148 void Composite(base::TimeTicks frame_begin_time);
146 149
147 void FinishAllRendering(); 150 void FinishAllRendering();
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 // covered by layers. 443 // covered by layers.
441 scoped_ptr<ScopedUIResource> overhang_ui_resource_; 444 scoped_ptr<ScopedUIResource> overhang_ui_resource_;
442 445
443 typedef ScopedPtrVector<PrioritizedResource> TextureList; 446 typedef ScopedPtrVector<PrioritizedResource> TextureList;
444 size_t partial_texture_update_requests_; 447 size_t partial_texture_update_requests_;
445 448
446 scoped_ptr<AnimationRegistrar> animation_registrar_; 449 scoped_ptr<AnimationRegistrar> animation_registrar_;
447 450
448 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 451 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
449 452
453 // If set, then page scale animation has completed, but the client hasn't been
454 // notified about it yet.
455 bool did_complete_scale_animation_;
456
450 bool in_paint_layer_contents_; 457 bool in_paint_layer_contents_;
451 458
452 static const int kTotalFramesToUseForLCDTextMetrics = 50; 459 static const int kTotalFramesToUseForLCDTextMetrics = 50;
453 int total_frames_used_for_lcd_text_metrics_; 460 int total_frames_used_for_lcd_text_metrics_;
454 461
455 struct LCDTextMetrics { 462 struct LCDTextMetrics {
456 LCDTextMetrics() 463 LCDTextMetrics()
457 : total_num_cc_layers(0), 464 : total_num_cc_layers(0),
458 total_num_cc_layers_can_use_lcd_text(0), 465 total_num_cc_layers_can_use_lcd_text(0),
459 total_num_cc_layers_will_use_lcd_text(0) {} 466 total_num_cc_layers_will_use_lcd_text(0) {}
(...skipping 22 matching lines...) Expand all
482 489
483 uint32_t surface_id_namespace_; 490 uint32_t surface_id_namespace_;
484 uint32_t next_surface_sequence_; 491 uint32_t next_surface_sequence_;
485 492
486 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 493 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
487 }; 494 };
488 495
489 } // namespace cc 496 } // namespace cc
490 497
491 #endif // CC_TREES_LAYER_TREE_HOST_H_ 498 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698