| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/compositor/gpu_process_transport_factory.h" | 5 #include "content/browser/compositor/gpu_process_transport_factory.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 using gpu::gles2::GLES2Interface; | 65 using gpu::gles2::GLES2Interface; |
| 66 | 66 |
| 67 static const int kNumRetriesBeforeSoftwareFallback = 4; | 67 static const int kNumRetriesBeforeSoftwareFallback = 4; |
| 68 | 68 |
| 69 namespace content { | 69 namespace content { |
| 70 namespace { | 70 namespace { |
| 71 | 71 |
| 72 class RasterThread : public base::SimpleThread { | 72 class RasterThread : public base::SimpleThread { |
| 73 public: | 73 public: |
| 74 RasterThread(cc::TaskGraphRunner* task_graph_runner) | 74 RasterThread(cc::TaskGraphRunner* task_graph_runner) |
| 75 : base::SimpleThread("UICompositorWorker"), | 75 : base::SimpleThread("CompositorTileWorker1"), |
| 76 task_graph_runner_(task_graph_runner) {} | 76 task_graph_runner_(task_graph_runner) {} |
| 77 | 77 |
| 78 // Overridden from base::SimpleThread: | 78 // Overridden from base::SimpleThread: |
| 79 void Run() override { task_graph_runner_->Run(); } | 79 void Run() override { task_graph_runner_->Run(); } |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 cc::TaskGraphRunner* task_graph_runner_; | 82 cc::TaskGraphRunner* task_graph_runner_; |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(RasterThread); | 84 DISALLOW_COPY_AND_ASSIGN(RasterThread); |
| 85 }; | 85 }; |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, | 586 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, |
| 587 observer_list_, | 587 observer_list_, |
| 588 OnLostResources()); | 588 OnLostResources()); |
| 589 | 589 |
| 590 // Kill things that use the shared context before killing the shared context. | 590 // Kill things that use the shared context before killing the shared context. |
| 591 lost_gl_helper.reset(); | 591 lost_gl_helper.reset(); |
| 592 lost_shared_main_thread_contexts = NULL; | 592 lost_shared_main_thread_contexts = NULL; |
| 593 } | 593 } |
| 594 | 594 |
| 595 } // namespace content | 595 } // namespace content |
| OLD | NEW |