1ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall/* 2ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* Copyright (C) 2011 The Android Open Source Project 3ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* 4ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* Licensed under the Apache License, Version 2.0 (the "License"); 5ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* you may not use this file except in compliance with the License. 6ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* You may obtain a copy of the License at 7ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* 8ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* http://www.apache.org/licenses/LICENSE-2.0 9ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* 10ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* Unless required by applicable law or agreed to in writing, software 11ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* distributed under the License is distributed on an "AS IS" BASIS, 12ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* See the License for the specific language governing permissions and 14ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall* limitations under the License. 15ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall*/ 16ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall#ifndef _RENDERER_OBJECT_H_ 17ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall#define _RENDERER_OBJECT_H_ 18ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall 19ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hallclass RendererObject { 20ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hallpublic: 21ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall RendererObject() { m_count = 0; } 22ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall 23ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall int count() { return m_count; } 24ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall void ref() { m_count++; } 25ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall void unref() { m_count--; } 26ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hallprivate: 27ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall int m_count; 28ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall}; 29ce6c3389061fb9fcdefc94fab2044a8e11600b52Jesse Hall#endif 30