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

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 1749573002: CC Animation: Erase old animation system in UI Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eraseblink
Patch Set: Exclude histograms.xml Created 4 years, 9 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 | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | ui/compositor/compositor.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 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 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 ReflectorImpl* reflector; 92 ReflectorImpl* reflector;
93 scoped_ptr<cc::OnscreenDisplayClient> display_client; 93 scoped_ptr<cc::OnscreenDisplayClient> display_client;
94 94
95 PerCompositorData() : surface_id(0), surface(nullptr), reflector(nullptr) {} 95 PerCompositorData() : surface_id(0), surface(nullptr), reflector(nullptr) {}
96 }; 96 };
97 97
98 GpuProcessTransportFactory::GpuProcessTransportFactory() 98 GpuProcessTransportFactory::GpuProcessTransportFactory()
99 : next_surface_id_namespace_(1u), 99 : next_surface_id_namespace_(1u),
100 task_graph_runner_(new cc::SingleThreadTaskGraphRunner), 100 task_graph_runner_(new cc::SingleThreadTaskGraphRunner),
101 callback_factory_(this) { 101 callback_factory_(this) {
102 ui::Layer::InitializeUILayerSettings();
103 cc::SetClientNameForMetrics("Browser"); 102 cc::SetClientNameForMetrics("Browser");
104 103
105 surface_manager_ = make_scoped_ptr(new cc::SurfaceManager); 104 surface_manager_ = make_scoped_ptr(new cc::SurfaceManager);
106 105
107 task_graph_runner_->Start("CompositorTileWorker1", 106 task_graph_runner_->Start("CompositorTileWorker1",
108 base::SimpleThread::Options()); 107 base::SimpleThread::Options());
109 #if defined(OS_WIN) 108 #if defined(OS_WIN)
110 software_backing_.reset(new OutputDeviceBacking); 109 software_backing_.reset(new OutputDeviceBacking);
111 #endif 110 #endif
112 } 111 }
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, 646 FOR_EACH_OBSERVER(ImageTransportFactoryObserver,
648 observer_list_, 647 observer_list_,
649 OnLostResources()); 648 OnLostResources());
650 649
651 // Kill things that use the shared context before killing the shared context. 650 // Kill things that use the shared context before killing the shared context.
652 lost_gl_helper.reset(); 651 lost_gl_helper.reset();
653 lost_shared_main_thread_contexts = NULL; 652 lost_shared_main_thread_contexts = NULL;
654 } 653 }
655 654
656 } // namespace content 655 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698