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

Issue 8558030: Prepare Chromium for WebCompositor::initialize. (Closed)

Created:
9 years, 1 month ago by nduca
Modified:
9 years, 1 month ago
Reviewers:
tony, sky, piman
CC:
chromium-reviews, jonathan.backer, Ian Vollick, jam, apatrick_chromium, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org
Visibility:
Public.

Description

Prepare Chromium for WebCompositor::initialize. Currently, we have two duplicate mechanisms for telling the compositor to go into threaded mode. First, you set WebCompositor::setThread, then you pass enableCompositorThread via WebPreferences. We're moving to a global initialize/shutdown flow on the compositor. This is a breaking change on the WebKit API so this change prepares us for it. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110794

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -9 lines) Patch
M content/renderer/gpu/compositor_thread.h View 1 chunk +2 lines, -0 lines 1 comment Download
M content/renderer/gpu/compositor_thread.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 2 chunks +12 lines, -0 lines 0 comments Download
M ui/aura/desktop.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M ui/gfx/compositor/compositor_cc.h View 1 chunk +2 lines, -2 lines 1 comment Download
M ui/gfx/compositor/compositor_cc.cc View 1 chunk +15 lines, -6 lines 1 comment Download
M webkit/glue/webpreferences.cc View 2 chunks +3 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
nduca
9 years, 1 month ago (2011-11-18 23:18:40 UTC) #1
piman
lgtm http://codereview.chromium.org/8558030/diff/1/ui/gfx/compositor/compositor_cc.cc File ui/gfx/compositor/compositor_cc.cc (right): http://codereview.chromium.org/8558030/diff/1/ui/gfx/compositor/compositor_cc.cc#newcode152 ui/gfx/compositor/compositor_cc.cc:152: DCHECK(g_compositor_thread); remove DCHECK, since it'll fail if use_thread ...
9 years, 1 month ago (2011-11-18 23:21:56 UTC) #2
sky
LGTM http://codereview.chromium.org/8558030/diff/1/content/renderer/gpu/compositor_thread.h File content/renderer/gpu/compositor_thread.h (right): http://codereview.chromium.org/8558030/diff/1/content/renderer/gpu/compositor_thread.h#newcode37 content/renderer/gpu/compositor_thread.h:37: webkit_glue::WebThreadImpl* GetWebThread() const { return thread_.get(); } nit: ...
9 years, 1 month ago (2011-11-18 23:27:29 UTC) #3
tony
Can you elaborate on the change description a bit? What are you doing to prepare ...
9 years, 1 month ago (2011-11-18 23:30:08 UTC) #4
nduca
On 2011/11/18 23:30:08, tony wrote: > Can you elaborate on the change description a bit? ...
9 years, 1 month ago (2011-11-18 23:32:37 UTC) #5
tony
9 years, 1 month ago (2011-11-19 00:10:36 UTC) #6
On 2011/11/18 23:32:37, nduca wrote:
> On 2011/11/18 23:30:08, tony wrote:
>
http://codereview.chromium.org/8558030/diff/1/webkit/glue/webpreferences.cc#n...
> > webkit/glue/webpreferences.cc:11: #include
> > "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h"
> > Is this needed for this change or you're just doing it preemptively?
> 
> This pulls in the define we need for the ifdef that follows.

I see, WEBCOMPOSITOR_HAS_INITIALIZE doesn't exist yet, but it will soon.  Got
it.

LGTM

Powered by Google App Engine
This is Rietveld 408576698