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

Side by Side Diff: cc/layers/texture_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/solid_color_scrollbar_layer.cc ('k') | cc/layers/texture_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 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_TEXTURE_LAYER_H_ 5 #ifndef CC_LAYERS_TEXTURE_LAYER_H_
6 #define CC_LAYERS_TEXTURE_LAYER_H_ 6 #define CC_LAYERS_TEXTURE_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Code path for plugins which supply their own mailbox. 127 // Code path for plugins which supply their own mailbox.
128 void SetTextureMailbox(const TextureMailbox& mailbox, 128 void SetTextureMailbox(const TextureMailbox& mailbox,
129 scoped_ptr<SingleReleaseCallback> release_callback); 129 scoped_ptr<SingleReleaseCallback> release_callback);
130 130
131 // Use this for special cases where the same texture is used to back the 131 // Use this for special cases where the same texture is used to back the
132 // TextureLayer across all frames. 132 // TextureLayer across all frames.
133 // WARNING: DON'T ACTUALLY USE THIS WHAT YOU ARE DOING IS WRONG. 133 // WARNING: DON'T ACTUALLY USE THIS WHAT YOU ARE DOING IS WRONG.
134 // TODO(danakj): Remove this when pepper doesn't need it. crbug.com/350204 134 // TODO(danakj): Remove this when pepper doesn't need it. crbug.com/350204
135 void SetTextureMailboxWithoutReleaseCallback(const TextureMailbox& mailbox); 135 void SetTextureMailboxWithoutReleaseCallback(const TextureMailbox& mailbox);
136 136
137 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) override; 137 virtual void SetNeedsDisplayRect(const gfx::Rect& dirty_rect) override;
138 138
139 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override; 139 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override;
140 virtual bool Update(ResourceUpdateQueue* queue, 140 virtual bool Update(ResourceUpdateQueue* queue,
141 const OcclusionTracker<Layer>* occlusion) override; 141 const OcclusionTracker<Layer>* occlusion) override;
142 virtual void PushPropertiesTo(LayerImpl* layer) override; 142 virtual void PushPropertiesTo(LayerImpl* layer) override;
143 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; 143 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const override;
144 144
145 protected: 145 protected:
146 explicit TextureLayer(TextureLayerClient* client); 146 explicit TextureLayer(TextureLayerClient* client);
147 virtual ~TextureLayer(); 147 virtual ~TextureLayer();
(...skipping 18 matching lines...) Expand all
166 bool rate_limit_context_; 166 bool rate_limit_context_;
167 167
168 scoped_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_; 168 scoped_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_;
169 bool needs_set_mailbox_; 169 bool needs_set_mailbox_;
170 170
171 DISALLOW_COPY_AND_ASSIGN(TextureLayer); 171 DISALLOW_COPY_AND_ASSIGN(TextureLayer);
172 }; 172 };
173 173
174 } // namespace cc 174 } // namespace cc
175 #endif // CC_LAYERS_TEXTURE_LAYER_H_ 175 #endif // CC_LAYERS_TEXTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/solid_color_scrollbar_layer.cc ('k') | cc/layers/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698