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

Side by Side Diff: bench/nanobenchAndroid.cpp

Issue 1194783003: Implement SkGLContext swapBuffers with fence syncs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: windows build Created 5 years, 6 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 | « bench/nanobenchAndroid.h ('k') | include/gpu/gl/GrGLInterface.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 * 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 #include "nanobenchAndroid.h" 8 #include "nanobenchAndroid.h"
9 9
10 #include "AnimationContext.h" 10 #include "AnimationContext.h"
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 void HWUITarget::endTiming() { 37 void HWUITarget::endTiming() {
38 this->renderer.finishDrawing(); 38 this->renderer.finishDrawing();
39 } 39 }
40 40
41 void HWUITarget::fence() { 41 void HWUITarget::fence() {
42 this->renderer.proxy->fence(); 42 this->renderer.proxy->fence();
43 } 43 }
44 44
45 bool HWUITarget::needsFrameTiming() const { 45 bool HWUITarget::needsFrameTiming(int* frameLag) const {
46 extern int FLAGS_gpuFrameLag;
47 *frameLag = FLAGS_gpuFrameLag;
46 return true; 48 return true;
47 } 49 }
48 50
49 bool HWUITarget::init(SkImageInfo info, Benchmark* bench) { 51 bool HWUITarget::init(SkImageInfo info, Benchmark* bench) {
50 this->renderer.initialize({bench->getSize().x(), bench->getSize().y()}); 52 this->renderer.initialize({bench->getSize().x(), bench->getSize().y()});
51 return true; 53 return true;
52 } 54 }
53 55
54 bool HWUITarget::capturePixels(SkBitmap* bmp) { 56 bool HWUITarget::capturePixels(SkBitmap* bmp) {
55 return this->renderer.capturePixels(bmp); 57 return this->renderer.capturePixels(bmp);
56 } 58 }
57 59
58 60
OLDNEW
« no previous file with comments | « bench/nanobenchAndroid.h ('k') | include/gpu/gl/GrGLInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698