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

Side by Side Diff: cc/nine_patch_layer_impl.cc

Issue 11439026: Revert 171403 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/nine_patch_layer_impl.h ('k') | cc/nine_patch_layer_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 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 #include "nine_patch_layer_impl.h" 5 #include "nine_patch_layer_impl.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "cc/quad_sink.h" 8 #include "cc/quad_sink.h"
9 #include "cc/texture_draw_quad.h" 9 #include "cc/texture_draw_quad.h"
10 #include "ui/gfx/rect_f.h" 10 #include "ui/gfx/rect_f.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 quad = TextureDrawQuad::Create(); 140 quad = TextureDrawQuad::Create();
141 quad->SetNew(sharedQuadState, bottom, opaqueRect, m_resourceId, premultiplie dAlpha, uvBottom, flipped); 141 quad->SetNew(sharedQuadState, bottom, opaqueRect, m_resourceId, premultiplie dAlpha, uvBottom, flipped);
142 quadSink.append(quad.PassAs<DrawQuad>(), appendQuadsData); 142 quadSink.append(quad.PassAs<DrawQuad>(), appendQuadsData);
143 } 143 }
144 144
145 void NinePatchLayerImpl::didDraw(ResourceProvider* resourceProvider) 145 void NinePatchLayerImpl::didDraw(ResourceProvider* resourceProvider)
146 { 146 {
147 } 147 }
148 148
149 void NinePatchLayerImpl::didLoseOutputSurface() 149 void NinePatchLayerImpl::didLoseContext()
150 { 150 {
151 m_resourceId = 0; 151 m_resourceId = 0;
152 } 152 }
153 153
154 const char* NinePatchLayerImpl::layerTypeAsString() const 154 const char* NinePatchLayerImpl::layerTypeAsString() const
155 { 155 {
156 return "NinePatchLayer"; 156 return "NinePatchLayer";
157 } 157 }
158 158
159 void NinePatchLayerImpl::dumpLayerProperties(std::string* str, int indent) const 159 void NinePatchLayerImpl::dumpLayerProperties(std::string* str, int indent) const
160 { 160 {
161 str->append(indentString(indent)); 161 str->append(indentString(indent));
162 base::StringAppendF(str, "imageAperture: %s\n", m_imageAperture.ToString().c _str()); 162 base::StringAppendF(str, "imageAperture: %s\n", m_imageAperture.ToString().c _str());
163 LayerImpl::dumpLayerProperties(str, indent); 163 LayerImpl::dumpLayerProperties(str, indent);
164 } 164 }
165 165
166 } 166 }
OLDNEW
« no previous file with comments | « cc/nine_patch_layer_impl.h ('k') | cc/nine_patch_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698