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

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

Issue 2451273003: cc : Snap texture layers to pixel boundary (Closed)
Patch Set: comments Created 4 years, 1 month 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/layer_impl.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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 // Code path for plugins which supply their own mailbox. 131 // Code path for plugins which supply their own mailbox.
132 void SetTextureMailbox( 132 void SetTextureMailbox(
133 const TextureMailbox& mailbox, 133 const TextureMailbox& mailbox,
134 std::unique_ptr<SingleReleaseCallback> release_callback); 134 std::unique_ptr<SingleReleaseCallback> release_callback);
135 135
136 void SetNeedsDisplayRect(const gfx::Rect& dirty_rect) override; 136 void SetNeedsDisplayRect(const gfx::Rect& dirty_rect) override;
137 137
138 void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override; 138 void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override;
139 bool Update() override; 139 bool Update() override;
140 bool IsSnapped() override;
140 void PushPropertiesTo(LayerImpl* layer) override; 141 void PushPropertiesTo(LayerImpl* layer) override;
141 142
142 protected: 143 protected:
143 explicit TextureLayer(TextureLayerClient* client); 144 explicit TextureLayer(TextureLayerClient* client);
144 ~TextureLayer() override; 145 ~TextureLayer() override;
145 bool HasDrawableContent() const override; 146 bool HasDrawableContent() const override;
146 147
147 private: 148 private:
148 void SetTextureMailboxInternal( 149 void SetTextureMailboxInternal(
149 const TextureMailbox& mailbox, 150 const TextureMailbox& mailbox,
(...skipping 13 matching lines...) Expand all
163 bool blend_background_color_; 164 bool blend_background_color_;
164 165
165 std::unique_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_; 166 std::unique_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_;
166 bool needs_set_mailbox_; 167 bool needs_set_mailbox_;
167 168
168 DISALLOW_COPY_AND_ASSIGN(TextureLayer); 169 DISALLOW_COPY_AND_ASSIGN(TextureLayer);
169 }; 170 };
170 171
171 } // namespace cc 172 } // namespace cc
172 #endif // CC_LAYERS_TEXTURE_LAYER_H_ 173 #endif // CC_LAYERS_TEXTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698