summaryrefslogtreecommitdiffstats
path: root/cc/content_layer.cc
Commit message (Collapse)AuthorAgeFilesLines
* Avoid exposing gl bindings through cc public API headersjamesr@chromium.org2013-01-081-1/+1
| | | | | | | | | | | | | | | | | | The cc library uses chromium's gles2 bindings in third_party/khronos/... to bind to GL for rendering. However, users of cc may not be able to pull these headers in when including cc API - for instance, on mac any code that includes content/common/view_messages.h pulls in the Apple CGL api through npapi.h. On the 10.6 SDK these headers collide with chromium's gl headers. This avoids exposing gl2.h includes via layer_tree_host.h, mostly by not including prioritized_resource_manager.h directly in l_t_h.h. BUG=156175 Review URL: https://chromiumcodereview.appspot.com/11794019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175554 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Don't let invalidations that we're going to handle immediately cause an ↵danakj@chromium.org2012-12-201-2/+7
| | | | | | | | | | | | | | | | extra commit. Tests: LayerTreeHostTestNoExtraCommitFromInvalidate.runSingleThread LayerTreeHostTestNoExtraCommitFromInvalidate.runMultiThread R=enne BUG=166715 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11644036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174073 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Create a cc::ScrollbarThemePainter and an adapter class in compositor ↵danakj@chromium.org2012-12-181-1/+1
| | | | | | | | | | | | | | | | | | | bindings. Instead of having the scrollbar layer talk directly to the WebScrollbarThemePainter, we make an abstract interface in cc/ that it can talk to. In the compositor bindings, we implement this class, and forward the function calls made into it over to the WebKit implementation. No change in behaviour, no new tests. This is a prerequisite for https://codereview.chromium.org/11464041/. BUG=123444 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11609002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173687 0039d316-1c4b-4281-b951-d872f2087c98
* Mark layers that can use LCD text based on layer transform and opacity.alokp@chromium.org2012-12-131-0/+41
| | | | | | | | | | | | | - Text AA settings are not adjusted during animation to avoid repaints. - Renamed Layer::useLCDText to Layer::canUseLCDText. BUG=100666 Review URL: https://chromiumcodereview.appspot.com/11360093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172842 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove cc::settings, move them to LayerTreeSettings.danakj@chromium.org2012-11-141-2/+1
| | | | | | | | | | | | | | | | For now, we don't want to make plumbing through the WebKit API for all these settings. So they are marked with a TODO to move into chromium. When we are no longer going through the WebKit API from chromium, we can set these settings in chromium, instead of reading the command-line parameters in cc. Depends on: https://bugs.webkit.org/show_bug.cgi?id=102146 R=jamesr BUG=160771 Review URL: https://chromiumcodereview.appspot.com/11361223 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167750 0039d316-1c4b-4281-b951-d872f2087c98
* Remove WTF and WebCore from cc/ and webkit/compositor_bindings/piman@chromium.org2012-11-101-2/+0
| | | | | | | | | | | Ding, dong... BUG=154451 Review URL: https://chromiumcodereview.appspot.com/11410021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167071 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Fix style for comments at the end of namespacesdanakj@chromium.org2012-11-051-1/+1
| | | | | | | | | | | | Make sure we have a comment at the end of the namespace for each .cc file and that there are two spaces between the closing brace and the comment. R=enne Review URL: https://chromiumcodereview.appspot.com/11275153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166005 0039d316-1c4b-4281-b951-d872f2087c98
* Use gfx:: Geometry types for the resource provider and layer updater classes.danakj@chromium.org2012-10-311-1/+1
| | | | | | | | | | | | | This depends on the gfx::Vector2d class from https://codereview.chromium.org/11269022/ Covered by existing tests, just changing data types. BUG=147395 R=enne Review URL: https://codereview.chromium.org/11266030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165225 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Rename TextureUpdate to ResourceUpdate.reveman@google.com2012-10-251-1/+1
| | | | | | | | | | | | | | | | sed -e ' s/TextureUpdateQueue/ResourceUpdateQueue/g s/texture_update_queue/resource_update_queue/g s/TextureUpdateController/ResourceUpdateController/g s/texture_update_controller/resource_update_controller/g ' BUG= TEST=cc_unittests Review URL: https://codereview.chromium.org/11270047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164177 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Rename CanvasLayerUpdater to ContentLayerUpdater.reveman@google.com2012-10-251-5/+5
| | | | | | | | | | | | | | sed -e ' s/CanvasLayerUpdater/ContentLayerUpdater/g s/canvas_layer_updater/content_layer_updater/g ' BUG= TEST=cc_unittests Review URL: https://codereview.chromium.org/11271022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164104 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Rename LayerTextureUpdater to LayerUpdater.reveman@google.com2012-10-231-13/+13
| | | | | | | | | | | | | | | | | sed -e ' s/TextureUpdater/Updater/g s/textureUpdater/updater/g s/texture_updater\.h/updater.h/g s/texture_updater\.cc/updater.cc/g s/TEXTURE_UPDATER_H_/UPDATER_H_/g ' BUG= TEST=cc_unittests Review URL: https://codereview.chromium.org/11231082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163615 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove FrameBufferSkPictureCanvasLayerTextureUpdater class.reveman@chromium.org2012-10-231-2/+1
| | | | | | | | | | | | | | SkPictureCanvasLayerTextureUpdater is all we need for accelerated painting. Add SkPictureCanvasLayerTextureUpdater::Texture and make SkPictureCanvasLayerTextureUpdater instantiable. BUG= TEST=cc_unittests Review URL: https://chromiumcodereview.appspot.com/11236048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163534 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove CC*.h temporary includes, part 5/4.tfarina@chromium.org2012-10-231-1/+1
| | | | | | | | | | | | BUG=155413 TEST=cc_unittests R=enne@chromium.org,jamesr@chromium.org TBR=jamesr@chromium.org Review URL: https://chromiumcodereview.appspot.com/11225040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163479 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Rename cc classes and members to match filenamesenne@chromium.org2012-10-221-19/+19
| | | | | | | | | | | Fixed reland of https://chromiumcodereview.appspot.com/11189043/ TBR=jam@chromium.org,jamesr@chromium.org BUG=155413 Review URL: https://codereview.chromium.org/11231054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163429 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Move contentsSwizzled property from LayerTextureUpdater to ↵reveman@google.com2012-10-221-1/+0
| | | | | | | | | | | | | | | | | | | CCPrioritizedTexture class. The contentsSwizzled property is true when we upload BGRA contents to a RGBA texture. Instead of having the LayerTextureUpdater (which is not responsible for texture uploads) determine the value of this property set it in CCPrioritizedTexture::upload() when an upload takes place. This will also allow us to remove the FrameBufferSkPictureCanvasLayerTextureUpdater class, which currently only exists so contentsSwizzled is set correctly. BUG= TEST=manual Review URL: https://codereview.chromium.org/11232028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163347 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove CC*.h temporary includes, part 3/4.tfarina@chromium.org2012-10-211-1/+1
| | | | | | | | | | | BUG=155413 TEST=cc_unittests R=enne@chromium.org,jamesr@chromium.org TBR=jamesr@chromium.org Review URL: https://codereview.chromium.org/11228017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163205 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "cc: Rename cc classes and members to match filenames"enne@chromium.org2012-10-191-19/+19
| | | | | | This reverts commit 184fac5add06d5f4670fa6be4a4d3b39232d51bb. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163059 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Rename cc classes and members to match filenamesenne@chromium.org2012-10-191-19/+19
| | | | | | | | BUG=155413 Review URL: https://codereview.chromium.org/11189043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163052 0039d316-1c4b-4281-b951-d872f2087c98
* Move CC switches to cc/switches.h.aelias@chromium.org2012-10-191-1/+1
| | | | | | | | | | | | | | This moves these switches to their appropriate place, and sets them all directly from command-line flags there. I deleted the WebCompositor setter methods, but setters are still needed in CCSettings for unit tests. BUG= Review URL: https://chromiumcodereview.appspot.com/11186039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162921 0039d316-1c4b-4281-b951-d872f2087c98
* Remove GraphicsContext3D:: stubs from ccjamesr@chromium.org2012-10-181-1/+1
| | | | | | | | | | | | cc needs GL enum values. In WebKit, these came from GraphicsContext3D::, Extensions3D::, Extensions3DChromium and types came from GraphicsTypes3D. In chromium, we juse use the GL headers for this. BUG=144577 Review URL: https://chromiumcodereview.appspot.com/11111005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162839 0039d316-1c4b-4281-b951-d872f2087c98
* Remove TraceEvent stub header from ccjamesr@chromium.org2012-10-181-3/+0
| | | | | | | | | | | | | | We can just use base/debug/trace_event.h directly. Unfortunately, this produces several more LOG macro collisions between wtf/Assertions.h and base/logging.h. I added a config.h stub to cc/stubs/ to undef LOG for all files in cc and removed the few other overrides we had in place. BUG=154451 Review URL: https://chromiumcodereview.appspot.com/11187035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162692 0039d316-1c4b-4281-b951-d872f2087c98
* Use base/metrics/histogram.h instead of ↵jamesr@chromium.org2012-10-181-3/+6
| | | | | | | | | | | | | | | | | WebKit::Platform::histogramCustomCounts in cc The base/ macros are chromium style and marginally more efficient since the histogram bucket lookup is cached in a static local. This produced yet more LOG vs LOG collisions. I rewrote the LayerSorter's logging from WTF channels to use VLOG - it can be turned on by adding "--vmodule=layer_sorter=2" to the command line. BUG=154451,144577 Review URL: https://chromiumcodereview.appspot.com/11209002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162672 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Remove the temporary header files that aren't prefixed with CC*tfarina@chromium.org2012-10-161-7/+7
| | | | | | | | | | | | | The list of files was generated with the following command line: $ ls *.h cc/ | grep -v CC BUG=155413 TEST=cc_unittests R=enne@chromium.org,jamesr@chromium.org Review URL: https://codereview.chromium.org/11189011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162247 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Store tiles, painters, tiling data in scoped_ptrenne@chromium.org2012-10-151-5/+6
| | | | | | | | | BUG=154451 Review URL: https://chromiumcodereview.appspot.com/11144023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161994 0039d316-1c4b-4281-b951-d872f2087c98
* Remove USE(ACCELERATED_COMPOSITING) references from ccjamesr@chromium.org2012-10-151-3/+0
| | | | | | | | | | This isn't needed. BUG= Review URL: https://codereview.chromium.org/10957055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161885 0039d316-1c4b-4281-b951-d872f2087c98
* [cc] Rename all cc/ filenames to Chromium styleenne@chromium.org2012-10-121-0/+113
BUG=155413 Review URL: https://codereview.chromium.org/11122003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161671 0039d316-1c4b-4281-b951-d872f2087c98