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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2915673003: ui/gfx: Use separate components for color_space and switches (Closed)
Patch Set: Review feedback Created 3 years, 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <limits> 10 #include <limits>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 60 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
61 #include "third_party/WebKit/public/platform/WebCompositeAndReadbackAsyncCallbac k.h" 61 #include "third_party/WebKit/public/platform/WebCompositeAndReadbackAsyncCallbac k.h"
62 #include "third_party/WebKit/public/platform/WebCompositorMutatorClient.h" 62 #include "third_party/WebKit/public/platform/WebCompositorMutatorClient.h"
63 #include "third_party/WebKit/public/platform/WebLayoutAndPaintAsyncCallback.h" 63 #include "third_party/WebKit/public/platform/WebLayoutAndPaintAsyncCallback.h"
64 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h" 64 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h"
65 #include "third_party/WebKit/public/platform/WebSize.h" 65 #include "third_party/WebKit/public/platform/WebSize.h"
66 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h" 66 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h"
67 #include "third_party/WebKit/public/web/WebKit.h" 67 #include "third_party/WebKit/public/web/WebKit.h"
68 #include "third_party/WebKit/public/web/WebSelection.h" 68 #include "third_party/WebKit/public/web/WebSelection.h"
69 #include "third_party/skia/include/core/SkImage.h" 69 #include "third_party/skia/include/core/SkImage.h"
70 #include "ui/gfx/color_space_switches.h"
70 #include "ui/gfx/switches.h" 71 #include "ui/gfx/switches.h"
71 #include "ui/gl/gl_switches.h" 72 #include "ui/gl/gl_switches.h"
72 #include "ui/native_theme/native_theme_features.h" 73 #include "ui/native_theme/native_theme_features.h"
73 #include "ui/native_theme/overlay_scrollbar_constants_aura.h" 74 #include "ui/native_theme/overlay_scrollbar_constants_aura.h"
74 75
75 namespace base { 76 namespace base {
76 class Value; 77 class Value;
77 } 78 }
78 79
79 namespace cc { 80 namespace cc {
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { 1249 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) {
1249 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( 1250 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>(
1250 std::move(callback), base::ThreadTaskRunnerHandle::Get())); 1251 std::move(callback), base::ThreadTaskRunnerHandle::Get()));
1251 } 1252 }
1252 1253
1253 void RenderWidgetCompositor::RequestBeginMainFrameNotExpected(bool new_state) { 1254 void RenderWidgetCompositor::RequestBeginMainFrameNotExpected(bool new_state) {
1254 layer_tree_host_->RequestBeginMainFrameNotExpected(new_state); 1255 layer_tree_host_->RequestBeginMainFrameNotExpected(new_state);
1255 } 1256 }
1256 1257
1257 } // namespace content 1258 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698