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

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

Issue 14772021: cc::OutputSurfaceClient::InitializeForGL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cc refactors to reduce duplication Created 7 years, 7 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 <vector> 9 #include <vector>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( 117 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl(
118 LayerTreeHostImplClient* client); 118 LayerTreeHostImplClient* client);
119 void DidLoseOutputSurface(); 119 void DidLoseOutputSurface();
120 bool output_surface_lost() const { return output_surface_lost_; } 120 bool output_surface_lost() const { return output_surface_lost_; }
121 enum CreateResult { 121 enum CreateResult {
122 CreateSucceeded, 122 CreateSucceeded,
123 CreateFailedButTryAgain, 123 CreateFailedButTryAgain,
124 CreateFailedAndGaveUp, 124 CreateFailedAndGaveUp,
125 }; 125 };
126 CreateResult OnCreateAndInitializeOutputSurfaceAttempted(bool success); 126 CreateResult OnCreateAndInitializeOutputSurfaceAttempted(bool success);
127 void DidUpdateCapabilities();
127 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } 128 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); }
128 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } 129 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); }
129 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider); 130 void DeleteContentsTexturesOnImplThread(ResourceProvider* resource_provider);
130 virtual void AcquireLayerTextures(); 131 virtual void AcquireLayerTextures();
131 // Returns false if we should abort this frame due to initialization failure. 132 // Returns false if we should abort this frame due to initialization failure.
132 bool InitializeOutputSurfaceIfNeeded(); 133 bool InitializeOutputSurfaceIfNeeded();
133 void UpdateLayers(ResourceUpdateQueue* queue, 134 void UpdateLayers(ResourceUpdateQueue* queue,
134 size_t contents_memory_limit_bytes); 135 size_t contents_memory_limit_bytes);
135 136
136 LayerTreeHostClient* client() { return client_; } 137 LayerTreeHostClient* client() { return client_; }
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 bool in_paint_layer_contents_; 346 bool in_paint_layer_contents_;
346 347
347 LatencyInfo latency_info_; 348 LatencyInfo latency_info_;
348 349
349 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 350 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
350 }; 351 };
351 352
352 } // namespace cc 353 } // namespace cc
353 354
354 #endif // CC_TREES_LAYER_TREE_HOST_H_ 355 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698