mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Move //sky/compositor to //sky/viewer/compositor
This library is logically part of //sky/viewer and shouldn't clutter up the top-level //sky directory. TBR=eseidel@chromium.org Review URL: https://codereview.chromium.org/1213683004.
This commit is contained in:
parent
567c659122
commit
ce5baf1e9d
@ -50,12 +50,12 @@ mojo_native_application("viewer") {
|
||||
"//mojo/services/view_manager/public/cpp",
|
||||
"//mojo/services/view_manager/public/interfaces",
|
||||
"//skia",
|
||||
"//sky/compositor",
|
||||
"//sky/engine",
|
||||
"//sky/engine/tonic",
|
||||
"//sky/services/platform",
|
||||
"//sky/services/testing:bindings",
|
||||
"//sky/shell/dart",
|
||||
"//sky/viewer/compositor",
|
||||
"//third_party/icu",
|
||||
"//ui/events",
|
||||
"//url",
|
||||
|
||||
@ -2,12 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/layer.h"
|
||||
#include "sky/viewer/compositor/layer.h"
|
||||
|
||||
#include "base/trace_event/trace_event.h"
|
||||
#include "sky/compositor/layer_host.h"
|
||||
#include "sky/compositor/picture_serializer.h"
|
||||
#include "sky/compositor/rasterizer.h"
|
||||
#include "sky/viewer/compositor/layer_host.h"
|
||||
#include "sky/viewer/compositor/picture_serializer.h"
|
||||
#include "sky/viewer/compositor/rasterizer.h"
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkPictureRecorder.h"
|
||||
|
||||
@ -2,14 +2,14 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_LAYER_H_
|
||||
#define SKY_COMPOSITOR_LAYER_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_LAYER_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_LAYER_H_
|
||||
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "mojo/gpu/gl_texture.h"
|
||||
#include "skia/ext/refptr.h"
|
||||
#include "sky/compositor/layer_client.h"
|
||||
#include "sky/compositor/rasterizer.h"
|
||||
#include "sky/viewer/compositor/layer_client.h"
|
||||
#include "sky/viewer/compositor/rasterizer.h"
|
||||
#include "third_party/skia/include/core/SkPicture.h"
|
||||
#include "ui/gfx/geometry/rect.h"
|
||||
|
||||
@ -48,4 +48,4 @@ class Layer : public base::RefCounted<Layer> {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_LAYER_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_LAYER_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/layer_client.h"
|
||||
#include "sky/viewer/compositor/layer_client.h"
|
||||
|
||||
namespace sky {
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_LAYER_CLIENT_H_
|
||||
#define SKY_COMPOSITOR_LAYER_CLIENT_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_LAYER_CLIENT_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_LAYER_CLIENT_H_
|
||||
|
||||
class SkCanvas;
|
||||
|
||||
@ -23,4 +23,4 @@ class LayerClient {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_LAYER_CLIENT_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_LAYER_CLIENT_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/layer_host.h"
|
||||
#include "sky/viewer/compositor/layer_host.h"
|
||||
|
||||
#include "base/message_loop/message_loop.h"
|
||||
#include "base/trace_event/trace_event.h"
|
||||
@ -10,7 +10,7 @@
|
||||
#include "mojo/gpu/gl_context.h"
|
||||
#include "mojo/services/surfaces/public/cpp/surfaces_utils.h"
|
||||
#include "mojo/skia/ganesh_context.h"
|
||||
#include "sky/compositor/layer.h"
|
||||
#include "sky/viewer/compositor/layer.h"
|
||||
|
||||
namespace sky {
|
||||
|
||||
@ -2,17 +2,17 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_LAYER_HOST_H_
|
||||
#define SKY_COMPOSITOR_LAYER_HOST_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_LAYER_HOST_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_LAYER_HOST_H_
|
||||
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "mojo/gpu/gl_context_owner.h"
|
||||
#include "mojo/skia/ganesh_context.h"
|
||||
#include "sky/compositor/layer_host_client.h"
|
||||
#include "sky/compositor/resource_manager.h"
|
||||
#include "sky/compositor/surface_holder.h"
|
||||
#include "sky/viewer/compositor/layer_host_client.h"
|
||||
#include "sky/viewer/compositor/resource_manager.h"
|
||||
#include "sky/viewer/compositor/surface_holder.h"
|
||||
|
||||
namespace sky {
|
||||
class ResourceManager;
|
||||
@ -74,4 +74,4 @@ class LayerHost : public SurfaceHolder::Client {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_LAYER_HOST_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_LAYER_HOST_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/layer_host_client.h"
|
||||
#include "sky/viewer/compositor/layer_host_client.h"
|
||||
|
||||
namespace sky {
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_LAYER_HOST_CLIENT_H_
|
||||
#define SKY_COMPOSITOR_LAYER_HOST_CLIENT_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_LAYER_HOST_CLIENT_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_LAYER_HOST_CLIENT_H_
|
||||
|
||||
#include "base/time/time.h"
|
||||
#include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h"
|
||||
@ -26,4 +26,4 @@ class LayerHostClient {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_LAYER_HOST_CLIENT_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_LAYER_HOST_CLIENT_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/picture_serializer.h"
|
||||
#include "sky/viewer/compositor/picture_serializer.h"
|
||||
|
||||
#include "third_party/skia/include/core/SkData.h"
|
||||
#include "third_party/skia/include/core/SkPixelSerializer.h"
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_PICTURE_SERIALIZER_H_
|
||||
#define SKY_COMPOSITOR_PICTURE_SERIALIZER_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_PICTURE_SERIALIZER_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_PICTURE_SERIALIZER_H_
|
||||
|
||||
#include "third_party/skia/include/core/SkPicture.h"
|
||||
|
||||
@ -13,4 +13,4 @@ void SerializePicture(const char* file_name, SkPicture*);
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_PICTURE_SERIALIZER_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_PICTURE_SERIALIZER_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/rasterizer.h"
|
||||
#include "sky/viewer/compositor/rasterizer.h"
|
||||
|
||||
namespace sky {
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_RASTERIZER_H_
|
||||
#define SKY_COMPOSITOR_RASTERIZER_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_RASTERIZER_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_RASTERIZER_H_
|
||||
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "mojo/gpu/gl_texture.h"
|
||||
@ -25,4 +25,4 @@ class Rasterizer {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_RASTERIZER_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_RASTERIZER_H_
|
||||
@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/rasterizer_bitmap.h"
|
||||
#include "sky/viewer/compositor/rasterizer_bitmap.h"
|
||||
|
||||
#include "sky/compositor/layer_client.h"
|
||||
#include "sky/compositor/layer_host.h"
|
||||
#include "sky/viewer/compositor/layer_client.h"
|
||||
#include "sky/viewer/compositor/layer_host.h"
|
||||
#include "third_party/skia/include/core/SkBitmapDevice.h"
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkPicture.h"
|
||||
@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_DISPLAY_RASTERIZER_BITMAP_H_
|
||||
#define SKY_COMPOSITOR_DISPLAY_RASTERIZER_BITMAP_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_DISPLAY_RASTERIZER_BITMAP_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_DISPLAY_RASTERIZER_BITMAP_H_
|
||||
|
||||
#include "sky/compositor/rasterizer.h"
|
||||
#include "sky/viewer/compositor/rasterizer.h"
|
||||
#include "third_party/skia/include/core/SkBitmap.h"
|
||||
|
||||
namespace sky {
|
||||
@ -28,4 +28,4 @@ class RasterizerBitmap : public Rasterizer {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_DISPLAY_RASTERIZER_BITMAP_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_DISPLAY_RASTERIZER_BITMAP_H_
|
||||
@ -2,11 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/rasterizer_ganesh.h"
|
||||
#include "sky/viewer/compositor/rasterizer_ganesh.h"
|
||||
|
||||
#include "base/trace_event/trace_event.h"
|
||||
#include "mojo/skia/ganesh_surface.h"
|
||||
#include "sky/compositor/layer_host.h"
|
||||
#include "sky/viewer/compositor/layer_host.h"
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkPicture.h"
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_DISPLAY_RASTERIZER_GANESH_H_
|
||||
#define SKY_COMPOSITOR_DISPLAY_RASTERIZER_GANESH_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_DISPLAY_RASTERIZER_GANESH_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_DISPLAY_RASTERIZER_GANESH_H_
|
||||
|
||||
#include "sky/compositor/rasterizer.h"
|
||||
#include "sky/viewer/compositor/rasterizer.h"
|
||||
|
||||
namespace sky {
|
||||
class LayerHost;
|
||||
@ -25,4 +25,4 @@ class RasterizerGanesh : public Rasterizer {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_DISPLAY_RASTERIZER_GANESH_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_DISPLAY_RASTERIZER_GANESH_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/resource_manager.h"
|
||||
#include "sky/viewer/compositor/resource_manager.h"
|
||||
|
||||
#ifndef GL_GLEXT_PROTOTYPES
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
@ -16,7 +16,7 @@
|
||||
#include "mojo/gpu/gl_context.h"
|
||||
#include "mojo/gpu/gl_texture.h"
|
||||
#include "mojo/public/c/gles2/gles2.h"
|
||||
#include "sky/compositor/layer.h"
|
||||
#include "sky/viewer/compositor/layer.h"
|
||||
|
||||
namespace sky {
|
||||
|
||||
@ -2,15 +2,15 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_RESOURCE_MANAGER_H_
|
||||
#define SKY_COMPOSITOR_RESOURCE_MANAGER_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_RESOURCE_MANAGER_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_RESOURCE_MANAGER_H_
|
||||
|
||||
#include "base/containers/hash_tables.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/memory/scoped_vector.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
|
||||
#include "sky/compositor/texture_cache.h"
|
||||
#include "sky/viewer/compositor/texture_cache.h"
|
||||
|
||||
namespace gfx {
|
||||
class Size;
|
||||
@ -46,4 +46,4 @@ class ResourceManager {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_RESOURCE_MANAGER_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_RESOURCE_MANAGER_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/surface_allocator.h"
|
||||
#include "sky/viewer/compositor/surface_allocator.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_SURFACE_ALLOCATOR_H_
|
||||
#define SKY_COMPOSITOR_SURFACE_ALLOCATOR_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_SURFACE_ALLOCATOR_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_SURFACE_ALLOCATOR_H_
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h"
|
||||
@ -26,4 +26,4 @@ class SurfaceAllocator {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_SURFACE_ALLOCATOR_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_SURFACE_ALLOCATOR_H_
|
||||
@ -2,14 +2,14 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/surface_holder.h"
|
||||
#include "sky/viewer/compositor/surface_holder.h"
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/message_loop/message_loop.h"
|
||||
#include "mojo/converters/geometry/geometry_type_converters.h"
|
||||
#include "mojo/public/cpp/application/connect.h"
|
||||
#include "mojo/public/interfaces/application/shell.mojom.h"
|
||||
#include "sky/compositor/surface_allocator.h"
|
||||
#include "sky/viewer/compositor/surface_allocator.h"
|
||||
|
||||
namespace sky {
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_SURFACE_HOLDER_H_
|
||||
#define SKY_COMPOSITOR_SURFACE_HOLDER_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_SURFACE_HOLDER_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_SURFACE_HOLDER_H_
|
||||
|
||||
#include "base/callback_forward.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
@ -59,4 +59,4 @@ class SurfaceHolder : public mojo::ResourceReturner {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_SURFACE_HOLDER_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_SURFACE_HOLDER_H_
|
||||
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "sky/compositor/texture_cache.h"
|
||||
#include "sky/viewer/compositor/texture_cache.h"
|
||||
|
||||
#include "mojo/converters/geometry/geometry_type_converters.h"
|
||||
#include "mojo/gpu/gl_texture.h"
|
||||
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SKY_COMPOSITOR_TEXTURE_CACHE_H_
|
||||
#define SKY_COMPOSITOR_TEXTURE_CACHE_H_
|
||||
#ifndef SKY_VIEWER_COMPOSITOR_TEXTURE_CACHE_H_
|
||||
#define SKY_VIEWER_COMPOSITOR_TEXTURE_CACHE_H_
|
||||
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "base/memory/scoped_vector.h"
|
||||
@ -32,4 +32,4 @@ class TextureCache {
|
||||
|
||||
} // namespace sky
|
||||
|
||||
#endif // SKY_COMPOSITOR_TEXTURE_CACHE_H_
|
||||
#endif // SKY_VIEWER_COMPOSITOR_TEXTURE_CACHE_H_
|
||||
@ -18,10 +18,6 @@
|
||||
#include "mojo/services/view_manager/public/cpp/view_manager.h"
|
||||
#include "mojo/services/view_manager/public/interfaces/view_manager.mojom.h"
|
||||
#include "skia/ext/refptr.h"
|
||||
#include "sky/compositor/layer.h"
|
||||
#include "sky/compositor/layer_host.h"
|
||||
#include "sky/compositor/rasterizer_bitmap.h"
|
||||
#include "sky/compositor/rasterizer_ganesh.h"
|
||||
#include "sky/engine/public/platform/Platform.h"
|
||||
#include "sky/engine/public/platform/WebHTTPHeaderVisitor.h"
|
||||
#include "sky/engine/public/platform/WebInputEvent.h"
|
||||
@ -35,6 +31,10 @@
|
||||
#include "sky/engine/public/web/WebSettings.h"
|
||||
#include "sky/engine/public/web/WebView.h"
|
||||
#include "sky/services/platform/url_request_types.h"
|
||||
#include "sky/viewer/compositor/layer.h"
|
||||
#include "sky/viewer/compositor/layer_host.h"
|
||||
#include "sky/viewer/compositor/rasterizer_bitmap.h"
|
||||
#include "sky/viewer/compositor/rasterizer_ganesh.h"
|
||||
#include "sky/viewer/converters/input_event_types.h"
|
||||
#include "sky/viewer/dart_library_provider_impl.h"
|
||||
#include "sky/viewer/internals.h"
|
||||
|
||||
@ -19,14 +19,14 @@
|
||||
#include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h"
|
||||
#include "mojo/services/view_manager/public/cpp/view_manager_delegate.h"
|
||||
#include "mojo/services/view_manager/public/cpp/view_observer.h"
|
||||
#include "sky/compositor/layer_client.h"
|
||||
#include "sky/compositor/layer_host_client.h"
|
||||
#include "sky/engine/public/platform/ServiceProvider.h"
|
||||
#include "sky/engine/public/sky/sky_view.h"
|
||||
#include "sky/engine/public/sky/sky_view_client.h"
|
||||
#include "sky/engine/public/web/WebFrameClient.h"
|
||||
#include "sky/engine/public/web/WebViewClient.h"
|
||||
#include "sky/services/testing/test_harness.mojom.h"
|
||||
#include "sky/viewer/compositor/layer_client.h"
|
||||
#include "sky/viewer/compositor/layer_host_client.h"
|
||||
#include "ui/events/gestures/gesture_types.h"
|
||||
|
||||
namespace mojo {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user