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

Issue 11359030: Create cc::TilingData based on WebCore::TilingData. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org, piman, backer
Visibility:
Public.

Description

Create cc::TilingData based on WebCore::TilingData. This is a direct port of the TilingData class from the WebKit repo, found in: Source/WebCore/platform/graphics/gpu/TilingData.h|cpp Previous commits from non-google folks have been: - ossy replacing the non-copyable macro (which is not present here). - hyatt replacing right()/bottom() with maxX()/maxY() (we use right()/bottom() again here, with gfx::Rect instead of IntRect). - mitz using ASSERT_UNUSED instead of ASSERT guarded on NDEBUG (we use DCHECK instead here). Covered by existing tests; this replaces the use of WebCore::TilingData with the new cc::TilingData. R=enne BUG=147395 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=165681

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -50 lines) Patch
M cc/cc.gyp View 3 chunks +2 lines, -2 lines 0 comments Download
M cc/layer_tiling_data.h View 2 chunks +7 lines, -11 lines 0 comments Download
M cc/layer_tiling_data.cc View 7 chunks +11 lines, -13 lines 0 comments Download
D cc/stubs/TilingData.h View 1 chunk +0 lines, -6 lines 0 comments Download
D cc/stubs/tiling_data.h View 1 chunk +0 lines, -18 lines 0 comments Download
A cc/tiling_data.h View 1 chunk +71 lines, -0 lines 5 comments Download
A cc/tiling_data.cc View 1 chunk +174 lines, -0 lines 4 comments Download

Messages

Total messages: 15 (0 generated)
danakj
:D
8 years, 1 month ago (2012-11-02 00:14:58 UTC) #1
jamesr
lgtm these patches make me uncomfortably excited
8 years, 1 month ago (2012-11-02 00:18:21 UTC) #2
tfarina
https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.h File cc/tiling_data.h (right): https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.h#newcode24 cc/tiling_data.h:24: gfx::Size total_size() const { return total_size_; } const-ref as ...
8 years, 1 month ago (2012-11-02 00:18:46 UTC) #3
tfarina
https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.h File cc/tiling_data.h (right): https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.h#newcode1 cc/tiling_data.h:1: // Copyright 2010 The Chromium Authors. All rights reserved. ...
8 years, 1 month ago (2012-11-02 00:19:07 UTC) #4
jamesr
On 2012/11/02 00:18:46, tfarina wrote: > https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.h > File cc/tiling_data.h (right): > > https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.h#newcode24 > ...
8 years, 1 month ago (2012-11-02 00:24:23 UTC) #5
tfarina
https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.cc File cc/tiling_data.cc (right): https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.cc#newcode1 cc/tiling_data.cc:1: // Copyright 2010 The Chromium Authors. All rights reserved. ...
8 years, 1 month ago (2012-11-02 00:25:45 UTC) #6
danakj
https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.cc File cc/tiling_data.cc (right): https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.cc#newcode1 cc/tiling_data.cc:1: // Copyright 2010 The Chromium Authors. All rights reserved. ...
8 years, 1 month ago (2012-11-02 00:28:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11359030/1
8 years, 1 month ago (2012-11-02 00:28:09 UTC) #8
tfarina
On 2012/11/02 00:28:03, danakj wrote: >https://codereview.chromium.org/11359030/diff/1/cc/tiling_data.h#newcode24 > cc/tiling_data.h:24: gfx::Size total_size() const { return total_size_; } ...
8 years, 1 month ago (2012-11-02 00:30:36 UTC) #9
jamesr
Probably because people are mechanically using const ref for tiny structs without thinking what it ...
8 years, 1 month ago (2012-11-02 00:31:48 UTC) #10
tfarina
On Thu, Nov 1, 2012 at 10:31 PM, <jamesr@chromium.org> wrote: > Probably because people are ...
8 years, 1 month ago (2012-11-02 00:36:29 UTC) #11
jamesr1
On Thu, Nov 1, 2012 at 5:36 PM, Thiago Farina <tfarina@chromium.org> wrote: > On Thu, ...
8 years, 1 month ago (2012-11-02 00:39:37 UTC) #12
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
8 years, 1 month ago (2012-11-02 05:03:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11359030/1
8 years, 1 month ago (2012-11-02 15:32:59 UTC) #14
commit-bot: I haz the power
8 years, 1 month ago (2012-11-02 15:33:02 UTC) #15
Failed to apply patch for cc/cc.gyp:
While running patch -p1 --forward --force --no-backup-if-mismatch;
  patching file cc/cc.gyp
  Hunk #1 FAILED at 218.
  Hunk #2 succeeded at 263 with fuzz 1 (offset -2 lines).
  Hunk #3 succeeded at 274 with fuzz 2 (offset -3 lines).
  1 out of 3 hunks FAILED -- saving rejects to file cc/cc.gyp.rej

Patch:       cc/cc.gyp
Index: cc/cc.gyp
diff --git a/cc/cc.gyp b/cc/cc.gyp
index
8a6e93b4e91270ebfb9c09e142b93f7797745a4d..cae80432e4350b14e432c482947477b288133f4b
100644
--- a/cc/cc.gyp
+++ b/cc/cc.gyp
@@ -218,6 +218,8 @@
       'texture_uploader.h',
       'tiled_layer.cc',
       'tiled_layer.h',
+      'tiling_data.cc',
+      'tiling_data.h',
       'tree_synchronizer.cc',
       'tree_synchronizer.h',
       'video_layer.cc',
@@ -265,7 +267,6 @@
         'stubs/NotImplemented.h',
         'stubs/Region.h',
         'stubs/SkiaUtils.h',
-        'stubs/TilingData.h',
         'stubs/UnitBezier.h',
 
         'stubs/config.h',
@@ -278,7 +279,6 @@
         'stubs/int_size.h',
         'stubs/not_implemented.h',
         'stubs/skia_utils.h',
-        'stubs/tiling_data.h',
         'stubs/unit_bezier.h',
       ],
     },

Powered by Google App Engine
This is Rietveld 408576698