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

Side by Side Diff: cc/layers/ui_resource_layer_impl.cc

Issue 1144523003: Rename cc::ResourceProvider::ResourceId to cc::ResourceId and move it to its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/tiled_layer_impl_unittest.cc ('k') | cc/layers/video_layer_impl.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "cc/layers/ui_resource_layer_impl.h" 5 #include "cc/layers/ui_resource_layer_impl.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 #include "cc/quads/texture_draw_quad.h" 10 #include "cc/quads/texture_draw_quad.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 SharedQuadState* shared_quad_state = 97 SharedQuadState* shared_quad_state =
98 render_pass->CreateAndAppendSharedQuadState(); 98 render_pass->CreateAndAppendSharedQuadState();
99 PopulateSharedQuadState(shared_quad_state); 99 PopulateSharedQuadState(shared_quad_state);
100 100
101 AppendDebugBorderQuad( 101 AppendDebugBorderQuad(
102 render_pass, content_bounds(), shared_quad_state, append_quads_data); 102 render_pass, content_bounds(), shared_quad_state, append_quads_data);
103 103
104 if (!ui_resource_id_) 104 if (!ui_resource_id_)
105 return; 105 return;
106 106
107 ResourceProvider::ResourceId resource = 107 ResourceId resource =
108 layer_tree_impl()->ResourceIdForUIResource(ui_resource_id_); 108 layer_tree_impl()->ResourceIdForUIResource(ui_resource_id_);
109 109
110 if (!resource) 110 if (!resource)
111 return; 111 return;
112 112
113 static const bool flipped = false; 113 static const bool flipped = false;
114 static const bool nearest_neighbor = false; 114 static const bool nearest_neighbor = false;
115 static const bool premultiplied_alpha = true; 115 static const bool premultiplied_alpha = true;
116 116
117 DCHECK(!bounds().IsEmpty()); 117 DCHECK(!bounds().IsEmpty());
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 list->AppendDouble(vertex_opacity_[3]); 160 list->AppendDouble(vertex_opacity_[3]);
161 result->Set("VertexOpacity", list); 161 result->Set("VertexOpacity", list);
162 162
163 result->Set("UVTopLeft", MathUtil::AsValue(uv_top_left_).release()); 163 result->Set("UVTopLeft", MathUtil::AsValue(uv_top_left_).release());
164 result->Set("UVBottomRight", MathUtil::AsValue(uv_bottom_right_).release()); 164 result->Set("UVBottomRight", MathUtil::AsValue(uv_bottom_right_).release());
165 165
166 return result; 166 return result;
167 } 167 }
168 168
169 } // namespace cc 169 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer_impl_unittest.cc ('k') | cc/layers/video_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698