diff options
author | Derek Sollenberger <djsollen@google.com> | 2012-02-06 13:31:51 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-02-06 13:31:51 -0800 |
commit | 0a6004fdb6c99bccb8bc0bb9686616870dae73f3 (patch) | |
tree | 2852f9dc2481f639122e18fc7831ae6ca43d6d5a /include/pipe/SkGPipe.h | |
parent | e2d01455540d4414ebfc6acb06f06d357849335c (diff) | |
parent | 1cab2921ab279367f8206cdadc9259d12e603548 (diff) | |
download | external_skia-0a6004fdb6c99bccb8bc0bb9686616870dae73f3.zip external_skia-0a6004fdb6c99bccb8bc0bb9686616870dae73f3.tar.gz external_skia-0a6004fdb6c99bccb8bc0bb9686616870dae73f3.tar.bz2 |
am 1cab2921: Skia merge (revision 3022)
* commit '1cab2921ab279367f8206cdadc9259d12e603548':
Skia merge (revision 3022)
Diffstat (limited to 'include/pipe/SkGPipe.h')
-rw-r--r-- | include/pipe/SkGPipe.h | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/include/pipe/SkGPipe.h b/include/pipe/SkGPipe.h index 897766f..29b058e 100644 --- a/include/pipe/SkGPipe.h +++ b/include/pipe/SkGPipe.h @@ -1,20 +1,13 @@ -/* - Copyright 2011 Google Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +/* + * Copyright 2011 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ + #ifndef SkGPipe_DEFINED #define SkGPipe_DEFINED @@ -23,6 +16,11 @@ class SkCanvas; +// XLib.h might have defined Status already (ugh) +#ifdef Status + #undef Status +#endif + class SkGPipeReader { public: SkGPipeReader(SkCanvas* target); @@ -31,13 +29,14 @@ public: enum Status { kDone_Status, //!< no more data expected from reader kEOF_Status, //!< need more data from reader - kError_Status //!< encountered error + kError_Status, //!< encountered error + kReadAtom_Status//!< finished reading an atom }; // data must be 4-byte aligned // length must be a multiple of 4 - Status playback(const void* data, size_t length, size_t* bytesRead = NULL); - + Status playback(const void* data, size_t length, size_t* bytesRead = NULL, + bool readAtom = false); private: SkCanvas* fCanvas; class SkGPipeState* fState; |