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

Side by Side Diff: include/views/SkWindow.h

Issue 1697863002: blitters for sRGB and float16 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | samplecode/SampleApp.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 SkWindow_DEFINED 8 #ifndef SkWindow_DEFINED
9 #define SkWindow_DEFINED 9 #define SkWindow_DEFINED
10 10
(...skipping 23 matching lines...) Expand all
34 struct AttachmentInfo { 34 struct AttachmentInfo {
35 int fSampleCount; 35 int fSampleCount;
36 int fStencilBits; 36 int fStencilBits;
37 }; 37 };
38 38
39 SkSurfaceProps getSurfaceProps() const { return fSurfaceProps; } 39 SkSurfaceProps getSurfaceProps() const { return fSurfaceProps; }
40 void setSurfaceProps(const SkSurfaceProps& props) { 40 void setSurfaceProps(const SkSurfaceProps& props) {
41 fSurfaceProps = props; 41 fSurfaceProps = props;
42 } 42 }
43 43
44 SkImageInfo info() const { return fBitmap.info(); }
44 const SkBitmap& getBitmap() const { return fBitmap; } 45 const SkBitmap& getBitmap() const { return fBitmap; }
45 46
46 void resize(int width, int height); 47 void resize(int width, int height);
48 void resize(const SkImageInfo&);
49 void setColorType(SkColorType, SkColorProfileType);
47 50
48 bool isDirty() const { return !fDirtyRgn.isEmpty(); } 51 bool isDirty() const { return !fDirtyRgn.isEmpty(); }
49 bool update(SkIRect* updateArea); 52 bool update(SkIRect* updateArea);
50 // does not call through to onHandleInval(), but does force the fDirtyRgn 53 // does not call through to onHandleInval(), but does force the fDirtyRgn
51 // to be wide open. Call before update() to ensure we redraw everything. 54 // to be wide open. Call before update() to ensure we redraw everything.
52 void forceInvalAll(); 55 void forceInvalAll();
53 // return the bounds of the dirty/inval rgn, or [0,0,0,0] if none 56 // return the bounds of the dirty/inval rgn, or [0,0,0,0] if none
54 const SkIRect& getDirtyBounds() const { return fDirtyRgn.getBounds(); } 57 const SkIRect& getDirtyBounds() const { return fDirtyRgn.getBounds(); }
55 58
56 bool handleClick(int x, int y, Click::State, void* owner, unsigned modi = 0); 59 bool handleClick(int x, int y, Click::State, void* owner, unsigned modi = 0);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 #include "SkOSWindow_Win.h" 124 #include "SkOSWindow_Win.h"
122 #elif defined(SK_BUILD_FOR_ANDROID) 125 #elif defined(SK_BUILD_FOR_ANDROID)
123 #include "SkOSWindow_Android.h" 126 #include "SkOSWindow_Android.h"
124 #elif defined(SK_BUILD_FOR_UNIX) 127 #elif defined(SK_BUILD_FOR_UNIX)
125 #include "SkOSWindow_Unix.h" 128 #include "SkOSWindow_Unix.h"
126 #elif defined(SK_BUILD_FOR_IOS) 129 #elif defined(SK_BUILD_FOR_IOS)
127 #include "SkOSWindow_iOS.h" 130 #include "SkOSWindow_iOS.h"
128 #endif 131 #endif
129 132
130 #endif 133 #endif
OLDNEW
« no previous file with comments | « no previous file | samplecode/SampleApp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698