Skip to content

Commit

Permalink
Revert of Load and apply a vcgt table from an ICC file to the interna…
Browse files Browse the repository at this point in the history
…l display (patchset chromium#15 id:300001 of https://codereview.chromium.org/1028563003/)

Reason for revert:
breaks compilation

https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20GN%20(dbg)/builds/1084

Original issue's description:
> Load and apply a vcgt table from an ICC file to the internal display
>
> When the command line switch --internal-display-color-profile-file is provided
> load the given ICC file using qcms and extract the VCGT data. Use this VCGT
> data to apply a gamma ramp to change the output on the internal display using
> drmModeCrtcSetGammaRamp.
>
> BUG=471749
> TEST=On a link_freon device add the command line option to load a sample ICC
> file (e.g. Bluish.icc to give a blue tint) and observe on startup that the
> internal display is blue tinted.
>
> Committed: https://crrev.com/46134a86af1eac76e97b062a68afeaa6c8801216
> Cr-Commit-Position: refs/heads/master@{#328318}

TBR=dcheng@chromium.org,dnicoara@chromium.org,noel@chromium.org,oshima@chromium.org,sievers@chromium.org,spang@chromium.org,robert.bradford@intel.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=471749

Review URL: https://codereview.chromium.org/1118373006

Cr-Commit-Position: refs/heads/master@{#328321}
  • Loading branch information
jeisinger authored and Commit bot committed May 5, 2015
1 parent a780ea9 commit e005ecc
Show file tree
Hide file tree
Showing 33 changed files with 0 additions and 410 deletions.
3 changes: 0 additions & 3 deletions ash/ash.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
'autoclick/autoclick_controller.h',
'cancel_mode.cc',
'cancel_mode.h',
'content/display/display_color_manager_chromeos.cc',
'content/display/display_color_manager_chromeos.h',
'content/display/screen_orientation_controller_chromeos.cc',
'content/display/screen_orientation_controller_chromeos.h',
'debug.cc',
Expand Down Expand Up @@ -969,7 +967,6 @@
# Ash #includes power_supply_properties.pb.h directly.
'../chromeos/chromeos.gyp:power_manager_proto',
'../device/bluetooth/bluetooth.gyp:device_bluetooth',
'../third_party/qcms/qcms.gyp:qcms',
'../ui/chromeos/ui_chromeos.gyp:ui_chromeos_resources',
'../ui/chromeos/ui_chromeos.gyp:ui_chromeos_strings',
'../ui/chromeos/ui_chromeos.gyp:ui_chromeos',
Expand Down
2 changes: 0 additions & 2 deletions ash/content/display/DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ include_rules = [
"+content/public/browser/screen_orientation_delegate.h",
"+content/public/browser/screen_orientation_provider.h",
"+content/public/browser/browser_context.h",
"+content/public/browser/browser_thread.h",
"+content/public/browser/web_contents.h",
"+third_party/qcms/src/qcms.h",
"+third_party/WebKit/public/platform/WebScreenOrientationLockType.h",
]

Expand Down
139 changes: 0 additions & 139 deletions ash/content/display/display_color_manager_chromeos.cc

This file was deleted.

66 changes: 0 additions & 66 deletions ash/content/display/display_color_manager_chromeos.h

This file was deleted.

4 changes: 0 additions & 4 deletions ash/shell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
#include "ash/accelerators/magnifier_key_scroller.h"
#include "ash/accelerators/spoken_feedback_toggler.h"
#include "ash/ash_constants.h"
#include "ash/content/display/display_color_manager_chromeos.h"
#include "ash/content/display/screen_orientation_controller_chromeos.h"
#include "ash/display/display_change_observer_chromeos.h"
#include "ash/display/display_configurator_animation.h"
Expand Down Expand Up @@ -812,7 +811,6 @@ Shell::~Shell() {
keyboard::KeyboardController::ResetInstance(NULL);

#if defined(OS_CHROMEOS)
display_color_manager_.reset();
if (display_change_observer_)
display_configurator_->RemoveObserver(display_change_observer_.get());
if (display_configurator_animation_)
Expand Down Expand Up @@ -865,8 +863,6 @@ void Shell::Init(const ShellInitParams& init_params) {
delegate_->IsFirstRunAfterBoot() ? kChromeOsBootColor : 0);
display_initialized = true;
}
display_color_manager_.reset(
new DisplayColorManager(display_configurator_.get()));
#endif // defined(OS_CHROMEOS)
if (!display_initialized)
display_manager_->InitDefaultDisplay();
Expand Down
2 changes: 0 additions & 2 deletions ash/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class BluetoothNotificationController;
class CaptureController;
class DesktopBackgroundController;
class DisplayChangeObserver;
class DisplayColorManager;
class DisplayConfiguratorAnimation;
class DisplayController;
class DisplayErrorObserver;
Expand Down Expand Up @@ -726,7 +725,6 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
scoped_ptr<VirtualKeyboardController> virtual_keyboard_controller_;
// Controls video output device state.
scoped_ptr<ui::DisplayConfigurator> display_configurator_;
scoped_ptr<DisplayColorManager> display_color_manager_;
scoped_ptr<DisplayConfiguratorAnimation> display_configurator_animation_;
scoped_ptr<DisplayErrorObserver> display_error_observer_;
scoped_ptr<ProjectingObserver> projecting_observer_;
Expand Down
4 changes: 0 additions & 4 deletions chromeos/chromeos_switches.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ const char kHostPairingOobe[] = "host-pairing-oobe";
const char kIgnoreUserProfileMappingForTests[] =
"ignore-user-profile-mapping-for-tests";

// File to load internal display ICC file from.
const char kInternalDisplayColorProfileFile[] =
"internal-display-color-profile-file";

// Enables Chrome-as-a-login-manager behavior.
const char kLoginManager[] = "login-manager";

Expand Down
1 change: 0 additions & 1 deletion chromeos/chromeos_switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ CHROMEOS_EXPORT extern const char kHasChromeOSKeyboard[];
CHROMEOS_EXPORT extern const char kHomedir[];
CHROMEOS_EXPORT extern const char kHostPairingOobe[];
CHROMEOS_EXPORT extern const char kIgnoreUserProfileMappingForTests[];
CHROMEOS_EXPORT extern const char kInternalDisplayColorProfileFile[];
CHROMEOS_EXPORT extern const char kLoginManager[];
CHROMEOS_EXPORT extern const char kLoginProfile[];
CHROMEOS_EXPORT extern const char kLoginUser[];
Expand Down
11 changes: 0 additions & 11 deletions ui/display/chromeos/display_configurator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -754,17 +754,6 @@ bool DisplayConfigurator::SetColorCalibrationProfile(
return false;
}

bool DisplayConfigurator::SetGammaRamp(
int64_t display_id,
const std::vector<GammaRampRGBEntry>& lut) {
for (const DisplaySnapshot* display : cached_displays_) {
if (display->display_id() == display_id)
return native_display_delegate_->SetGammaRamp(*display, lut);
}

return false;
}

void DisplayConfigurator::PrepareForExit() {
configure_display_ = false;
}
Expand Down
6 changes: 0 additions & 6 deletions ui/display/chromeos/display_configurator.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ class Size;
}

namespace ui {
struct DisplayConfigureRequest;
struct GammaRampRGBEntry;
class DisplayLayoutManager;
class DisplayMode;
class DisplaySnapshot;
Expand Down Expand Up @@ -262,10 +260,6 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
bool SetColorCalibrationProfile(int64_t display_id,
ui::ColorCalibrationProfile new_profile);

// Sets the gamma ramp for |display_id| to the values in |lut|.
bool SetGammaRamp(int64_t display_id,
const std::vector<GammaRampRGBEntry>& lut);

private:
class DisplayLayoutManagerImpl;

Expand Down
15 changes: 0 additions & 15 deletions ui/display/chromeos/test/action_logger_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
#include "ui/display/chromeos/test/action_logger_util.h"

#include "base/format_macros.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "ui/display/types/display_mode.h"
#include "ui/display/types/display_snapshot.h"
#include "ui/display/types/gamma_ramp_rgb_entry.h"
#include "ui/display/types/native_display_delegate.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/size.h"

Expand Down Expand Up @@ -55,18 +52,6 @@ std::string GetSetHDCPStateAction(const DisplaySnapshot& output,
output.display_id(), state);
}

std::string SetGammaRampAction(const ui::DisplaySnapshot& output,
const std::vector<GammaRampRGBEntry>& lut) {
std::string table;
for (size_t i = 0; i < lut.size(); ++i) {
table += base::StringPrintf(",rgb[%" PRIuS "]=%04x%04x%04x", i, lut[i].r,
lut[i].g, lut[i].b);
}

return base::StringPrintf("set_gamma_ramp(id=%" PRId64 "%s)",
output.display_id(), table.c_str());
}

std::string JoinActions(const char* action, ...) {
std::string actions;

Expand Down
5 changes: 0 additions & 5 deletions ui/display/chromeos/test/action_logger_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define UI_DISPLAY_CHROMEOS_TEST_ACTION_LOGGER_UTIL_H_

#include <string>
#include <vector>

#include "ui/display/types/display_constants.h"

Expand All @@ -17,7 +16,6 @@ class Size;

namespace ui {

struct GammaRampRGBEntry;
class DisplayMode;
class DisplaySnapshot;

Expand Down Expand Up @@ -64,9 +62,6 @@ std::string GetFramebufferAction(const gfx::Size& size,
std::string GetSetHDCPStateAction(const DisplaySnapshot& output,
HDCPState state);

// Returns a string describing a TestNativeDisplayDelegate::SetGammaRamp() call;
std::string SetGammaRampAction(const ui::DisplaySnapshot& output,
const std::vector<GammaRampRGBEntry>& lut);
// Joins a sequence of strings describing actions (e.g. kScreenDim) such
// that they can be compared against a string returned by
// ActionLogger::GetActionsAndClear(). The list of actions must be
Expand Down
Loading

0 comments on commit e005ecc

Please sign in to comment.