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

Unified Diff: media/tools/shader_bench/gpu_painter.cc

Issue 7021014: GLContext no longer holds a pointer to a GLSurface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: media/tools/shader_bench/gpu_painter.cc
===================================================================
--- media/tools/shader_bench/gpu_painter.cc (revision 86168)
+++ media/tools/shader_bench/gpu_painter.cc (working copy)
@@ -25,13 +25,16 @@
static const unsigned int kErrorSize = 4096;
GPUPainter::GPUPainter()
- : context_(NULL) {
+ : surface_(NULL),
+ context_(NULL) {
}
GPUPainter::~GPUPainter() {
}
-void GPUPainter::SetGLContext(gfx::GLContext* context) {
+void GPUPainter::SetGLContext(gfx::GLSurface* surface,
+ gfx::GLContext* context) {
+ surface_ = surface;
context_ = context;
}

Powered by Google App Engine
This is Rietveld 408576698