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

Unified Diff: content/renderer/render_widget.cc

Issue 2630653002: Clean up ICC profile tracking (Closed)
Patch Set: Update ColorBehavior Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index edc343b425f274115c55eac29621bf23c5d1655f..332cc72977d44c978b699db27c4293c67f40385b 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -389,7 +389,6 @@ RenderWidget::RenderWidget(int32_t widget_routing_id,
if (!swapped_out)
RenderProcess::current()->AddRefProcess();
DCHECK(RenderThread::Get());
- device_color_profile_.push_back('0');
// In tests there may not be a RenderThreadImpl.
if (RenderThreadImpl::current()) {
@@ -1827,19 +1826,6 @@ void RenderWidget::OnSetDeviceScaleFactor(float device_scale_factor) {
physical_backing_size_ = gfx::ScaleToCeiledSize(size_, device_scale_factor_);
}
-bool RenderWidget::SetDeviceColorProfile(
- const std::vector<char>& color_profile) {
- if (device_color_profile_ == color_profile)
- return false;
-
- device_color_profile_ = color_profile;
-
- if (owner_delegate_)
- owner_delegate_->RenderWidgetDidSetColorProfile(color_profile);
-
- return true;
-}
-
void RenderWidget::OnOrientationChange() {
}
@@ -1976,7 +1962,8 @@ void RenderWidget::UpdateSelectionBounds() {
void RenderWidget::SetDeviceColorProfileForTesting(
const std::vector<char>& color_profile) {
- SetDeviceColorProfile(color_profile);
+ if (owner_delegate_)
+ owner_delegate_->RenderWidgetDidSetColorProfile(color_profile);
}
void RenderWidget::DidAutoResize(const gfx::Size& new_size) {
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698