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

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

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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/picture_layer_impl_unittest.cc ('k') | cc/output/gl_renderer_unittest.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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void ClearClient(); 92 void ClearClient();
93 93
94 // Resets the texture. 94 // Resets the texture.
95 void ClearTexture(); 95 void ClearTexture();
96 96
97 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 97 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
98 98
99 // Sets whether this texture should be Y-flipped at draw time. Defaults to 99 // Sets whether this texture should be Y-flipped at draw time. Defaults to
100 // true. 100 // true.
101 void SetFlipped(bool flipped); 101 void SetFlipped(bool flipped);
102 bool flipped() const { return flipped_; }
102 103
103 // Sets whether this texture should use nearest neighbor interpolation as 104 // Sets whether this texture should use nearest neighbor interpolation as
104 // opposed to bilinear. Defaults to false. 105 // opposed to bilinear. Defaults to false.
105 void SetNearestNeighbor(bool nearest_neighbor); 106 void SetNearestNeighbor(bool nearest_neighbor);
106 107
107 // Sets a UV transform to be used at draw time. Defaults to (0, 0) and (1, 1). 108 // Sets a UV transform to be used at draw time. Defaults to (0, 0) and (1, 1).
108 void SetUV(const gfx::PointF& top_left, const gfx::PointF& bottom_right); 109 void SetUV(const gfx::PointF& top_left, const gfx::PointF& bottom_right);
109 110
110 // Sets an opacity value per vertex. It will be multiplied by the layer 111 // Sets an opacity value per vertex. It will be multiplied by the layer
111 // opacity value. 112 // opacity value.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 bool rate_limit_context_; 171 bool rate_limit_context_;
171 172
172 scoped_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_; 173 scoped_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_;
173 bool needs_set_mailbox_; 174 bool needs_set_mailbox_;
174 175
175 DISALLOW_COPY_AND_ASSIGN(TextureLayer); 176 DISALLOW_COPY_AND_ASSIGN(TextureLayer);
176 }; 177 };
177 178
178 } // namespace cc 179 } // namespace cc
179 #endif // CC_LAYERS_TEXTURE_LAYER_H_ 180 #endif // CC_LAYERS_TEXTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/output/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698