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

Side by Side Diff: bench/GLBench.h

Issue 2288033003: Turned on SkSL->GLSL compiler (Closed)
Patch Set: changed <iostream> to <ostream> Created 4 years, 2 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 | « no previous file | bench/GLBench.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 2015 Google Inc. 2 * Copyright 2015 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 GLBench_DEFINED 8 #ifndef GLBench_DEFINED
9 #define GLBench_DEFINED 9 #define GLBench_DEFINED
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 protected: 29 protected:
30 const GrGLContext* getGLContext(SkCanvas*); 30 const GrGLContext* getGLContext(SkCanvas*);
31 virtual const GrGLContext* onGetGLContext(const GrGLContext* ctx) { return c tx; } 31 virtual const GrGLContext* onGetGLContext(const GrGLContext* ctx) { return c tx; }
32 void onPreDraw(SkCanvas*) override; 32 void onPreDraw(SkCanvas*) override;
33 virtual void setup(const GrGLContext*)=0; 33 virtual void setup(const GrGLContext*)=0;
34 void onPostDraw(SkCanvas* canvas) override; 34 void onPostDraw(SkCanvas* canvas) override;
35 virtual void teardown(const GrGLInterface*)=0; 35 virtual void teardown(const GrGLInterface*)=0;
36 void onDraw(int loops, SkCanvas*) override; 36 void onDraw(int loops, SkCanvas*) override;
37 virtual void glDraw(int loops, const GrGLContext*)=0; 37 virtual void glDraw(int loops, const GrGLContext*)=0;
38 static GrGLuint CompileShader(const GrGLInterface*, const char* shaderSrc, G rGLenum type); 38 static GrGLuint CompileShader(const GrGLContext*, const char* shaderSrc, GrG Lenum type);
39 static GrGLuint CreateProgram(const GrGLInterface*, const char* vshader, con st char* fshader); 39 static GrGLuint CreateProgram(const GrGLContext*, const char* vshader, const char* fshader);
40 static GrGLuint SetupFramebuffer(const GrGLInterface*, int screenWidth, int screenHeight); 40 static GrGLuint SetupFramebuffer(const GrGLInterface*, int screenWidth, int screenHeight);
41 static void DumpImage(const GrGLInterface* gl, uint32_t screenWidth, uint32_ t screenHeight, 41 static void DumpImage(const GrGLInterface* gl, uint32_t screenWidth, uint32_ t screenHeight,
42 const char* filename); 42 const char* filename);
43 43
44 44
45 private: 45 private:
46 typedef Benchmark INHERITED; 46 typedef Benchmark INHERITED;
47 }; 47 };
48 48
49 49
50 #endif 50 #endif
51 #endif 51 #endif
OLDNEW
« no previous file with comments | « no previous file | bench/GLBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698