Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: cc/resources/resource_provider.h

Issue 2161293002: Color: Separate ICCProfile and ColorSpace structures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporate review feedback Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/ipc/cc_param_traits_macros.h ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_ 5 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_
6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ 6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 19 matching lines...) Expand all
30 #include "cc/resources/release_callback_impl.h" 30 #include "cc/resources/release_callback_impl.h"
31 #include "cc/resources/resource_format.h" 31 #include "cc/resources/resource_format.h"
32 #include "cc/resources/return_callback.h" 32 #include "cc/resources/return_callback.h"
33 #include "cc/resources/shared_bitmap.h" 33 #include "cc/resources/shared_bitmap.h"
34 #include "cc/resources/single_release_callback_impl.h" 34 #include "cc/resources/single_release_callback_impl.h"
35 #include "cc/resources/texture_mailbox.h" 35 #include "cc/resources/texture_mailbox.h"
36 #include "cc/resources/transferable_resource.h" 36 #include "cc/resources/transferable_resource.h"
37 #include "third_party/khronos/GLES2/gl2.h" 37 #include "third_party/khronos/GLES2/gl2.h"
38 #include "third_party/khronos/GLES2/gl2ext.h" 38 #include "third_party/khronos/GLES2/gl2ext.h"
39 #include "third_party/skia/include/core/SkBitmap.h" 39 #include "third_party/skia/include/core/SkBitmap.h"
40 #include "ui/gfx/color_space.h"
40 #include "ui/gfx/geometry/size.h" 41 #include "ui/gfx/geometry/size.h"
41 #include "ui/gfx/gpu_memory_buffer.h" 42 #include "ui/gfx/gpu_memory_buffer.h"
42 43
43 class GrContext; 44 class GrContext;
44 class GrSurface; 45 class GrSurface;
45 46
46 namespace gpu { 47 namespace gpu {
47 class GpuMemoryBufferManager; 48 class GpuMemoryBufferManager;
48 namespace gles { 49 namespace gles {
49 class GLES2Interface; 50 class GLES2Interface;
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 GLenum original_filter; 581 GLenum original_filter;
581 GLenum filter; 582 GLenum filter;
582 unsigned image_id; 583 unsigned image_id;
583 unsigned bound_image_id; 584 unsigned bound_image_id;
584 TextureHint hint; 585 TextureHint hint;
585 ResourceType type; 586 ResourceType type;
586 ResourceFormat format; 587 ResourceFormat format;
587 SharedBitmapId shared_bitmap_id; 588 SharedBitmapId shared_bitmap_id;
588 SharedBitmap* shared_bitmap; 589 SharedBitmap* shared_bitmap;
589 std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer; 590 std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer;
591 gfx::ColorSpace color_space;
590 592
591 private: 593 private:
592 SynchronizationState synchronization_state_ = SYNCHRONIZED; 594 SynchronizationState synchronization_state_ = SYNCHRONIZED;
593 bool needs_sync_token_ = false; 595 bool needs_sync_token_ = false;
594 TextureMailbox mailbox_; 596 TextureMailbox mailbox_;
595 597
596 DISALLOW_COPY_AND_ASSIGN(Resource); 598 DISALLOW_COPY_AND_ASSIGN(Resource);
597 }; 599 };
598 using ResourceMap = std::unordered_map<ResourceId, Resource>; 600 using ResourceMap = std::unordered_map<ResourceId, Resource>;
599 601
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 // A process-unique ID used for disambiguating memory dumps from different 699 // A process-unique ID used for disambiguating memory dumps from different
698 // resource providers. 700 // resource providers.
699 int tracing_id_; 701 int tracing_id_;
700 702
701 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 703 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
702 }; 704 };
703 705
704 } // namespace cc 706 } // namespace cc
705 707
706 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 708 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/ipc/cc_param_traits_macros.h ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698