OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "components/view_manager/gles2/command_buffer_driver.h" | 5 #include "components/view_manager/gles2/command_buffer_driver.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "components/view_manager/gles2/command_buffer_type_conversions.h" | 10 #include "components/view_manager/gles2/command_buffer_type_conversions.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 class MemoryTrackerStub : public gpu::gles2::MemoryTracker { | 37 class MemoryTrackerStub : public gpu::gles2::MemoryTracker { |
38 public: | 38 public: |
39 MemoryTrackerStub() {} | 39 MemoryTrackerStub() {} |
40 | 40 |
41 void TrackMemoryAllocatedChange( | 41 void TrackMemoryAllocatedChange( |
42 size_t old_size, | 42 size_t old_size, |
43 size_t new_size, | 43 size_t new_size, |
44 gpu::gles2::MemoryTracker::Pool pool) override {} | 44 gpu::gles2::MemoryTracker::Pool pool) override {} |
45 | 45 |
46 bool EnsureGPUMemoryAvailable(size_t size_needed) override { return true; }; | 46 bool EnsureGPUMemoryAvailable(size_t size_needed) override { return true; }; |
| 47 uint64_t ClientTracingId() const override { return 0; } |
| 48 int ClientId() const override { return 0; } |
47 | 49 |
48 private: | 50 private: |
49 ~MemoryTrackerStub() override {} | 51 ~MemoryTrackerStub() override {} |
50 | 52 |
51 DISALLOW_COPY_AND_ASSIGN(MemoryTrackerStub); | 53 DISALLOW_COPY_AND_ASSIGN(MemoryTrackerStub); |
52 }; | 54 }; |
53 | 55 |
54 } // anonymous namespace | 56 } // anonymous namespace |
55 | 57 |
56 CommandBufferDriver::Client::~Client() { | 58 CommandBufferDriver::Client::~Client() { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 355 |
354 void CommandBufferDriver::DestroyDecoder() { | 356 void CommandBufferDriver::DestroyDecoder() { |
355 if (decoder_) { | 357 if (decoder_) { |
356 bool have_context = decoder_->MakeCurrent(); | 358 bool have_context = decoder_->MakeCurrent(); |
357 decoder_->Destroy(have_context); | 359 decoder_->Destroy(have_context); |
358 decoder_.reset(); | 360 decoder_.reset(); |
359 } | 361 } |
360 } | 362 } |
361 | 363 |
362 } // namespace gles2 | 364 } // namespace gles2 |
OLD | NEW |