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

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

Issue 23234003: Support stream textures with the synchronous compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: this time for real Created 7 years, 4 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "gpu/command_buffer/service/gl_utils.h"
10 9
11 namespace gpu { 10 namespace gpu {
12 11
13 class StreamTexture; 12 class StreamTexture;
14 13
15 // Interface used by the cmd decoder to create and lookup stream textures. 14 // Interface used by the cmd decoder to create and lookup stream textures.
16 class StreamTextureManager { 15 class StreamTextureManager {
17 public: 16 public:
18 StreamTextureManager() { 17 StreamTextureManager() {
19 } 18 }
20 19
21 virtual ~StreamTextureManager() { 20 virtual ~StreamTextureManager() {
22 } 21 }
23 22
24 // Returns an identifier for the object, or NULL if not successful. 23 // Returns an identifier for the object, or NULL if not successful.
25 virtual GLuint CreateStreamTexture(uint32 service_id, 24 virtual uint32 CreateStreamTexture(uint32 service_id, uint32 client_id) = 0;
26 uint32 client_id) = 0;
27 25
28 virtual void DestroyStreamTexture(uint32 service_id) = 0; 26 virtual void DestroyStreamTexture(uint32 service_id) = 0;
29 27
30 virtual StreamTexture* LookupStreamTexture(uint32 service_id) = 0; 28 virtual StreamTexture* LookupStreamTexture(uint32 service_id) = 0;
31 29
32 private: 30 private:
33 DISALLOW_COPY_AND_ASSIGN(StreamTextureManager); 31 DISALLOW_COPY_AND_ASSIGN(StreamTextureManager);
34 }; 32 };
35 33
36 } // namespace gpu 34 } // namespace gpu
37 35
38 #endif // GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_H_ 36 #endif // GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698