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

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

Issue 151093005: cc: Update Main RendererCapabilities on DeferredInitialize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with tests Created 6 years, 10 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 | Annotate | Revision Log
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 <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 LayerTreeHostImplClient* client); 122 LayerTreeHostImplClient* client);
123 void DidLoseOutputSurface(); 123 void DidLoseOutputSurface();
124 bool output_surface_lost() const { return output_surface_lost_; } 124 bool output_surface_lost() const { return output_surface_lost_; }
125 enum CreateResult { 125 enum CreateResult {
126 CreateSucceeded, 126 CreateSucceeded,
127 CreateFailedButTryAgain, 127 CreateFailedButTryAgain,
128 CreateFailedAndGaveUp, 128 CreateFailedAndGaveUp,
129 }; 129 };
130 virtual CreateResult OnCreateAndInitializeOutputSurfaceAttempted( 130 virtual CreateResult OnCreateAndInitializeOutputSurfaceAttempted(
131 bool success); 131 bool success);
132 void RendererCapabilitiesChanged();
132 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } 133 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); }
133 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } 134 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); }
134 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); 135 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider);
135 virtual void AcquireLayerTextures(); 136 virtual void AcquireLayerTextures();
136 // Returns false if we should abort this frame due to initialization failure. 137 // Returns false if we should abort this frame due to initialization failure.
137 bool InitializeOutputSurfaceIfNeeded(); 138 bool InitializeOutputSurfaceIfNeeded();
138 bool UpdateLayers(ResourceUpdateQueue* queue); 139 bool UpdateLayers(ResourceUpdateQueue* queue);
139 140
140 LayerTreeHostClient* client() { return client_; } 141 LayerTreeHostClient* client() { return client_; }
141 const base::WeakPtr<InputHandler>& GetInputHandler() { 142 const base::WeakPtr<InputHandler>& GetInputHandler() {
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 461
461 ScopedPtrVector<SwapPromise> swap_promise_list_; 462 ScopedPtrVector<SwapPromise> swap_promise_list_;
462 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 463 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
463 464
464 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 465 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
465 }; 466 };
466 467
467 } // namespace cc 468 } // namespace cc
468 469
469 #endif // CC_TREES_LAYER_TREE_HOST_H_ 470 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698