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

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

Issue 192853002: Proposed SkCanvas API for preLoading textures to VRAM (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkCanvas.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 /** 139 /**
140 * Make's this device's rendertarget current in the underlying 3D API. 140 * Make's this device's rendertarget current in the underlying 3D API.
141 * Also implicitly flushes. 141 * Also implicitly flushes.
142 */ 142 */
143 virtual void makeRenderTargetCurrent(); 143 virtual void makeRenderTargetCurrent();
144 144
145 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; 145 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE;
146 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr ix&, 146 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr ix&,
147 SkBitmap*, SkIPoint*) SK_OVERRIDE; 147 SkBitmap*, SkIPoint*) SK_OVERRIDE;
148 148
149 virtual void internalPrivate_PreLoad(const SkBitmap& bitmap, const SkIRect& rect);
150
149 class SkAutoCachedTexture; // used internally 151 class SkAutoCachedTexture; // used internally
150 152
151 protected: 153 protected:
152 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888 8) SK_OVERRIDE; 154 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888 8) SK_OVERRIDE;
153 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE; 155 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE;
154 156
155 private: 157 private:
156 GrContext* fContext; 158 GrContext* fContext;
157 159
158 GrSkDrawProcs* fDrawProcs; 160 GrSkDrawProcs* fDrawProcs;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 const GrTextureParams& params, 216 const GrTextureParams& params,
215 const SkPaint& paint, 217 const SkPaint& paint,
216 SkCanvas::DrawBitmapRectFlags flags, 218 SkCanvas::DrawBitmapRectFlags flags,
217 int tileSize, 219 int tileSize,
218 bool bicubic); 220 bool bicubic);
219 221
220 typedef SkBitmapDevice INHERITED; 222 typedef SkBitmapDevice INHERITED;
221 }; 223 };
222 224
223 #endif 225 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698