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

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

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « gpu/command_buffer/service/precompile.h ('k') | gpu/command_buffer/service/resource.cc » ('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 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 14 matching lines...) Expand all
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 32
33 // This file contains the definition for resource classes and the resource map. 33 // This file contains the definition for resource classes and the resource map.
34 34
35 #ifndef GPU_COMMAND_BUFFER_SERVICE_CROSS_RESOURCE_H_ 35 #ifndef GPU_COMMAND_BUFFER_SERVICE_RESOURCE_H_
36 #define GPU_COMMAND_BUFFER_SERVICE_CROSS_RESOURCE_H_ 36 #define GPU_COMMAND_BUFFER_SERVICE_RESOURCE_H_
37 37
38 #include <vector> 38 #include <vector>
39 #include "base/scoped_ptr.h" 39 #include "base/scoped_ptr.h"
40 #include "gpu/command_buffer/common/resource.h" 40 #include "gpu/command_buffer/common/resource.h"
41 41
42 namespace command_buffer { 42 namespace gpu {
43 43
44 // Base class for resources, just providing a common Destroy function. 44 // Base class for resources, just providing a common Destroy function.
45 class Resource { 45 class Resource {
46 public: 46 public:
47 Resource() {} 47 Resource() {}
48 virtual ~Resource() {} 48 virtual ~Resource() {}
49 private: 49 private:
50 DISALLOW_COPY_AND_ASSIGN(Resource); 50 DISALLOW_COPY_AND_ASSIGN(Resource);
51 }; 51 };
52 52
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 return container_.DestroyAllResources(); 256 return container_.DestroyAllResources();
257 } 257 }
258 // Gets a resource by ID. 258 // Gets a resource by ID.
259 T *Get(ResourceId id) { 259 T *Get(ResourceId id) {
260 return static_cast<T*>(container_.Get(id)); 260 return static_cast<T*>(container_.Get(id));
261 } 261 }
262 private: 262 private:
263 ResourceMapBase container_; 263 ResourceMapBase container_;
264 }; 264 };
265 265
266 } // namespace command_buffer 266 } // namespace gpu
267 267
268 #endif // GPU_COMMAND_BUFFER_SERVICE_CROSS_RESOURCE_H_ 268 #endif // GPU_COMMAND_BUFFER_SERVICE_RESOURCE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/precompile.h ('k') | gpu/command_buffer/service/resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698