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

Unified Diff: tools/viewer/sk_app/Window.cpp

Issue 1990893002: Revert of Add OpenGL context to Viewer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/viewer/sk_app/Window.h ('k') | tools/viewer/sk_app/WindowContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/sk_app/Window.cpp
diff --git a/tools/viewer/sk_app/Window.cpp b/tools/viewer/sk_app/Window.cpp
index dc0bf995d00cb9a32a6c0f857d56c75db7705c5d..47053be5afc5a503f398316238bdda317fd94ead 100644
--- a/tools/viewer/sk_app/Window.cpp
+++ b/tools/viewer/sk_app/Window.cpp
@@ -53,7 +53,7 @@
}
void Window::onPaint() {
- sk_sp<SkSurface> backbuffer = fWindowContext->getBackbufferSurface();
+ SkSurface* backbuffer = fWindowContext->getBackbufferSurface();
if (backbuffer) {
// draw into the canvas of this surface
SkCanvas* canvas = backbuffer->getCanvas();
@@ -66,6 +66,7 @@
} else {
// try recreating testcontext
}
+
}
void Window::onResize(uint32_t w, uint32_t h) {
« no previous file with comments | « tools/viewer/sk_app/Window.h ('k') | tools/viewer/sk_app/WindowContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698