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

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

Issue 197123003: Proposed SkCanvas API for preLoading textures to VRAM v2.0 (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
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 optimize(SkPicture* picture) SK_OVERRIDE;
150 virtual bool optimizedRender(SkPicture& picture) SK_OVERRIDE;
151
149 class SkAutoCachedTexture; // used internally 152 class SkAutoCachedTexture; // used internally
150 153
154
151 protected: 155 protected:
152 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888 8) SK_OVERRIDE; 156 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; 157 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE;
154 158
155 private: 159 private:
156 GrContext* fContext; 160 GrContext* fContext;
157 161
158 GrSkDrawProcs* fDrawProcs; 162 GrSkDrawProcs* fDrawProcs;
159 163
160 GrClipData fClipData; 164 GrClipData fClipData;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 const GrTextureParams& params, 218 const GrTextureParams& params,
215 const SkPaint& paint, 219 const SkPaint& paint,
216 SkCanvas::DrawBitmapRectFlags flags, 220 SkCanvas::DrawBitmapRectFlags flags,
217 int tileSize, 221 int tileSize,
218 bool bicubic); 222 bool bicubic);
219 223
220 typedef SkBitmapDevice INHERITED; 224 typedef SkBitmapDevice INHERITED;
221 }; 225 };
222 226
223 #endif 227 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698