diff options
author | 2014-06-03 10:04:47 -0700 | |
---|---|---|
committer | 2014-06-03 10:04:47 -0700 | |
commit | dcf9ab14a194be0cbea896e1dc44a2a04106a38b (patch) | |
tree | db433629b2484484f01ad6b9578a9da8defe4464 /include/core/SkTileGridPicture.h | |
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 'include/core/SkTileGridPicture.h')
-rw-r--r-- | include/core/SkTileGridPicture.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/include/core/SkTileGridPicture.h b/include/core/SkTileGridPicture.h deleted file mode 100644 index 0196940919..0000000000 --- a/include/core/SkTileGridPicture.h +++ /dev/null @@ -1,64 +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. - */ - -#ifndef SkTileGridPicture_DEFINED -#define SkTileGridPicture_DEFINED - -#ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS -#include "SkBBHFactory.h" -#endif - -#ifdef SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES - -#include "SkPicture.h" -#include "SkPoint.h" -#include "SkSize.h" - -/** - * Subclass of SkPicture that creates an SkTileGrid. The tile grid has lower recording - * and playback costs then rTree, but is less effective at eliminating extraneous - * primitives for arbitrary query rectangles. It is most effective for - * tiled playback when the tile structure is known at record time. - */ -class SK_API SkTileGridPicture : public SkPicture { -public: - typedef SkTileGridFactory::TileGridInfo TileGridInfo; - - /** - * Constructor - * @param width recording canvas width in device pixels - * @param height recording canvas height in device pixels - * @param info description of the tiling layout - */ - SkTileGridPicture(int width, int height, const SkTileGridFactory::TileGridInfo& info); - - virtual SkBBoxHierarchy* createBBoxHierarchy() const SK_OVERRIDE; - -private: - int fXTileCount, fYTileCount; - SkTileGridFactory::TileGridInfo fInfo; - - typedef SkPicture INHERITED; -}; - -class SkTileGridPictureFactory : public SkPictureFactory { -public: - SkTileGridPictureFactory(const SkTileGridFactory::TileGridInfo& info) : fInfo(info) { } - - virtual SkPicture* create(int width, int height) SK_OVERRIDE { - return SkNEW_ARGS(SkTileGridPicture, (width, height, fInfo)); - } - -protected: - SkTileGridFactory::TileGridInfo fInfo; - -private: - typedef SkPictureFactory INHERITED; -}; -#endif - -#endif |