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

Side by Side Diff: gpu/command_buffer/client/gpu_memory_buffer_tracker.h

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Updated the extension documentation Created 7 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
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_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_
7
8 #include <GLES2/gl2.h>
9
10 #include "../common/gles2_cmd_format.h"
11 #include "gles2_impl_export.h"
12
13 namespace gpu {
14 class GpuMemoryBuffer;
15
16 namespace gles2 {
17
18 // Interface for tracking GpuMemoryBuffers.
19 class GLES2_IMPL_EXPORT GpuMemoryBufferTracker {
20 public:
21 virtual ~GpuMemoryBufferTracker() {}
22
23 virtual GLuint CreateBuffer(GLsizei width, GLsizei height) = 0;
24 virtual GpuMemoryBuffer* GetBuffer(GLuint image_id) = 0;
25 virtual void RemoveBuffer(GLuint image_id) = 0;
26 };
27
28 } // namespace gles2
29 } // namespace gpu
30
31 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698