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

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

Issue 2735943002: cc: Clarify that color spaces are for raster (Closed)
Patch Set: Rebase (a few times) Created 3 years, 9 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
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 float device_scale_factor() const { return device_scale_factor_; } 305 float device_scale_factor() const { return device_scale_factor_; }
306 306
307 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor); 307 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor);
308 float painted_device_scale_factor() const { 308 float painted_device_scale_factor() const {
309 return painted_device_scale_factor_; 309 return painted_device_scale_factor_;
310 } 310 }
311 311
312 void SetContentSourceId(uint32_t); 312 void SetContentSourceId(uint32_t);
313 uint32_t content_source_id() const { return content_source_id_; } 313 uint32_t content_source_id() const { return content_source_id_; }
314 314
315 void SetDeviceColorSpace(const gfx::ColorSpace& device_color_space); 315 void SetRasterColorSpace(const gfx::ColorSpace& raster_color_space);
316 const gfx::ColorSpace& device_color_space() const { 316 const gfx::ColorSpace& raster_color_space() const {
317 return device_color_space_; 317 return raster_color_space_;
318 } 318 }
319 319
320 // Used externally by blink for setting the PropertyTrees when 320 // Used externally by blink for setting the PropertyTrees when
321 // |settings_.use_layer_lists| is true. This is a SPV2 setting. 321 // |settings_.use_layer_lists| is true. This is a SPV2 setting.
322 PropertyTrees* property_trees() { return &property_trees_; } 322 PropertyTrees* property_trees() { return &property_trees_; }
323 323
324 void SetNeedsDisplayOnAllLayers(); 324 void SetNeedsDisplayOnAllLayers();
325 325
326 void RegisterLayer(Layer* layer); 326 void RegisterLayer(Layer* layer);
327 void UnregisterLayer(Layer* layer); 327 void UnregisterLayer(Layer* layer);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 float top_controls_shown_ratio_ = 0.f; 564 float top_controls_shown_ratio_ = 0.f;
565 bool browser_controls_shrink_blink_size_ = false; 565 bool browser_controls_shrink_blink_size_ = false;
566 566
567 float bottom_controls_height_ = 0.f; 567 float bottom_controls_height_ = 0.f;
568 568
569 float device_scale_factor_ = 1.f; 569 float device_scale_factor_ = 1.f;
570 float painted_device_scale_factor_ = 1.f; 570 float painted_device_scale_factor_ = 1.f;
571 float page_scale_factor_ = 1.f; 571 float page_scale_factor_ = 1.f;
572 float min_page_scale_factor_ = 1.f; 572 float min_page_scale_factor_ = 1.f;
573 float max_page_scale_factor_ = 1.f; 573 float max_page_scale_factor_ = 1.f;
574 gfx::ColorSpace device_color_space_; 574 gfx::ColorSpace raster_color_space_;
575 575
576 uint32_t content_source_id_; 576 uint32_t content_source_id_;
577 577
578 SkColor background_color_ = SK_ColorWHITE; 578 SkColor background_color_ = SK_ColorWHITE;
579 bool has_transparent_background_ = false; 579 bool has_transparent_background_ = false;
580 580
581 LayerSelection selection_; 581 LayerSelection selection_;
582 582
583 gfx::Size device_viewport_size_; 583 gfx::Size device_viewport_size_;
584 584
(...skipping 24 matching lines...) Expand all
609 bool in_update_property_trees_ = false; 609 bool in_update_property_trees_ = false;
610 610
611 MutatorHost* mutator_host_; 611 MutatorHost* mutator_host_;
612 612
613 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 613 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
614 }; 614 };
615 615
616 } // namespace cc 616 } // namespace cc
617 617
618 #endif // CC_TREES_LAYER_TREE_HOST_H_ 618 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698