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

Side by Side Diff: debugger/QT/SkGLWidget.cpp

Issue 1753813002: Unbust the old debugger (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « debugger/QT/SkGLWidget.h ('k') | debugger/QT/SkRasterWidget.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 2012 Google Inc. 3 * Copyright 2012 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 9
10 #include "SkGLWidget.h" 10 #include "SkGLWidget.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 SkASSERT(w == this->width() && h == this->height()); 72 SkASSERT(w == this->width() && h == this->height());
73 this->createRenderTarget(); 73 this->createRenderTarget();
74 } 74 }
75 75
76 void SkGLWidget::paintGL() { 76 void SkGLWidget::paintGL() {
77 if (!this->isHidden() && fCanvas) { 77 if (!this->isHidden() && fCanvas) {
78 fCurContext->resetContext(); 78 fCurContext->resetContext();
79 fDebugger->draw(fCanvas.get()); 79 fDebugger->draw(fCanvas.get());
80 // TODO(chudy): Implement an optional flush button in Gui. 80 // TODO(chudy): Implement an optional flush button in Gui.
81 fCanvas->flush(); 81 fCanvas->flush();
82 emit drawComplete(); 82 Q_EMIT drawComplete();
83 } 83 }
84 } 84 }
85 85
86 GrBackendRenderTargetDesc SkGLWidget::getDesc(int w, int h) { 86 GrBackendRenderTargetDesc SkGLWidget::getDesc(int w, int h) {
87 GrBackendRenderTargetDesc desc; 87 GrBackendRenderTargetDesc desc;
88 desc.fWidth = SkScalarRoundToInt(this->width()); 88 desc.fWidth = SkScalarRoundToInt(this->width());
89 desc.fHeight = SkScalarRoundToInt(this->height()); 89 desc.fHeight = SkScalarRoundToInt(this->height());
90 desc.fConfig = kSkia8888_GrPixelConfig; 90 desc.fConfig = kSkia8888_GrPixelConfig;
91 GR_GL_GetIntegerv(fCurIntf, GR_GL_SAMPLES, &desc.fSampleCnt); 91 GR_GL_GetIntegerv(fCurIntf, GR_GL_SAMPLES, &desc.fSampleCnt);
92 GR_GL_GetIntegerv(fCurIntf, GR_GL_STENCIL_BITS, &desc.fStencilBits); 92 GR_GL_GetIntegerv(fCurIntf, GR_GL_STENCIL_BITS, &desc.fStencilBits);
93 GrGLint buffer; 93 GrGLint buffer;
94 GR_GL_GetIntegerv(fCurIntf, GR_GL_FRAMEBUFFER_BINDING, &buffer); 94 GR_GL_GetIntegerv(fCurIntf, GR_GL_FRAMEBUFFER_BINDING, &buffer);
95 desc.fRenderTargetHandle = buffer; 95 desc.fRenderTargetHandle = buffer;
96 96
97 return desc; 97 return desc;
98 } 98 }
99 99
100 #endif 100 #endif
OLDNEW
« no previous file with comments | « debugger/QT/SkGLWidget.h ('k') | debugger/QT/SkRasterWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698