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

Side by Side Diff: include/core/SkCanvas.h

Issue 1658823002: Remove deferred clear from SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix ptr->bool warning on windows 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 | « gm/imagefromyuvtextures.cpp ('k') | src/gpu/GrGpu.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 /** 118 /**
119 * Return ImageInfo for this canvas. If the canvas is not backed by pixels 119 * Return ImageInfo for this canvas. If the canvas is not backed by pixels
120 * (cpu or gpu), then the info's ColorType will be kUnknown_SkColorType. 120 * (cpu or gpu), then the info's ColorType will be kUnknown_SkColorType.
121 */ 121 */
122 SkImageInfo imageInfo() const; 122 SkImageInfo imageInfo() const;
123 123
124 /////////////////////////////////////////////////////////////////////////// 124 ///////////////////////////////////////////////////////////////////////////
125 125
126 /** 126 /**
127 * Trigger the immediate execution of all pending draw operations. 127 * Trigger the immediate execution of all pending draw operations. For the GPU
128 * backend this will resolve all rendering to the GPU surface backing the
129 * SkSurface that owns this canvas.
128 */ 130 */
129 void flush(); 131 void flush();
130 132
131 /** 133 /**
132 * Gets the size of the base or root layer in global canvas coordinates. The 134 * Gets the size of the base or root layer in global canvas coordinates. The
133 * origin of the base layer is always (0,0). The current drawable area may b e 135 * origin of the base layer is always (0,0). The current drawable area may b e
134 * smaller (due to clipping or saveLayer). 136 * smaller (due to clipping or saveLayer).
135 */ 137 */
136 virtual SkISize getBaseLayerSize() const; 138 virtual SkISize getBaseLayerSize() const;
137 139
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 1495
1494 class SkCanvasClipVisitor { 1496 class SkCanvasClipVisitor {
1495 public: 1497 public:
1496 virtual ~SkCanvasClipVisitor(); 1498 virtual ~SkCanvasClipVisitor();
1497 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1499 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1498 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1500 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1499 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1501 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1500 }; 1502 };
1501 1503
1502 #endif 1504 #endif
OLDNEW
« no previous file with comments | « gm/imagefromyuvtextures.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698