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

Side by Side Diff: src/gpu/GrTest.cpp

Issue 1631993002: Cleaning up trailing spaces and typos. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrTexture.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
2 /* 1 /*
3 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
4 * 3 *
5 * 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
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 7
9 #include "GrTest.h" 8 #include "GrTest.h"
10 9
11 #include "GrBatchAtlas.h" 10 #include "GrBatchAtlas.h"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget*, 378 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget*,
380 int width, 379 int width,
381 int height) over ride { 380 int height) over ride {
382 return nullptr; 381 return nullptr;
383 } 382 }
384 383
385 void clearStencil(GrRenderTarget* target) override {} 384 void clearStencil(GrRenderTarget* target) override {}
386 385
387 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, 386 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h,
388 GrPixelConfig config) const override { 387 GrPixelConfig config) const override {
389 return 0; 388 return 0;
390 } 389 }
391 bool isTestingOnlyBackendTexture(GrBackendObject ) const override { return f alse; } 390 bool isTestingOnlyBackendTexture(GrBackendObject ) const override { return f alse; }
392 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) c onst override {} 391 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) c onst override {}
393 392
394 typedef GrGpu INHERITED; 393 typedef GrGpu INHERITED;
395 }; 394 };
396 395
397 GrContext* GrContext::CreateMockContext() { 396 GrContext* GrContext::CreateMockContext() {
398 GrContext* context = new GrContext; 397 GrContext* context = new GrContext;
399 398
400 context->initMockContext(); 399 context->initMockContext();
401 return context; 400 return context;
402 } 401 }
403 402
404 void GrContext::initMockContext() { 403 void GrContext::initMockContext() {
405 GrContextOptions options; 404 GrContextOptions options;
406 options.fGeometryBufferMapThreshold = 0; 405 options.fGeometryBufferMapThreshold = 0;
407 SkASSERT(nullptr == fGpu); 406 SkASSERT(nullptr == fGpu);
408 fGpu = new MockGpu(this, options); 407 fGpu = new MockGpu(this, options);
409 SkASSERT(fGpu); 408 SkASSERT(fGpu);
410 this->initCommon(options); 409 this->initCommon(options);
411 410
412 // We delete these because we want to test the cache starting with zero reso urces. Also, none of 411 // We delete these because we want to test the cache starting with zero reso urces. Also, none of
413 // these objects are required for any of tests that use this context. TODO: make stop allocating 412 // these objects are required for any of tests that use this context. TODO: make stop allocating
414 // resources in the buffer pools. 413 // resources in the buffer pools.
415 fDrawingManager->abandon(); 414 fDrawingManager->abandon();
416 } 415 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698