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

Side by Side Diff: cc/layers/layer.h

Issue 181063022: cc: Trigger GPU rasterization based on a per-layer hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/picture_layer.h » ('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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 float* contents_scale_x, 383 float* contents_scale_x,
384 float* contents_scale_y, 384 float* contents_scale_y,
385 gfx::Size* content_bounds); 385 gfx::Size* content_bounds);
386 386
387 LayerTreeHost* layer_tree_host() { return layer_tree_host_; } 387 LayerTreeHost* layer_tree_host() { return layer_tree_host_; }
388 const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; } 388 const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; }
389 389
390 // Set the priority of all desired textures in this layer. 390 // Set the priority of all desired textures in this layer.
391 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) {} 391 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) {}
392 392
393 virtual void SetHasGpuRasterizationHint(bool has_hint) {}
394
393 bool AddAnimation(scoped_ptr<Animation> animation); 395 bool AddAnimation(scoped_ptr<Animation> animation);
394 void PauseAnimation(int animation_id, double time_offset); 396 void PauseAnimation(int animation_id, double time_offset);
395 void RemoveAnimation(int animation_id); 397 void RemoveAnimation(int animation_id);
396 398
397 LayerAnimationController* layer_animation_controller() { 399 LayerAnimationController* layer_animation_controller() {
398 return layer_animation_controller_.get(); 400 return layer_animation_controller_.get();
399 } 401 }
400 void SetLayerAnimationControllerForTest( 402 void SetLayerAnimationControllerForTest(
401 scoped_refptr<LayerAnimationController> controller); 403 scoped_refptr<LayerAnimationController> controller);
402 404
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 DrawProperties<Layer> draw_properties_; 622 DrawProperties<Layer> draw_properties_;
621 623
622 PaintProperties paint_properties_; 624 PaintProperties paint_properties_;
623 625
624 DISALLOW_COPY_AND_ASSIGN(Layer); 626 DISALLOW_COPY_AND_ASSIGN(Layer);
625 }; 627 };
626 628
627 } // namespace cc 629 } // namespace cc
628 630
629 #endif // CC_LAYERS_LAYER_H_ 631 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698