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

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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 skia::RefPtr<SkPicture> CapturePicture(); 249 skia::RefPtr<SkPicture> CapturePicture();
250 250
251 bool BlocksPendingCommit() const; 251 bool BlocksPendingCommit() const;
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 bool UsingGLRenderer();
259
258 protected: 260 protected:
259 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); 261 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings);
260 bool Initialize(scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); 262 bool Initialize(scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
261 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); 263 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing);
262 264
263 private: 265 private:
264 bool InitializeProxy(scoped_ptr<Proxy> proxy); 266 bool InitializeProxy(scoped_ptr<Proxy> proxy);
265 267
266 bool PaintLayerContents(const LayerList& render_surface_layer_list, 268 bool PaintLayerContents(const LayerList& render_surface_layer_list,
267 ResourceUpdateQueue* quue); 269 ResourceUpdateQueue* quue);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 : total_num_cc_layers(0), 357 : total_num_cc_layers(0),
356 total_num_cc_layers_can_use_lcd_text(0), 358 total_num_cc_layers_can_use_lcd_text(0),
357 total_num_cc_layers_will_use_lcd_text(0) {} 359 total_num_cc_layers_will_use_lcd_text(0) {}
358 360
359 int64 total_num_cc_layers; 361 int64 total_num_cc_layers;
360 int64 total_num_cc_layers_can_use_lcd_text; 362 int64 total_num_cc_layers_can_use_lcd_text;
361 int64 total_num_cc_layers_will_use_lcd_text; 363 int64 total_num_cc_layers_will_use_lcd_text;
362 }; 364 };
363 LCDTextMetrics lcd_text_metrics_; 365 LCDTextMetrics lcd_text_metrics_;
364 366
367 bool using_gl_renderer_;
piman 2013/07/02 04:00:09 new field needs initialization....
368
365 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 369 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
366 }; 370 };
367 371
368 } // namespace cc 372 } // namespace cc
369 373
370 #endif // CC_TREES_LAYER_TREE_HOST_H_ 374 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698