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

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

Issue 1314943008: cc: Remove implicit conversions from Rect to RectF in src/cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rectfconvert-cc: rebase-and-sandwich-strategy Created 5 years, 3 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/delegated_renderer_layer.cc ('k') | cc/layers/delegated_renderer_layer_impl.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_DELEGATED_RENDERER_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
7 7
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 27 matching lines...) Expand all
38 void PushPropertiesTo(LayerImpl* layer) override; 38 void PushPropertiesTo(LayerImpl* layer) override;
39 39
40 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink); 40 void AppendContributingRenderPasses(RenderPassSink* render_pass_sink);
41 41
42 // Creates an ID with the resource provider for the child renderer 42 // Creates an ID with the resource provider for the child renderer
43 // that will be sending quads to the layer. Registers the callback to 43 // that will be sending quads to the layer. Registers the callback to
44 // inform when resources are no longer in use. 44 // inform when resources are no longer in use.
45 void CreateChildIdIfNeeded(const ReturnCallback& return_callback); 45 void CreateChildIdIfNeeded(const ReturnCallback& return_callback);
46 46
47 void SetFrameData(const DelegatedFrameData* frame_data, 47 void SetFrameData(const DelegatedFrameData* frame_data,
48 const gfx::RectF& damage_in_frame); 48 const gfx::Rect& damage_in_frame);
49 49
50 float inverse_device_scale_factor() const { 50 float inverse_device_scale_factor() const {
51 return inverse_device_scale_factor_; 51 return inverse_device_scale_factor_;
52 } 52 }
53 53
54 protected: 54 protected:
55 DelegatedRendererLayerImpl(LayerTreeImpl* tree_impl, int id); 55 DelegatedRendererLayerImpl(LayerTreeImpl* tree_impl, int id);
56 56
57 int ChildIdForTesting() const { return child_id_; } 57 int ChildIdForTesting() const { return child_id_; }
58 const RenderPassList& RenderPassesInDrawOrderForTesting() const { 58 const RenderPassList& RenderPassesInDrawOrderForTesting() const {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 int child_id_; 95 int child_id_;
96 bool own_child_id_; 96 bool own_child_id_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); 98 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl);
99 }; 99 };
100 100
101 } // namespace cc 101 } // namespace cc
102 102
103 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 103 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/delegated_renderer_layer.cc ('k') | cc/layers/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698