Searched refs:Layer (Results 1 - 25 of 77) sorted by relevance

1234

/frameworks/native/vulkan/libvulkan/
H A Dlayers_extensions.h25 struct Layer;
29 explicit LayerRef(const Layer* layer);
36 operator const Layer*() const { return layer_; }
42 const Layer* layer_;
48 const Layer& GetLayer(uint32_t index);
49 const Layer* FindLayer(const char* name);
51 const VkLayerProperties& GetLayerProperties(const Layer& layer);
52 bool IsLayerGlobal(const Layer& layer);
53 const VkExtensionProperties* GetLayerInstanceExtensions(const Layer& layer,
55 const VkExtensionProperties* GetLayerDeviceExtensions(const Layer
[all...]
H A Dlayers_extensions.cpp54 struct Layer { struct in namespace:vulkan::api
95 std::vector<Layer>& instance_layers) const;
97 void* GetGPA(const Layer& layer,
154 std::vector<Layer>& instance_layers) const {
225 Layer layer;
295 void* LayerLibrary::GetGPA(const Layer& layer,
315 std::vector<Layer> g_instance_layers;
444 void* GetLayerGetProcAddr(const Layer& layer,
466 const Layer& GetLayer(uint32_t index) {
470 const Layer* FindLaye
[all...]
/frameworks/native/services/surfaceflinger/
H A DLayerRejecter.h20 #include "Layer.h"
26 LayerRejecter(Layer::State &front,
27 Layer::State &current,
37 Layer::State &mFront;
38 Layer::State &mCurrent;
H A DClient.h33 class Layer;
42 Client(const sp<SurfaceFlinger>& flinger, const sp<Layer>& parentLayer);
48 void attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer);
50 void detachLayer(const Layer* layer);
52 sp<Layer> getLayerUser(const sp<IBinder>& handle) const;
54 void updateParent(const sp<Layer>& parentLayer);
74 sp<Layer> getParentLayer(bool* outParentDied = nullptr) const;
80 DefaultKeyedVector< wp<IBinder>, wp<Layer> > mLayers;
81 wp<Layer> mParentLayer;
H A DLayerVector.h26 class Layer;
33 class LayerVector : public SortedVector<sp<Layer>> {
50 using Visitor = std::function<void(Layer*)>;
H A DSurfaceInterceptor.h36 class Layer;
50 virtual void enable(const SortedVector<sp<Layer>>& layers,
62 virtual void saveSurfaceCreation(const sp<const Layer>& layer) = 0;
63 virtual void saveSurfaceDeletion(const sp<const Layer>& layer) = 0;
64 virtual void saveBufferUpdate(const sp<const Layer>& layer, uint32_t width, uint32_t height,
86 void enable(const SortedVector<sp<Layer>>& layers,
97 void saveSurfaceCreation(const sp<const Layer>& layer) override;
98 void saveSurfaceDeletion(const sp<const Layer>& layer) override;
99 void saveBufferUpdate(const sp<const Layer>& layer, uint32_t width, uint32_t height,
114 void saveExistingSurfacesLocked(const SortedVector<sp<Layer>>
[all...]
H A DClient.cpp26 #include "Layer.h"
42 Client::Client(const sp<SurfaceFlinger>& flinger, const sp<Layer>& parentLayer)
58 sp<Layer> l = mLayers.valueAt(i).promote();
68 void Client::updateParent(const sp<Layer>& parentLayer) {
78 sp<Layer> Client::getParentLayer(bool* outParentDied) const {
80 sp<Layer> parent = mParentLayer.promote();
91 void Client::attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer)
97 void Client::detachLayer(const Layer* layer)
109 sp<Layer> Client::getLayerUser(const sp<IBinder>& handle) const
112 sp<Layer> lb
[all...]
H A DLayer.cpp19 #define LOG_TAG "Layer"
49 #include "Layer.h"
71 int32_t Layer::sSequence = 1;
73 Layer::Layer(SurfaceFlinger* flinger, const sp<Client>& client, const String8& name, uint32_t w, function in class:android::Layer
143 void Layer::onFirstRef() {}
145 Layer::~Layer() {
166 * Layer. So, the implementation is done in BufferLayer. When called on a
169 void Layer
[all...]
H A DContainerLayer.cpp27 : Layer(flinger, client, name, w, h, flags) {
H A DLayer.h122 HWC2::Layer* layer;
141 class Layer : public virtual RefBase { class in namespace:android
154 // Layer serial number. This gives layers an explicit ordering, so we
201 // If set, defers this state update until the identified Layer
203 wp<Layer> barrierLayer;
216 wp<Layer> zOrderRelativeOf;
219 SortedVector<wp<Layer>> zOrderRelatives;
224 Layer(SurfaceFlinger* flinger, const sp<Client>& client, const String8& name, uint32_t w,
226 virtual ~Layer();
290 void deferTransactionUntil(const sp<Layer>
[all...]
/frameworks/base/libs/hwui/
H A DLayer.cpp17 #include "Layer.h"
26 Layer::Layer(RenderState& renderState, Api api, sk_sp<SkColorFilter> colorFilter, int alpha, function in class:android::uirenderer::Layer
28 : GpuMemoryTracker(GpuObjectType::Layer)
41 Layer::~Layer() {
45 void Layer::setColorFilter(sk_sp<SkColorFilter> filter) {
52 void Layer::setDataSpace(android_dataspace dataspace) {
59 void Layer::buildColorSpaceWithFilter() {
75 void Layer
[all...]
H A DDeferredLayerUpdater.cpp29 Layer::Api layerApi)
53 if (mSurfaceTexture.get() && mLayerApi == Layer::Api::OpenGL && mGLContextAttached) {
85 if (mLayer->getApi() == Layer::Api::Vulkan) {
91 LOG_ALWAYS_FATAL_IF(mLayer->getApi() != Layer::Api::OpenGL,
93 mLayer->getApi(), Layer::Api::OpenGL, Layer::Api::Vulkan);
114 LOG_ALWAYS_FATAL_IF(mLayer->getApi() != Layer::Api::OpenGL,
116 Layer::Api::OpenGL, Layer::Api::Vulkan);
153 LOG_ALWAYS_FATAL_IF(mLayer->getApi() != Layer
[all...]
H A DDeferredLayerUpdater.h29 #include "Layer.h"
44 typedef std::function<Layer*(RenderState& renderState, uint32_t layerWidth,
49 Layer::Api layerApi);
96 Layer* backingLayer() { return mLayer; }
104 Layer::Api getBackingLayerApi() { return mLayerApi; }
121 Layer* mLayer;
122 Layer::Api mLayerApi;
H A DVkLayer.h19 #include "Layer.h"
28 class VkLayer : public Layer {
32 : Layer(renderState, Api::Vulkan, colorFilter, alpha, mode)
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
H A DMockSurfaceInterceptor.h32 void(const SortedVector<sp<Layer>>&,
40 MOCK_METHOD1(saveSurfaceCreation, void(const sp<const Layer>&));
41 MOCK_METHOD1(saveSurfaceDeletion, void(const sp<const Layer>&));
42 MOCK_METHOD4(saveBufferUpdate, void(const sp<const Layer>&, uint32_t, uint32_t, uint64_t));
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
H A DMockComposer.h43 using android::hardware::graphics::composer::V2_1::Layer;
62 MOCK_METHOD2(createLayer, Error(Display, Layer* outLayer));
63 MOCK_METHOD2(destroyLayer, Error(Display, Layer));
66 Error(Display, std::vector<Layer>*, std::vector<IComposerClient::Composition>*));
73 Error(Display, uint32_t*, std::vector<Layer>*, std::vector<uint32_t>*));
80 MOCK_METHOD3(getReleaseFences, Error(Display, std::vector<Layer>*, std::vector<int>*));
94 MOCK_METHOD4(setCursorPosition, Error(Display, Layer, int32_t, int32_t));
95 MOCK_METHOD5(setLayerBuffer, Error(Display, Layer, uint32_t, const sp<GraphicBuffer>&, int));
97 Error(Display, Layer, const std::vector<IComposerClient::Rect>&));
98 MOCK_METHOD3(setLayerBlendMode, Error(Display, Layer, IComposerClien
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DComposerHal.h60 using V2_1::Layer;
99 virtual Error createLayer(Display display, Layer* outLayer) = 0;
100 virtual Error destroyLayer(Display display, Layer layer) = 0;
104 Display display, std::vector<Layer>* outLayers,
113 std::vector<Layer>* outLayers,
122 virtual Error getReleaseFences(Display display, std::vector<Layer>* outLayers,
153 virtual Error setCursorPosition(Display display, Layer layer, int32_t x, int32_t y) = 0;
155 virtual Error setLayerBuffer(Display display, Layer layer, uint32_t slot,
157 virtual Error setLayerSurfaceDamage(Display display, Layer layer,
159 virtual Error setLayerBlendMode(Display display, Layer laye
[all...]
/frameworks/native/include/layerproto/
H A DLayerProtoParser.h79 class Layer { class in class:android::surfaceflinger::LayerProtoParser
83 std::vector<std::unique_ptr<Layer>> children;
84 std::vector<Layer*> relatives;
105 Layer* parent = 0;
106 Layer* zOrderRelativeOf = 0;
130 static std::vector<std::unique_ptr<Layer>> generateLayerTree(const LayersProto& layersProto);
131 static std::string layersToString(std::vector<std::unique_ptr<LayerProtoParser::Layer>> layers);
134 static std::unordered_map<int32_t, Layer*> generateMap(const LayersProto& layersProto);
135 static LayerProtoParser::Layer* generateLayer(const LayerProto& layerProto);
143 std::unordered_map<int32_t, Layer*>
[all...]
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/
H A DLayerProtoParser.h79 class Layer { class in class:android::surfaceflinger::LayerProtoParser
83 std::vector<std::unique_ptr<Layer>> children;
84 std::vector<Layer*> relatives;
105 Layer* parent = 0;
106 Layer* zOrderRelativeOf = 0;
130 static std::vector<std::unique_ptr<Layer>> generateLayerTree(const LayersProto& layersProto);
131 static std::string layersToString(std::vector<std::unique_ptr<LayerProtoParser::Layer>> layers);
134 static std::unordered_map<int32_t, Layer*> generateMap(const LayersProto& layersProto);
135 static LayerProtoParser::Layer* generateLayer(const LayerProto& layerProto);
143 std::unordered_map<int32_t, Layer*>
[all...]
/frameworks/native/services/surfaceflinger/tests/fakehwc/
H A DFakeComposerClient.h72 Error createLayer(Display display, Layer* outLayer) override;
73 Error destroyLayer(Display display, Layer layer) override;
97 Error validateDisplay(Display display, std::vector<Layer>* outChangedLayers,
99 uint32_t* outDisplayRequestMask, std::vector<Layer>* outRequestedLayers,
102 Error presentDisplay(Display display, int32_t* outPresentFence, std::vector<Layer>* outLayers,
105 Error setLayerCursorPosition(Display display, Layer layer, int32_t x, int32_t y) override;
106 Error setLayerBuffer(Display display, Layer layer, buffer_handle_t buffer,
108 Error setLayerSurfaceDamage(Display display, Layer layer,
110 Error setLayerBlendMode(Display display, Layer layer, int32_t mode) override;
111 Error setLayerColor(Display display, Layer laye
[all...]
H A DFakeComposerClient.cpp66 FrameRect(Layer layer_, const RenderState& state, uint32_t z_)
69 const Layer layer;
207 Error FakeComposerClient::createLayer(Display /*display*/, Layer* outLayer) {
215 Error FakeComposerClient::destroyLayer(Display /*display*/, Layer layer) {
358 Display /*display*/, std::vector<Layer>* /*outChangedLayers*/,
360 uint32_t* /*outDisplayRequestMask*/, std::vector<Layer>* /*outRequestedLayers*/,
378 std::vector<Layer>* /*outLayers*/,
403 Error FakeComposerClient::setLayerCursorPosition(Display /*display*/, Layer /*layer*/,
409 Error FakeComposerClient::setLayerBuffer(Display /*display*/, Layer layer, buffer_handle_t buffer,
422 Error FakeComposerClient::setLayerSurfaceDamage(Display /*display*/, Layer /*laye
[all...]
/frameworks/native/services/vr/hardware_composer/impl/
H A Dvr_hwc.h59 Layer id;
115 HwcLayer(Layer new_id) {
135 bool DestroyLayer(Layer id);
136 HwcLayer* GetLayer(Layer id);
143 std::vector<Layer>* layer_ids,
148 std::vector<Layer> UpdateLastFrameAndGetLastFrameLayers();
179 std::vector<Layer> last_frame_layers_ids_;
181 // Layer ID generator.
203 Error setLayerInfo(Display display, Layer layer, uint32_t type,
208 Display display, Layer laye
[all...]
/frameworks/native/services/surfaceflinger/layerproto/
H A DLayerProtoParser.cpp26 bool sortLayers(LayerProtoParser::Layer* lhs, const LayerProtoParser::Layer* rhs) {
40 bool sortLayerUniquePtrs(const std::unique_ptr<LayerProtoParser::Layer>& lhs,
41 const std::unique_ptr<LayerProtoParser::Layer>& rhs) {
55 std::vector<std::unique_ptr<LayerProtoParser::Layer>> LayerProtoParser::generateLayerTree(
57 std::unordered_map<int32_t, LayerProtoParser::Layer*> layerMap = generateMap(layersProto);
58 std::vector<std::unique_ptr<LayerProtoParser::Layer>> layers;
60 for (std::pair<int32_t, Layer*> kv : layerMap) {
64 layers.push_back(std::unique_ptr<Layer>(kv.second));
72 std::unordered_map<int32_t, LayerProtoParser::Layer*> LayerProtoParse
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DDeferredLayerUpdaterTests.cpp34 if (layerUpdater->backingLayer()->getApi() == Layer::Api::OpenGL) {
48 if (layerUpdater->backingLayer()->getApi() == Layer::Api::OpenGL) {
54 if (layerUpdater->backingLayer()->getApi() == Layer::Api::OpenGL) {
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java59 * a list of Graphics2D for each layers. The class actually maintains a list of {@link Layer}
61 * ({@link Layer#getGraphics()}) is configured only for the new snapshot.
69 private final ArrayList<Layer> mLayers = new ArrayList<Layer>();
82 private final Layer mLocalLayer;
95 private static class Layer { class in class:GcSnapshot
114 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { method in class:GcSnapshot.Layer
124 * {@link Layer#Layer(Graphics2D, Bitmap_Delegate)} should be used.
130 Layer(Graphics2 method in class:GcSnapshot.Layer
[all...]

Completed in 293 milliseconds

1234