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

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

Issue 663363002: Standardize usage of virtual/override/final in gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update generator script Created 6 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_DECODER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_COMMON_DECODER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_COMMON_DECODER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_COMMON_DECODER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <stack> 9 #include <stack>
10 #include <string> 10 #include <string>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 return temp <= size_ && temp >= offset; 88 return temp <= size_ && temp >= offset;
89 } 89 }
90 90
91 size_t size_; 91 size_t size_;
92 ::scoped_ptr<int8[]> data_; 92 ::scoped_ptr<int8[]> data_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(Bucket); 94 DISALLOW_COPY_AND_ASSIGN(Bucket);
95 }; 95 };
96 96
97 CommonDecoder(); 97 CommonDecoder();
98 virtual ~CommonDecoder(); 98 ~CommonDecoder() override;
99 99
100 // Sets the engine, to get shared memory buffers from, and to set the token 100 // Sets the engine, to get shared memory buffers from, and to set the token
101 // to. 101 // to.
102 void set_engine(CommandBufferEngine* engine) { 102 void set_engine(CommandBufferEngine* engine) {
103 engine_ = engine; 103 engine_ = engine;
104 } 104 }
105 CommandBufferEngine* engine() const { return engine_; } 105 CommandBufferEngine* engine() const { return engine_; }
106 106
107 // Creates a bucket. If the bucket already exists returns that bucket. 107 // Creates a bucket. If the bucket already exists returns that bucket.
108 Bucket* CreateBucket(uint32 bucket_id); 108 Bucket* CreateBucket(uint32 bucket_id);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 CommandBufferEngine* engine_; 166 CommandBufferEngine* engine_;
167 167
168 typedef std::map<uint32, linked_ptr<Bucket> > BucketMap; 168 typedef std::map<uint32, linked_ptr<Bucket> > BucketMap;
169 BucketMap buckets_; 169 BucketMap buckets_;
170 }; 170 };
171 171
172 } // namespace gpu 172 } // namespace gpu
173 173
174 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMON_DECODER_H_ 174 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMON_DECODER_H_
175 175
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/command_buffer_service.h ('k') | gpu/command_buffer/service/common_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698