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

Side by Side Diff: include/gpu/GrDrawContext.h

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 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 | « include/gpu/GrContext.h ('k') | include/gpu/GrGpuResource.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 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 #ifndef GrDrawContext_DEFINED 8 #ifndef GrDrawContext_DEFINED
9 #define GrDrawContext_DEFINED 9 #define GrDrawContext_DEFINED
10 10
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 245
246 /** 246 /**
247 * Draws a batch 247 * Draws a batch
248 * 248 *
249 * @param paint describes how to color pixels. 249 * @param paint describes how to color pixels.
250 * @param batch the batch to draw 250 * @param batch the batch to draw
251 */ 251 */
252 void drawBatch(const GrClip&, const GrPaint&, GrDrawBatch*); 252 void drawBatch(const GrClip&, const GrPaint&, GrDrawBatch*);
253 253
254 GrRenderTarget* rt_remove_me() { return fRenderTarget; }
255
254 private: 256 private:
255 friend class GrAtlasTextContext; // for access to drawBatch 257 friend class GrAtlasTextContext; // for access to drawBatch
256 friend class GrDrawingManager; // for ctor 258 friend class GrDrawingManager; // for ctor
257 259
258 SkDEBUGCODE(void validate() const;) 260 SkDEBUGCODE(void validate() const;)
259 261
260 GrDrawContext(GrDrawingManager*, GrRenderTarget*, const SkSurfaceProps* surf aceProps); 262 GrDrawContext(GrDrawingManager*, GrRenderTarget*, const SkSurfaceProps* surf aceProps);
261 263
262 void internalDrawPath(GrPipelineBuilder*, 264 void internalDrawPath(GrPipelineBuilder*,
263 const SkMatrix& viewMatrix, 265 const SkMatrix& viewMatrix,
(...skipping 13 matching lines...) Expand all
277 279
278 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked 280 // In MDB-mode the drawTarget can be closed by some other drawContext that h as picked
279 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'. 281 // it up. For this reason, the drawTarget should only ever be accessed via ' getDrawTarget'.
280 GrDrawTarget* fDrawTarget; 282 GrDrawTarget* fDrawTarget;
281 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana ger 283 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana ger
282 284
283 SkSurfaceProps fSurfaceProps; 285 SkSurfaceProps fSurfaceProps;
284 }; 286 };
285 287
286 #endif 288 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContext.h ('k') | include/gpu/GrGpuResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698