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

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

Issue 647253002: cc: Stop converting update rect from int to float to int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displayrectint: ccperftests Created 6 years, 2 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/layers/texture_layer.cc ('k') | cc/layers/tiled_layer.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_LAYERS_TILED_LAYER_H_ 5 #ifndef CC_LAYERS_TILED_LAYER_H_
6 #define CC_LAYERS_TILED_LAYER_H_ 6 #define CC_LAYERS_TILED_LAYER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/layers/contents_scaling_layer.h" 9 #include "cc/layers/contents_scaling_layer.h"
10 #include "cc/resources/layer_tiling_data.h" 10 #include "cc/resources/layer_tiling_data.h"
(...skipping 10 matching lines...) Expand all
21 enum TilingOption { 21 enum TilingOption {
22 ALWAYS_TILE, 22 ALWAYS_TILE,
23 NEVER_TILE, 23 NEVER_TILE,
24 AUTO_TILE, 24 AUTO_TILE,
25 }; 25 };
26 26
27 // Layer implementation. 27 // Layer implementation.
28 virtual void SetIsMask(bool is_mask) override; 28 virtual void SetIsMask(bool is_mask) override;
29 virtual void PushPropertiesTo(LayerImpl* layer) override; 29 virtual void PushPropertiesTo(LayerImpl* layer) override;
30 virtual void ReduceMemoryUsage() override; 30 virtual void ReduceMemoryUsage() override;
31 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) override; 31 virtual void SetNeedsDisplayRect(const gfx::Rect& dirty_rect) override;
32 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override; 32 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override;
33 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) 33 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc)
34 override; 34 override;
35 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; 35 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const override;
36 virtual bool Update(ResourceUpdateQueue* queue, 36 virtual bool Update(ResourceUpdateQueue* queue,
37 const OcclusionTracker<Layer>* occlusion) override; 37 const OcclusionTracker<Layer>* occlusion) override;
38 virtual void OnOutputSurfaceCreated() override; 38 virtual void OnOutputSurfaceCreated() override;
39 39
40 protected: 40 protected:
41 TiledLayer(); 41 TiledLayer();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 TilingOption tiling_option_; 140 TilingOption tiling_option_;
141 scoped_ptr<LayerTilingData> tiler_; 141 scoped_ptr<LayerTilingData> tiler_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(TiledLayer); 143 DISALLOW_COPY_AND_ASSIGN(TiledLayer);
144 }; 144 };
145 145
146 } // namespace cc 146 } // namespace cc
147 147
148 #endif // CC_LAYERS_TILED_LAYER_H_ 148 #endif // CC_LAYERS_TILED_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/texture_layer.cc ('k') | cc/layers/tiled_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698