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

Issue 12377013: Add export directives needed by Chromium WM project. (Closed)

Created:
7 years, 9 months ago by reveman
Modified:
6 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, apatrick_chromium, danakj
Visibility:
Public.

Description

Add export directives needed by Chromium WM project. BUG=124444

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M content/browser/gpu/browser_gpu_channel_host_factory.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/image_transport_factory.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/common/gpu/client/gl_helper.h View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
reveman
7 years, 9 months ago (2013-02-28 07:35:01 UTC) #1
piman
+jam, content API gatekeeper. We have a general policy in Chrome that the clients of ...
7 years, 9 months ago (2013-02-28 17:40:09 UTC) #2
reveman
On 2013/02/28 17:40:09, piman wrote: > +jam, content API gatekeeper. > > We have a ...
7 years, 9 months ago (2013-02-28 19:17:06 UTC) #3
piman
On Thu, Feb 28, 2013 at 11:17 AM, <reveman@chromium.org> wrote: > On 2013/02/28 17:40:09, piman ...
7 years, 9 months ago (2013-03-01 02:14:16 UTC) #4
jam
7 years, 9 months ago (2013-03-01 19:00:49 UTC) #5
On 2013/03/01 02:14:16, piman wrote:
> On Thu, Feb 28, 2013 at 11:17 AM, <mailto:reveman@chromium.org> wrote:
> 
> > On 2013/02/28 17:40:09, piman wrote:
> >
> >> +jam, content API gatekeeper.
> >>
> >
> >  We have a general policy in Chrome that the clients of content should
> >> only go
> >> through the content public API (in content/public). In a way, it seems
> >> that we
> >> have an even stronger case for this if the client is in a separate repo.
> >>
> >
> >  Should we expose what you need in the content API? Which parts do you need
> >> exactly?
> >>
> >
> > Makes sense. Here's the code that consumes this:
> > https://codereview.chromium.**org/11485006/diff/24007/wm/**
> >
>
gpu/foreign_window_texture_**factory.cc<https://codereview.chromium.org/11485006/diff/24007/wm/gpu/foreign_window_texture_factory.cc>
> >
> > It's using BrowserGpuChannelHostFactory::**CreateImage/DeleteImage to
> > create
> > images that can be bound to textures.
> >
> > It's using ImageTransportFactory::**GetInstance() and the observers
> > interface that
> > class provides to be notified of lost context situations.
> >
> > It's using ImageTransportFactory::**GetGLHelper() and GLHelper::context()
> > to get
> > the appropriated WebGraphicsContext3D to be used for texture bindings.
> >
> 
> So yeah, it seems we could do a minimal singleton API, with
> CreateImage/DeleteImage/GetSharedContext/SetLostReourcesCallback or
> something along these lines. It would only be implemented on Aura, probably
> by the ImageTransportFactory.
> 
> Maybe work with jam@ to see if that's ok to add on the content API.
> 
> Antoine

yeah your code shouldn't use any content code other than content/public.

can you give a proposal for a public api per Antoine's suggestion and we can
discuss from there?

in your other change that you linked to, make sure that DEPS only allows
content/public and not content

Powered by Google App Engine
This is Rietveld 408576698