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

Side by Side Diff: tests/ReadPixelsTest.cpp

Issue 682223002: rename GrTextureDesc->GrSurfaceDesc, GrTextureFlags->GrSurfaceFlags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: const Created 6 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 | « tests/GrSurfaceTest.cpp ('k') | tests/ReadWriteAlphaTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkBitmapDevice.h" 8 #include "SkBitmapDevice.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 #if SK_SUPPORT_GPU 305 #if SK_SUPPORT_GPU
306 GrContextFactory::GLContextType type = 306 GrContextFactory::GLContextType type =
307 static_cast<GrContextFactory::GLContextType>(glCtxType); 307 static_cast<GrContextFactory::GLContextType>(glCtxType);
308 if (!GrContextFactory::IsRenderingGLContext(type)) { 308 if (!GrContextFactory::IsRenderingGLContext(type)) {
309 continue; 309 continue;
310 } 310 }
311 GrContext* context = factory->get(type); 311 GrContext* context = factory->get(type);
312 if (NULL == context) { 312 if (NULL == context) {
313 continue; 313 continue;
314 } 314 }
315 GrTextureDesc desc; 315 GrSurfaceDesc desc;
316 desc.fFlags = kRenderTarget_GrTextureFlagBit | kNoStencil_GrText ureFlagBit; 316 desc.fFlags = kRenderTarget_GrSurfaceFlag | kNoStencil_GrSurface Flag;
317 desc.fWidth = DEV_W; 317 desc.fWidth = DEV_W;
318 desc.fHeight = DEV_H; 318 desc.fHeight = DEV_H;
319 desc.fConfig = kSkia8888_GrPixelConfig; 319 desc.fConfig = kSkia8888_GrPixelConfig;
320 desc.fOrigin = 1 == dtype ? kBottomLeft_GrSurfaceOrigin : kTopLe ft_GrSurfaceOrigin; 320 desc.fOrigin = 1 == dtype ? kBottomLeft_GrSurfaceOrigin : kTopLe ft_GrSurfaceOrigin;
321 SkAutoTUnref<GrTexture> texture( 321 SkAutoTUnref<GrTexture> texture(
322 context->refScratchTexture(desc, GrContext::kExact_ScratchTe xMatch)); 322 context->refScratchTexture(desc, GrContext::kExact_ScratchTe xMatch));
323 surface.reset(SkSurface::NewRenderTargetDirect(texture->asRender Target())); 323 surface.reset(SkSurface::NewRenderTargetDirect(texture->asRender Target()));
324 #else 324 #else
325 continue; 325 continue;
326 #endif 326 #endif
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 checkRead(reporter, wkbmp, clippedRect.fLeft, 384 checkRead(reporter, wkbmp, clippedRect.fLeft,
385 clippedRect.fTop, true, false); 385 clippedRect.fTop, true, false);
386 } else { 386 } else {
387 REPORTER_ASSERT(reporter, !success); 387 REPORTER_ASSERT(reporter, !success);
388 } 388 }
389 } 389 }
390 } 390 }
391 } 391 }
392 } 392 }
393 } 393 }
OLDNEW
« no previous file with comments | « tests/GrSurfaceTest.cpp ('k') | tests/ReadWriteAlphaTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698