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

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

Issue 17859002: Allow WebExternalTextureLayers to receive a bitmap along with a mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 // Obtains a thorough dump of the LayerTreeHost as a value. 253 // Obtains a thorough dump of the LayerTreeHost as a value.
254 scoped_ptr<base::Value> AsValue() const; 254 scoped_ptr<base::Value> AsValue() const;
255 255
256 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } 256 bool in_paint_layer_contents() const { return in_paint_layer_contents_; }
257 257
258 void IncrementLCDTextMetrics( 258 void IncrementLCDTextMetrics(
259 bool update_total_num_cc_layers_can_use_lcd_text, 259 bool update_total_num_cc_layers_can_use_lcd_text,
260 bool update_total_num_cc_layers_will_use_lcd_text); 260 bool update_total_num_cc_layers_will_use_lcd_text);
261 261
262 bool UsingSoftwareRenderer();
263
262 protected: 264 protected:
263 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); 265 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings);
264 bool Initialize(scoped_ptr<Thread> impl_thread); 266 bool Initialize(scoped_ptr<Thread> impl_thread);
265 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); 267 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing);
266 268
267 private: 269 private:
268 bool InitializeProxy(scoped_ptr<Proxy> proxy); 270 bool InitializeProxy(scoped_ptr<Proxy> proxy);
269 271
270 bool PaintLayerContents(const LayerList& render_surface_layer_list, 272 bool PaintLayerContents(const LayerList& render_surface_layer_list,
271 ResourceUpdateQueue* quue); 273 ResourceUpdateQueue* quue);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 : total_num_cc_layers(0), 360 : total_num_cc_layers(0),
359 total_num_cc_layers_can_use_lcd_text(0), 361 total_num_cc_layers_can_use_lcd_text(0),
360 total_num_cc_layers_will_use_lcd_text(0) {} 362 total_num_cc_layers_will_use_lcd_text(0) {}
361 363
362 int64 total_num_cc_layers; 364 int64 total_num_cc_layers;
363 int64 total_num_cc_layers_can_use_lcd_text; 365 int64 total_num_cc_layers_can_use_lcd_text;
364 int64 total_num_cc_layers_will_use_lcd_text; 366 int64 total_num_cc_layers_will_use_lcd_text;
365 }; 367 };
366 LCDTextMetrics lcd_text_metrics_; 368 LCDTextMetrics lcd_text_metrics_;
367 369
370 bool using_software_renderer_;
371
368 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 372 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
369 }; 373 };
370 374
371 } // namespace cc 375 } // namespace cc
372 376
373 #endif // CC_TREES_LAYER_TREE_HOST_H_ 377 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698