OSDN Git Service

surfaceflinger: fix -Wmismatched-tags warnings
authorJesse Hall <jessehall@google.com>
Fri, 8 Aug 2014 05:19:07 +0000 (22:19 -0700)
committerJesse Hall <jessehall@google.com>
Fri, 31 Oct 2014 16:51:10 +0000 (09:51 -0700)
warning: struct 'HWComposer' was previously declared as a class
[-Wmismatched-tags]

warning: class 'DisplayInfo' was previously declared as a struct
[-Wmismatched-tags]

Change-Id: I13db9f8aab3a957ce8ff8d64598dae1807d6fe7e
(cherry picked from commit 646f54105018e99ef4a30ee41f01f7d1ab66c38e)

include/gui/ISurfaceComposer.h
services/surfaceflinger/DisplayDevice.h
services/surfaceflinger/DisplayHardware/HWComposer.h

index 3ffc67e..51717a4 100644 (file)
@@ -38,7 +38,7 @@ namespace android {
 
 class ComposerState;
 class DisplayState;
-class DisplayInfo;
+struct DisplayInfo;
 class DisplayStatInfo;
 class IDisplayEventConnection;
 class IMemoryHeap;
index d3f784a..8695a44 100644 (file)
@@ -37,7 +37,7 @@ struct ANativeWindow;
 
 namespace android {
 
-class DisplayInfo;
+struct DisplayInfo;
 class DisplaySurface;
 class IGraphicBufferProducer;
 class Layer;
index 5cb56a0..a62ac5c 100644 (file)
@@ -196,7 +196,7 @@ public:
      * This behaves more or less like a forward iterator.
      */
     class LayerListIterator {
-        friend struct HWComposer;
+        friend class HWComposer;
         HWCLayer* const mLayerList;
         size_t mIndex;