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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 274673004: Add Dashing gpu effect for simple dashed lines (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move DrawDashLine into namespace Created 6 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 unified diff | Download patch
« no previous file with comments | « include/gpu/SkGpuDevice.h ('k') | src/gpu/SkGpuDevice.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 2011 Google Inc. 2 * Copyright 2011 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 #include "SampleApp.h" 7 #include "SampleApp.h"
8 8
9 #include "SkData.h" 9 #include "SkData.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #ifdef PIPE_FILE 71 #ifdef PIPE_FILE
72 #define FILE_PATH "/path/to/drawing.data" 72 #define FILE_PATH "/path/to/drawing.data"
73 #endif 73 #endif
74 74
75 #define PIPE_NETx 75 #define PIPE_NETx
76 #ifdef PIPE_NET 76 #ifdef PIPE_NET
77 #include "SkSockets.h" 77 #include "SkSockets.h"
78 SkTCPServer gServer; 78 SkTCPServer gServer;
79 #endif 79 #endif
80 80
81 #define USE_ARROWS_FOR_ZOOM false 81 #define USE_ARROWS_FOR_ZOOM true
82 82
83 #if SK_ANGLE 83 #if SK_ANGLE
84 //#define DEFAULT_TO_ANGLE 1 84 //#define DEFAULT_TO_ANGLE 1
85 #else 85 #else
86 #define DEFAULT_TO_GPU 0 // if 1 default rendering is on GPU 86 #define DEFAULT_TO_GPU 0 // if 1 default rendering is on GPU
87 #endif 87 #endif
88 88
89 #define ANIMATING_EVENTTYPE "nextSample" 89 #define ANIMATING_EVENTTYPE "nextSample"
90 #define ANIMATING_DELAY 250 90 #define ANIMATING_DELAY 250
91 91
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 SkGraphics::Init(); 2558 SkGraphics::Init();
2559 SkEvent::Init(); 2559 SkEvent::Init();
2560 } 2560 }
2561 2561
2562 // FIXME: this should be in a header 2562 // FIXME: this should be in a header
2563 void application_term(); 2563 void application_term();
2564 void application_term() { 2564 void application_term() {
2565 SkEvent::Term(); 2565 SkEvent::Term();
2566 SkGraphics::Term(); 2566 SkGraphics::Term();
2567 } 2567 }
OLDNEW
« no previous file with comments | « include/gpu/SkGpuDevice.h ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698