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

Side by Side Diff: gpu/command_buffer/service/gpu_state_tracer.h

Issue 23926013: gpu: Record GL state to trace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git cl format ftw. Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GPU_STATE_TRACER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_STATE_TRACER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10
11 namespace gpu {
12 namespace gles2 {
13
14 class ContextState;
15
16 // Saves GPU state such as framebuffer contents while tracing.
17 class GPUStateTracer {
18 public:
19 static scoped_ptr<GPUStateTracer> Create(const ContextState* state);
20 ~GPUStateTracer();
21
22 void TakeSnapshot();
23
24 private:
25 explicit GPUStateTracer(const ContextState* state);
26 void TakeSnapshot(const ContextState* state);
27
28 const ContextState* state_;
29 DISALLOW_COPY_AND_ASSIGN(GPUStateTracer);
30 };
31
32 } // namespace gles2
33 } // namespace gpu
34
35 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_STATE_TRACER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698