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

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

Issue 805543002: DM warning-free on win64 (Closed) Base URL: https://skia.googlesource.com/skia.git@w64
Patch Set: Created 6 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
« no previous file with comments | « gm/glyph_pos_align.cpp ('k') | src/pdf/SkPDFPage.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 2014 Google Inc. 2 * Copyright 2014 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 "GrLayerCache.h" 8 #include "GrLayerCache.h"
9 #include "GrLayerHoister.h" 9 #include "GrLayerHoister.h"
10 #include "GrRecordReplaceDraw.h" 10 #include "GrRecordReplaceDraw.h"
(...skipping 13 matching lines...) Expand all
24 const SkMatrix& initialMat, 24 const SkMatrix& initialMat,
25 const SkLayerInfo::BlockInfo& info, 25 const SkLayerInfo::BlockInfo& info,
26 const SkIRect& layerRect, 26 const SkIRect& layerRect,
27 SkTDArray<GrHoistedLayer>* needRendering, 27 SkTDArray<GrHoistedLayer>* needRendering,
28 SkTDArray<GrHoistedLayer>* recycled, 28 SkTDArray<GrHoistedLayer>* recycled,
29 bool attemptToAtlas, 29 bool attemptToAtlas,
30 int numSamples) { 30 int numSamples) {
31 const SkPicture* pict = info.fPicture ? info.fPicture : topLevelPicture; 31 const SkPicture* pict = info.fPicture ? info.fPicture : topLevelPicture;
32 32
33 GrCachedLayer* layer = layerCache->findLayerOrCreate(topLevelPicture->unique ID(), 33 GrCachedLayer* layer = layerCache->findLayerOrCreate(topLevelPicture->unique ID(),
34 info.fSaveLayerOpID, 34 SkToInt(info.fSaveLayer OpID),
35 info.fRestoreOpID, 35 SkToInt(info.fRestoreOp ID),
36 layerRect, 36 layerRect,
37 initialMat, 37 initialMat,
38 info.fKey, 38 info.fKey,
39 info.fKeySize, 39 info.fKeySize,
40 info.fPaint); 40 info.fPaint);
41 GrSurfaceDesc desc; 41 GrSurfaceDesc desc;
42 desc.fFlags = kRenderTarget_GrSurfaceFlag; 42 desc.fFlags = kRenderTarget_GrSurfaceFlag;
43 desc.fWidth = layerRect.width(); 43 desc.fWidth = layerRect.width();
44 desc.fHeight = layerRect.height(); 44 desc.fHeight = layerRect.height();
45 desc.fConfig = kSkia8888_GrPixelConfig; 45 desc.fConfig = kSkia8888_GrPixelConfig;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 void GrLayerHoister::PurgeCache(GrContext* context) { 320 void GrLayerHoister::PurgeCache(GrContext* context) {
321 #if !GR_CACHE_HOISTED_LAYERS 321 #if !GR_CACHE_HOISTED_LAYERS
322 GrLayerCache* layerCache = context->getLayerCache(); 322 GrLayerCache* layerCache = context->getLayerCache();
323 323
324 // This code completely clears out the atlas. It is required when 324 // This code completely clears out the atlas. It is required when
325 // caching is disabled so the atlas doesn't fill up and force more 325 // caching is disabled so the atlas doesn't fill up and force more
326 // free floating layers 326 // free floating layers
327 layerCache->purgeAll(); 327 layerCache->purgeAll();
328 #endif 328 #endif
329 } 329 }
OLDNEW
« no previous file with comments | « gm/glyph_pos_align.cpp ('k') | src/pdf/SkPDFPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698