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

Side by Side Diff: tools/viewer/sk_app/Window.h

Issue 2041193004: Implement Raster Backend on Android Viewer App (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Merge Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 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 Window_DEFINED 8 #ifndef Window_DEFINED
9 #define Window_DEFINED 9 #define Window_DEFINED
10 10
(...skipping 24 matching lines...) Expand all
35 // the the inval event. They unset fIsContentInvalided which allow future on Inval. 35 // the the inval event. They unset fIsContentInvalided which allow future on Inval.
36 void inval(); 36 void inval();
37 37
38 virtual bool scaleContentToFit() const { return false; } 38 virtual bool scaleContentToFit() const { return false; }
39 virtual bool supportsContentRect() const { return false; } 39 virtual bool supportsContentRect() const { return false; }
40 virtual SkRect getContentRect() { return SkRect::MakeEmpty(); } 40 virtual SkRect getContentRect() { return SkRect::MakeEmpty(); }
41 41
42 enum BackendType { 42 enum BackendType {
43 kNativeGL_BackendType, 43 kNativeGL_BackendType,
44 kVulkan_BackendType, 44 kVulkan_BackendType,
45 kRaster_BackendType,
45 46
46 kLast_BackendType = kVulkan_BackendType 47 kLast_BackendType = kRaster_BackendType
47 }; 48 };
48 enum { 49 enum {
49 kBackendTypeCount = kLast_BackendType + 1 50 kBackendTypeCount = kLast_BackendType + 1
50 }; 51 };
51 52
52 virtual bool attach(BackendType attachType, const DisplayParams& params) = 0; 53 virtual bool attach(BackendType attachType, const DisplayParams& params) = 0;
53 void detach(); 54 void detach();
54 55
55 // input handling 56 // input handling
56 enum class Key { 57 enum class Key {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 virtual void onInval() = 0; 186 virtual void onInval() = 0;
186 187
187 // Uncheck fIsContentInvalided to allow future inval/onInval. 188 // Uncheck fIsContentInvalided to allow future inval/onInval.
188 void markInvalProcessed(); 189 void markInvalProcessed();
189 190
190 bool fIsContentInvalidated = false; // use this to avoid duplicate invalida te events 191 bool fIsContentInvalidated = false; // use this to avoid duplicate invalida te events
191 }; 192 };
192 193
193 } // namespace sk_app 194 } // namespace sk_app
194 #endif 195 #endif
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/RasterWindowContext.h ('k') | tools/viewer/sk_app/android/RasterWindowContext_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698