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

Side by Side Diff: components/view_manager/gles2/command_buffer_driver.cc

Issue 1256613002: Add tracing for GL texture objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browser_process_id
Patch Set: Key texture manager memory dump provider registration off of memory_tracker_ Created 5 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
« no previous file with comments | « cc/resources/shared_bitmap.cc ('k') | content/browser/compositor/buffer_queue_unittest.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 // 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
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
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
OLDNEW
« no previous file with comments | « cc/resources/shared_bitmap.cc ('k') | content/browser/compositor/buffer_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698