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

Side by Side Diff: src/gpu/GrGpuCommandBuffer.h

Issue 2038583002: Add GpuCommandBuffer support. (Closed) Base URL: https://skia.googlesource.com/skia.git@secondaryCB
Patch Set: Created 4 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 | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrGpuCommandBuffer_DEFINED
9 #define GrGpuCommandBuffer_DEFINED
10
11 #include "GrColor.h"
12
13 class GrRenderTarget;
14
15 class GrGpuCommandBuffer {
16 public:
17 enum LoadAndStoreOp {
18 kLoadAndStore_LoadAndStoreOp,
19 kLoadAndDiscard_LoadAndStoreOp,
20 kClearAndStore_LoadAndStoreOp,
21 kClearAndDiscard_LoadAndStoreOp,
22 kDiscardAndStore_LoadAndStoreOp,
23 kDiscardAndDiscard_LoadAndStoreOp,
24 };
25
26 GrGpuCommandBuffer() {}
27 virtual ~GrGpuCommandBuffer() {}
28
29 // Signals the end of recording to the command buffer and that it can now be submitted.
30 virtual void end() = 0;
31
32 // Sends the command buffer off to the GPU object to execute the commands bu ilt up in the
33 // buffer. The gpu object is allowed to defer execution of the commands unti l it is flushed.
34 virtual void submit() = 0;
35 };
36
37 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGLGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698