13e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza/* 23e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * Copyright 2014 The Android Open Source Project 33e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * 43e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * Licensed under the Apache License, Version 2.0 (the "License"); 53e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * you may not use this file except in compliance with the License. 63e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * You may obtain a copy of the License at 73e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * 83e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * http://www.apache.org/licenses/LICENSE-2.0 93e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * 103e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * Unless required by applicable law or agreed to in writing, software 113e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * distributed under the License is distributed on an "AS IS" BASIS, 123e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 133e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * See the License for the specific language governing permissions and 143e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza * limitations under the License. 153e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza */ 163e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza 173e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza#ifndef ANDROID_GUI_BUFFERQUEUECOREDEFS_H 183e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza#define ANDROID_GUI_BUFFERQUEUECOREDEFS_H 193e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza 203e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza#include <gui/BufferSlot.h> 213e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza 223e96f1982fda358424b0b75f394cbf7c1794a072Dan Stozanamespace android { 233e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza class BufferQueueCore; 243e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza 253e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza namespace BufferQueueDefs { 263e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza // BufferQueue will keep track of at most this value of buffers. 273e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza // Attempts at runtime to increase the number of buffers past this 283e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza // will fail. 29febd4f4f462444bfcb3f0618d07ac77e3fc1f6adDan Stoza enum { NUM_BUFFER_SLOTS = 64 }; 303e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza 313e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza typedef BufferSlot SlotsType[NUM_BUFFER_SLOTS]; 323e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza } // namespace BufferQueueDefs 333e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza} // namespace android 343e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza 353e96f1982fda358424b0b75f394cbf7c1794a072Dan Stoza#endif 36