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

Side by Side Diff: tools/vulkan/android/Window_android.h

Issue 1935523002: Fix Vulkan Build in Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Restore Created 4 years, 7 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 | « src/gpu/vk/GrVkGpu.cpp ('k') | tools/vulkan/android/Window_android.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 * 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_android_DEFINED 8 #ifndef Window_android_DEFINED
9 #define Window_android_DEFINED 9 #define Window_android_DEFINED
10 10
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 Window_android() : Window() {} 23 Window_android() : Window() {}
24 ~Window_android() override {} 24 ~Window_android() override {}
25 25
26 bool init(android_app* app_state); 26 bool init(android_app* app_state);
27 void initDisplay(ANativeWindow* window); 27 void initDisplay(ANativeWindow* window);
28 28
29 void setTitle(const char*) override; 29 void setTitle(const char*) override;
30 void show() override {} 30 void show() override {}
31 31
32 bool attach(BackEndType attachType, int msaaSampleCount, AttachmentInfo*) ov erride; 32 bool attach(BackEndType attachType, int msaaSampleCount) override;
33 void inval() override; 33 void inval() override;
34 34
35 void paintIfNeeded(); 35 void paintIfNeeded();
36 36
37 bool scaleContentToFit() const override { return true; } 37 bool scaleContentToFit() const override { return true; }
38 bool supportsContentRect() const override { return true; } 38 bool supportsContentRect() const override { return true; }
39 SkRect getContentRect() override { return mContentRect; } 39 SkRect getContentRect() override { return mContentRect; }
40 void setContentRect(int l, int t, int r, int b) { mContentRect.set(l,t,r,b); } 40 void setContentRect(int l, int t, int r, int b) { mContentRect.set(l,t,r,b); }
41 41
42 private: 42 private:
43 android_app* mApp = nullptr; 43 android_app* mApp = nullptr;
44 SkRect mContentRect; 44 SkRect mContentRect;
45 int mSampleCount = 0; 45 int mSampleCount = 0;
46 }; 46 };
47 47
48 #endif 48 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | tools/vulkan/android/Window_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698