diff options
author | robertphillips <robertphillips@google.com> | 2014-06-03 10:04:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-03 10:04:47 -0700 |
commit | dcf9ab14a194be0cbea896e1dc44a2a04106a38b (patch) | |
tree | db433629b2484484f01ad6b9578a9da8defe4464 /src/core/SkTileGridPicture.cpp | |
parent | 66aa609a493b10d7c0a0101e2e16ba11e4c276a2 (diff) |
Remove legacy picture recording
This is unblocked now that Android no longer uses the old interface.
This is just the first step in cleaning this up. Future CLs will constify SkPicture access in SkCanvas and split up the SkPicture/SkPicturePlayback/SkPictureRecord trio.
R=bsalomon@google.com, reed@google.com, mtklein@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/313613002
Diffstat (limited to 'src/core/SkTileGridPicture.cpp')
-rw-r--r-- | src/core/SkTileGridPicture.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/core/SkTileGridPicture.cpp b/src/core/SkTileGridPicture.cpp deleted file mode 100644 index 4a43f8a063..0000000000 --- a/src/core/SkTileGridPicture.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2012 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifdef SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES - -#include "SkTileGridPicture.h" - -#include "SkPictureStateTree.h" -#include "SkTileGrid.h" - -SkTileGridPicture::SkTileGridPicture(int width, int height, - const SkTileGridFactory::TileGridInfo& info) { - SkASSERT(info.fMargin.width() >= 0); - SkASSERT(info.fMargin.height() >= 0); - fInfo = info; - // Note: SkIRects are non-inclusive of the right() column and bottom() row. - // For example, an SkIRect at 0,0 with a size of (1,1) will only have - // content at pixel (0,0) and will report left=0 and right=1, hence the - // "-1"s below. - fXTileCount = (width + info.fTileInterval.width() - 1) / info.fTileInterval.width(); - fYTileCount = (height + info.fTileInterval.height() - 1) / info.fTileInterval.height(); -} - -SkBBoxHierarchy* SkTileGridPicture::createBBoxHierarchy() const { - return SkNEW_ARGS(SkTileGrid, (fXTileCount, fYTileCount, fInfo, - SkTileGridNextDatum<SkPictureStateTree::Draw>)); -} - -#endif |