| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a GpuMemoryBuffer implementation on MacOSX that is backed
by IOSurfaces. These GpuMemmoryBuffers provide zero-copy texture
updates when using impl-side painting on MacOSX.
BUG=321785,323338
Review URL: https://codereview.chromium.org/77023002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238841 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
This target is not supported according to OES_EGL_image spec.
BUG=
Review URL: https://codereview.chromium.org/83783006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236980 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
> Disable partial swap on Windows.
>
> Partial swap may be causing some performance problems, so disable it.
>
> BUG=313104
>
> Review URL: https://codereview.chromium.org/79643002
TBR=jbauman@chromium.org
Review URL: https://codereview.chromium.org/82523008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236881 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
CHROMIUM_texture_from_image.
This makes it up to the GLImage implementation to decide if target is supported or not instead of enforcing a restriction at the decoder level.
BUG=321795
Review URL: https://codereview.chromium.org/81103002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236719 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
Partial swap may be causing some performance problems, so disable it.
BUG=313104
Review URL: https://codereview.chromium.org/79643002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236475 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=321789
Review URL: https://codereview.chromium.org/76913008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236420 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=314214
R=kbr@chromium.org, piman@chromium.org, skyostil@chromium.org, zmo@chromium.org
Review URL: https://codereview.chromium.org/72173002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235435 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A series of changes related to android code organization under ui, that came
after the discussion in https://codereview.chromium.org/62203014/.
- Rename ui_jni_registrar.* to ui_base_jni_registrar.*
- Create a base/ directory under ui/android/java/src/org/chromium/ui, and move
some java files there.
- Move Surface java files into ui/android/java/src/org/chromium/ui/gl/ directory.
- Rename ui_jni_headers to ui_base_jni_headers.
- Create a new ui_android.gyp file under ui/android to contain ui_java target.
BUG=299841
R=tedchoc@chromium.org, yfriedman@chromium.org
TBR=ben
Review URL: https://codereview.chromium.org/70843003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235369 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Custom implementations of the VSyncProvider (such as the Ozone provider) need
to inherit from VSyncProvider. However, these implementations leave outside of
ui/gl and would break deps. Moving the interface to ui/gfx would allow such
implementations to inherit the VSyncProvider interface.
BUG=
Review URL: https://codereview.chromium.org/68893002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235172 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
For gralloc backed gpu memory buffer on Android, it is undefined whether
locking for read/write while the buffer is bound to a texture is
allowed.
On nvidia devices (eg 2012 nexus 7), lock without unbind will lead to
deadlocks in the driver (crbug.com/264096).
However on other nexus gpu vendors (img, arm, qualcomm), unbind is very
expensive since it flushes the gpu pipeline. And vendors have advised
that lock while bound is allowed and is the right solution to this
slowness, as long as the texture is eventually recycled or deleted.
Add a workaround for nvidia to only unbind in GLImage::DidUseTexImage.
BUG=
Review URL: https://codereview.chromium.org/66033009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234740 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=
Review URL: https://codereview.chromium.org/61733010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234312 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
GLContextEGL::Destroy() is a no-op if context_ is NULL, so we shouldn't call it when context creation fails and context_ ends up being NULL in GLContextEGL::Initialize()
BUG=
Review URL: https://codereview.chromium.org/65963002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233883 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL adds a basic implementation of NativeViewport for Mac OS X. It puts a
window on screen and initializes GL for that window using an in-process
command buffer.
R=ben@chromium.org, ccameron@chromium.org, kbr@chromium.org
Review URL: https://codereview.chromium.org/56833002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233227 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=314901
TEST=gpu_unittests
R=bajones@chromium.org, kbr@chromium.org, piman@chromium.org, sievers@chromium.org
Review URL: https://codereview.chromium.org/57633007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233143 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=None
R=kbr@chromium.org
Review URL: https://codereview.chromium.org/58663002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232833 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
http://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_surfaceless_context.txt
This patch adds support in GLSurfaceEGL to be able to use
surfaceless context when supported by the drivers. This avoids
the creation of a dummy offscreen surface. This would also enable
support for offscreen rendering on platforms (i.e Ozone-Wayland) which
donot support pbuffer surfaces.
BUG=
Review URL: https://codereview.chromium.org/49533003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232615 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=302505
TEST=None, targets built.
R=dalecurtis@chromium.org,thestig@chromium.org,ben@chromium.org
Review URL: https://codereview.chromium.org/48213004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232399 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This provides a way to select an ozone implementation to use at build time.
It replaces the previous ad-hoc requirement to inject implementations of
ozone interfaces somewhere during initialization, such as by overriding
ContentMainDelegate::PreSandboxStartup(). That requirement made it
difficult for external ozone implementations to build internal targets such
as content_shell because those targets do not initialize the external ozone
implementation without additional patching. Enabling external ports of
chromium is one of the main goals of ozone.
The OzonePlatform code is located at ui/ozone and depends on code in
ui/gfx and ui/events because it must inject implementations into
those components. The ozone platform is initialized from
ui/aura or ui/gl, as those components need the interfaces provided by ozone
in order to function.
There are two in-tree platforms currently: test (image dump) and dri
(libdrm-based direct rendering). The platform is selected by the setting
ozone_platform gyp variable and defaults to "test".
Review URL: https://codereview.chromium.org/44933002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232170 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ozone needs to provide a custom way to load EGL and GLES2 bindings. Since Ozone
lives in ui/gfx/ozone it cannot have dependencies to ui/gl to register the
libraries.
This patch adds to callbacks to Ozone's LoadEGLGLES2Bindings function such that
when performing GL bindings initialization ui/gl will provide the callbacks to
register the bindings.
BUG=
Review URL: https://codereview.chromium.org/47213009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231893 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If base::TimeTicks::HighResNow is fast and reliable, we use it
for frame times, animations, and scheduling. Otherwise, we use
base::TimeTicks::Now and use a timebase of zero to avoid an
incorrect or jittery timebase.
This adds a gfx::FrameTime::Now() function, so the same timebase
is used across the ui and cc directories.
Additionally, the OutputSurface now uses a HighRes version of the
DelayBasedTimesource if gfx::FrameTime::Now() is HighRes.
BUG=303356
Review URL: https://codereview.chromium.org/27710005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231089 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
WillUseTexImage/DidUseTexImage is called before/after the image is
used for sampling. The result is that the client only has to call
bind/releaseTexImage2D when contents have changed, which allows
for more efficient GLImage implementations as work required before
use can be separated from work required when contents have changed.
BUG=261649
TEST=gpu_unittests --gtest_filter=SharedTextureTest.Images && gpu_unittests --gtest_filter=GLES2DecoderWithShaderTest.UseTexImage && cc_unittests --gtest_filter=ResourceProviderTests/ResourceProviderTest.Image_GLTexture* && gl_tests --gtest_filter=MockGpuMemoryBufferTest.Lifecycle
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229532
Review URL: https://codereview.chromium.org/23129010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230093 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is causing webgl_conformance_tests to fail.
> gpu: Add Will/DidUseTexImage to GLImage API.
>
> WillUseTexImage/DidUseTexImage is called before/after the image is
> used for sampling. The result is that the client only has to call
> bind/releaseTexImage2D when contents have changed, which allows
> for more efficient GLImage implementations as work required before
> use can be separated from work required when contents have changed.
>
> BUG=261649
> TEST=gpu_unittests --gtest_filter=SharedTextureTest.Images && gpu_unittests --gtest_filter=GLES2DecoderWithShaderTest.UseTexImage && cc_unittests --gtest_filter=ResourceProviderTests/ResourceProviderTest.Image_GLTexture* && gl_tests --gtest_filter=MockGpuMemoryBufferTest.Lifecycle
>
> Review URL: https://codereview.chromium.org/23129010
TBR=reveman@chromium.org
Review URL: https://codereview.chromium.org/32603002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229799 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
WillUseTexImage/DidUseTexImage is called before/after the image is
used for sampling. The result is that the client only has to call
bind/releaseTexImage2D when contents have changed, which allows
for more efficient GLImage implementations as work required before
use can be separated from work required when contents have changed.
BUG=261649
TEST=gpu_unittests --gtest_filter=SharedTextureTest.Images && gpu_unittests --gtest_filter=GLES2DecoderWithShaderTest.UseTexImage && cc_unittests --gtest_filter=ResourceProviderTests/ResourceProviderTest.Image_GLTexture* && gl_tests --gtest_filter=MockGpuMemoryBufferTest.Lifecycle
Review URL: https://codereview.chromium.org/23129010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229532 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
desktop GL. This enables development of a canvas2d msaa flag on desktop systems that use BGRA for canvas2d.
BUG=308277
Review URL: https://codereview.chromium.org/27542003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229359 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL adds support to ScopedTextureBinder to bind/restore
GL_TEXTURE_EXTERNAL_OES targets, which also necessitates adding getter support
for GL_TEXTURE_BINDING_EXTERNAL_OES to GLES2Implementation.
BUG=None
TEST=local build, run of vda_unittest on CrOS snow
Review URL: https://codereview.chromium.org/26061002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227420 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GLSurfaceEGL chooses a EGL frame buffer configuration that match
attributes specified in attrib list. This CL adds support for Ozone
implementations to provide values for these attributes as supported
by the underlying window system.
BUG=
Review URL: https://codereview.chromium.org/23850008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226925 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
DwmGetCompositionTimingInfo works to find out vsync info on Vista+. Luckily using a NULL HWND (required on Win 8.1+) avoids the issue where the window starts flickering.
BUG=291390
Review URL: https://codereview.chromium.org/25102004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226152 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
some function pointers to the X library, but there is no way to unregister
them when it is unloaded. So if we keep using X after libGL.so.1 is
unloaded, the stale function pointers will be called and bad things
happen. The unloading happens after the first test is finished, so the
second test always crashes.
The fix is just don't unload these libraries.
BUG=chromium:250813
TEST=run video_decode_accelerator_unittest on parrot and spring
Review URL: https://codereview.chromium.org/23456029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225931 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Landed previously in r225857, which was reverted in r225859 because it broke android tests.
BUG=103304
R=ben@chromium.org
Review URL: https://codereview.chromium.org/25015003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225909 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
> gfx: Create a separate gfx component out of ui.
>
> BUG=103304
> R=ben@chromium.org
>
> Review URL: https://codereview.chromium.org/25015003
TBR=sadrul@chromium.org
Review URL: https://codereview.chromium.org/25161002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225859 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=103304
R=ben@chromium.org
Review URL: https://codereview.chromium.org/25015003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225857 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Found by clang's new -Wunused-const-variable.
BUG=290204
R=akalin@chromium.org, avi@chromium.org, isherman@chromium.org, jamesr@chromium.org, joi@chromium.org, sergeyu@chromium.org, sky@chromium.org, thestig@chromium.org, xhwang@chromium.org
Review URL: https://codereview.chromium.org/24649002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225273 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
R=sky@chromium.org
Review URL: https://codereview.chromium.org/24429002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225089 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
other, and drop a bunch of DEPS files in to make checkdeps happy.
See https://codereview.chromium.org/24162009/ for try runs.
BUG=none
R=sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225020
Review URL: https://codereview.chromium.org/24273005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225055 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
R=sadrul@chromium.org
Review URL: https://codereview.chromium.org/24395008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225053 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
> Tighten up DEPS rules in src/ui: prevent components from including from each other, and drop a bunch of DEPS files in to make checkdeps happy.
>
> BUG=none
> R=sky@chromium.org
>
> Review URL: https://codereview.chromium.org/24273005
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/24257013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225032 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
other, and drop a bunch of DEPS files in to make checkdeps happy.
BUG=none
R=sky@chromium.org
Review URL: https://codereview.chromium.org/24273005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225020 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Compositing has been made sticky for a RenderWidget in the work for
http://crbug.com/295072
Now that compositing is sticky, the issue that caused this to be turned
off, http://crbug.com/292655, should be fixed.
TBR=piman, kbr
BUG=145600
Review URL: https://chromiumcodereview.appspot.com/24224008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224927 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
R=rjkroege@chromium.org, rjkroege@google.com
Review URL: https://codereview.chromium.org/24049004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224782 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Landing with notry, the failure on win_rel cannot be related to this patch as this patch only affects Android.
NOTRY=true
BUG=
Review URL: https://chromiumcodereview.appspot.com/23931007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224523 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
BUG=
Review URL: https://chromiumcodereview.appspot.com/23687009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224049 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
vista from using D3D11.
BUG=256863
Review URL: https://chromiumcodereview.appspot.com/24120004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223716 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was previously disabled when running unit tests, but it looks
like there are additional problems with WebViews, and potentially
with switching in and out of compositing mode.
TBR=zmo
BUG=292655
Review URL: https://codereview.chromium.org/23757059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223480 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
not have a message loop.
TBR=zmo
BUG=145600
Review URL: https://chromiumcodereview.appspot.com/24127004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223231 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Because GLX windows cannot be destroyed separately from their
X windows on all platforms, create a separate child X window to use
with GLX. Destroy this child X window when the backbuffer for the
window is no longer needed.
Because the GL surface may need to be made current while its
backbuffer is destroyed (e.g, to destroy GL resources for a
backgrounded tab), create a dummy 1x1 GL surface which is
never destroyed and can always be made current.
Because the child X window created will cover its parent, create an
event listener to forward expose events from the child window to
the parent, so that the parent can know to repaint.
BUG=145600
Review URL: https://chromiumcodereview.appspot.com/23452026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223148 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
| |
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/23619031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222869 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
AsyncPixelTransferManager checks for some EGL specific
extensions that are available on the device, but was not
correctly retrieved by the GLNonOwnedContext.
Note that GLNonOwnedContext is only used on android webview,
not chrome on android.
BUG=287962
Review URL: https://chromiumcodereview.appspot.com/23460026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222208 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Map glDiscardFramebufferEXT to glInvalidateFramebuffer on OpenGL ES
3.0. Both entry points have the same functionality; just the name was
changed between EXT_framebuffer_discard and ES 3.0.
BUG=274334
Review URL: https://chromiumcodereview.appspot.com/23855003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221440 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
OZONE event factory should be a bit more verbose on error.
BUG=
Review URL: https://chromiumcodereview.appspot.com/23438002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220632 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This came up in https://codereview.chromium.org/22912020/ but was punted
to keep merging smaller. Now that it's in, here's the change. The java
class has a slightly different name as internally to the native
SurfaceTexture object we have a wrapper, but that detail is unknown to
clients.
Review URL: https://chromiumcodereview.appspot.com/23574003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220183 0039d316-1c4b-4281-b951-d872f2087c98
|