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

Side by Side Diff: tools/viewer/sk_app/GLWindowContext.cpp

Issue 2182273002: SW backend for viewer on Windows (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 4 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 | « tools/viewer/sk_app/GLWindowContext.h ('k') | tools/viewer/sk_app/VulkanWindowContext.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 /* 2 /*
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 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 #include "GrContext.h" 9 #include "GrContext.h"
10 #include "SkSurface.h" 10 #include "SkSurface.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 return fSurface; 88 return fSurface;
89 } 89 }
90 90
91 void GLWindowContext::swapBuffers() { 91 void GLWindowContext::swapBuffers() {
92 this->presentRenderSurface(fSurface, fRenderTarget, fActualColorBits); 92 this->presentRenderSurface(fSurface, fRenderTarget, fActualColorBits);
93 this->onSwapBuffers(); 93 this->onSwapBuffers();
94 } 94 }
95 95
96 void GLWindowContext::resize(uint32_t w, uint32_t h) { 96 void GLWindowContext::resize(int w, int h) {
97 this->destroyContext(); 97 this->destroyContext();
98 this->initializeContext(); 98 this->initializeContext();
99 } 99 }
100 100
101 void GLWindowContext::setDisplayParams(const DisplayParams& params) { 101 void GLWindowContext::setDisplayParams(const DisplayParams& params) {
102 this->destroyContext(); 102 this->destroyContext();
103 fDisplayParams = params; 103 fDisplayParams = params;
104 this->initializeContext(); 104 this->initializeContext();
105 } 105 }
106 106
107 } //namespace sk_app 107 } //namespace sk_app
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/GLWindowContext.h ('k') | tools/viewer/sk_app/VulkanWindowContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698